Skip to content

Instantly share code, notes, and snippets.

@dims
Last active November 19, 2023 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dims/eace914fc47209a9f9f8a2cafed586c9 to your computer and use it in GitHub Desktop.
Save dims/eace914fc47209a9f9f8a2cafed586c9 to your computer and use it in GitHub Desktop.
Running the AWS sig-node tests and conformance tests in provider-aws-test-infra repo
# Run from $HOME/go/src/sigs.k8s.io/provider-aws-test-infra
FOCUS="should get a host IP" \
USER=ec2-user \
CLEANUP=false \
DELETE_INSTANCES=false \
IMAGE_CONFIG_DIR=config \
IMAGE_CONFIG_FILE=aws-instance-eks.yaml \
TARGET_BUILD_ARCH="linux/amd64" \
USE_DOCKERIZED_BUILD=true \
hack/make-rules/test-e2e-node.sh '--kubelet-flags="--cgroup-driver=systemd"'
# Run from $HOME/go/src/k8s.io/kubernetes
kubetest2 ec2 \
--build \
--target-build-arch linux/amd64 \
--stage provider-aws-test-infra-dims \
--up \
--test=ginkgo \
-- \
--use-built-binaries true \
--focus-regex='should get a host IP'
# Run AL2 image
go install . && kubetest2 ec2 \
--build \
--target-build-arch linux/amd64 \
--stage provider-aws-test-infra-dims \
--worker-image ami-0e0b0f2cb811d16b0 \
--num-nodes 1 \
--worker-user-data-file config/al2.yaml \
--up \
--test=ginkgo \
-- \
--use-built-binaries true \
--focus-regex='should get a host IP'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment