github.com/looshlee/cilium@v1.6.12/test/packet/README.md (about)

     1  # Instructions to run CI tests in your own packet-net instances
     2  
     3  # 1 - download terraform https://www.terraform.io/downloads.html
     4  # 2 - get your API key by clicking in your user profile (top right corner)
     5  #     and pick "API Keys" https://app.packet.net/login
     6  # 3 - Create an API Key with read/write permissions and give a description,
     7  #     something like "CI private testing"
     8  # 4 - store the private token as you will need it in the next steps
     9  # 5 - go to the packet.net and pick or create a project ID
    10  # 6 - terraform init .
    11  # 7 - terraform apply
    12  # 8 - After the VM is up and running you can check its IP with `terraform show`
    13  # 9 - SSH in to the public IP with `ssh -i <ssh-key-path> root@<publicIP>`
    14  # 10 - Checkout to the branch that you want to test `git checkout <my-faulty-branch>`
    15  # 11 - Run `screen` which will create a new terminal, this is helpful as you can leave your terminal while
    16  #      tests are running and come back again afterwards.
    17  # 12 - Enter the `test` directory with `cd test`
    18  # 13 - Run the ginkgo command to initialize the tests, for example:
    19  #     `K8S_VERSION=1.14 ginkgo --focus="K8s*" -v -- --cilium.showCommands --cilium.holdEnvironment=true`
    20  # 14 - Once tests are running and if you are running `screen`, you can leave the terminal
    21  #      by typing `CTRL+a+d`, to resume again type `screen -r`
    22  #
    23  export TF_VAR_private_key_path="<SSH KEY PATH>"
    24  export TF_VAR_packet_token="<TOKEN>"
    25  export TF_VAR_packet_project_id="<PROJECT ID>"
    26  # the location for europeans is better to pick Amsterdam (ams1) or Toronto (yyz1)
    27  export TF_VAR_packet_location="ams1"
    28  export TF_VAR_packet_plan="c1.small.x86"