github.com/munnerz/test-infra@v0.0.0-20190108210205-ce3d181dc989/config/jobs/kubernetes/sig-aws/eks/k8s-aws-eks-presets.yaml (about) 1 presets: 2 - env: 3 # to prevent ginkgo-e2e.sh from using the cluster/eks functions 4 - name: KUBERNETES_CONFORMANCE_TEST 5 value: yes 6 - name: KUBERNETES_CONFORMANCE_PROVIDER 7 value: eks 8 # configure worker node private key path to "~/.ssh/kube_aws_rsa" 9 # see https://godoc.org/k8s.io/kubernetes/test/e2e/framework#GetSigner 10 - name: AWS_SSH_KEY 11 value: kube_aws_rsa 12 # URL to download the latest 'aws-k8s-tester' release 13 - name: AWS_K8S_TESTER_EKS_AWS_K8S_TESTER_DOWNLOAD_URL 14 value: https://github.com/aws/aws-k8s-tester/releases/download/0.2.1/aws-k8s-tester-0.2.1-linux-amd64 15 - name: AWS_K8S_TESTER_EKS_AWS_K8S_TESTER_DOWNLOAD_PATH 16 value: /tmp/aws-k8s-tester/aws-k8s-tester 17 - name: AWS_K8S_TESTER_EKS_KUBECTL_DOWNLOAD_PATH 18 value: /tmp/aws-k8s-tester/kubectl 19 - name: AWS_K8S_TESTER_EKS_KUBECONFIG_PATH 20 value: /tmp/aws-k8s-tester/kubeconfig 21 - name: KUBECONFIG 22 value: /tmp/aws-k8s-tester/kubeconfig 23 # upstream "kubernetes/kubernetes/hack/ginkgo-e2e.sh" requires this via "cluster/kubectl.sh" 24 - name: KUBECTL 25 value: "/tmp/aws-k8s-tester/kubectl --kubeconfig=/tmp/aws-k8s-tester/kubeconfig" 26 - name: AWS_K8S_TESTER_EKS_AWS_IAM_AUTHENTICATOR_DOWNLOAD_PATH 27 value: /tmp/aws-k8s-tester/aws-iam-authenticator 28 # test mode is either "embedded" or "aws-cli" ("embedded" uses native AWS Go client, "aws-cli" will use 'aws') 29 - name: AWS_K8S_TESTER_EKS_TEST_MODE 30 value: "embedded" 31 # duration to wait before destroying EKS cluster, useful to add wait time before collecting AWS ALB access logs 32 - name: AWS_K8S_TESTER_EKS_WAIT_BEFORE_DOWN 33 value: 1m0s 34 # 'true' to destroying all AWS resources when it calls "Down" 35 - name: AWS_K8S_TESTER_EKS_DOWN 36 value: "true" 37 # 'true' to assign worker nodes across all available subnets 38 - name: AWS_K8S_TESTER_EKS_ENABLE_WORKER_NODE_HA 39 value: "true" 40 # 'true' to open port 22 in security group, and enable SSH for log dumper 41 - name: AWS_K8S_TESTER_EKS_ENABLE_NODE_SSH 42 value: "true" 43 # 'true' to enable S3 Access Logs and AWS ALB Access Logs 44 # use it for debug, dump cluster log already handles log artifacts 45 - name: AWS_K8S_TESTER_EKS_LOG_ACCESS 46 value: "false" 47 # 'true' to upload 'aws-k8s-tester' logs to S3 buckets, in addition to log dumper 48 # use it for debug, dump cluster log already handles log artifacts 49 - name: AWS_K8S_TESTER_EKS_UPLOAD_TESTER_LOGS 50 value: "false" 51 # 'true' to upload worker node logs to S3, in addition to log dumper 52 # use it for debug, dump cluster log already handles worker node logs 53 - name: AWS_K8S_TESTER_EKS_UPLOAD_WORKER_NODE_LOGS 54 value: "false" 55 # "2" to add S3 bucket lifecycle of 2 days; let bucket be deleted in 2 days 56 - name: AWS_K8S_TESTER_EKS_UPLOAD_BUCKET_EXPIRE_DAYS 57 value: "2" 58 # worker node auto-scaling group minimum number of nodes 59 - name: AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_MIN 60 value: "1" 61 # worker node auto-scaling group maximum number of nodes 62 - name: AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_MAX 63 value: "1" 64 # 'true' to enable debug level logs 65 - name: AWS_K8S_TESTER_EKS_LOG_DEBUG 66 value: "false" 67 # 'true' to create AWS ALB 68 - name: AWS_K8S_TESTER_EKS_ALB_ENABLE 69 value: "false" 70 # AWS test account credential mounted path, required for AWS API call 71 - name: AWS_SHARED_CREDENTIALS_FILE 72 value: /etc/eks-aws-credentials/eks-aws-credentials 73 labels: 74 preset-kubernetes-e2e-aws-eks-common: "true" 75 volumeMounts: 76 - mountPath: /etc/eks-aws-credentials 77 name: eks-aws-credentials 78 readOnly: true 79 volumes: 80 - name: eks-aws-credentials 81 secret: 82 secretName: eks-aws-credentials 83 84 - env: 85 # configure EKS Kubernetes version 86 - name: AWS_K8S_TESTER_EKS_KUBERNETES_VERSION 87 value: "1.11" 88 # Amazon EKS-optimized AMI (non-GPU, https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) 89 - name: AWS_K8S_TESTER_EKS_WORKER_NODE_AMI 90 value: ami-094fa4044a2a3cf52 91 # URL to download 'kubectl', required for 'kubectl' calls to EKS (https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) 92 # TODO: use upstream 'kubectl' 93 - name: AWS_K8S_TESTER_EKS_KUBECTL_DOWNLOAD_URL 94 value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/kubectl 95 # URL to download 'aws-iam-authenticator', required for 'kubectl' calls to EKS (https://docs.aws.amazon.com/eks/latest/userguide/getting-started.html) 96 - name: AWS_K8S_TESTER_EKS_AWS_IAM_AUTHENTICATOR_DOWNLOAD_URL 97 value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.11.5/2018-12-06/bin/linux/amd64/aws-iam-authenticator 98 # worker node EC2 instance type 99 - name: AWS_K8S_TESTER_EKS_WORKER_NODE_INSTANCE_TYPE 100 value: m3.xlarge 101 labels: 102 preset-kubernetes-e2e-aws-eks-1-11: "true"