Skip to content

kubetest/eks: download "aws-k8s-tester" binary, use upstream image #10040

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

63 changes: 40 additions & 23 deletions config/jobs/kubernetes/sig-aws/eks/k8s-aws-eks-1.10.yaml
Original file line number Diff line number Diff line change
@@ -1,36 +1,56 @@

presets:
- env:
- name: AWSTESTER_EKS_TEST_MODE
# URL to download the latest 'aws-k8s-tester' release
- name: AWS_K8S_TESTER_EKS_AWS_K8S_TESTER_DOWNLOAD_URL
value: https://github.com/aws/aws-k8s-tester/releases/download/0.1.2/aws-k8s-tester-0.1.2-linux-amd64
# URL to download 'aws-iam-authenticator', required for 'kubectl' calls to EKS
- name: AWS_K8S_TESTER_EKS_AWS_IAM_AUTHENTICATOR_DOWNLOAD_URL
value: https://amazon-eks.s3-us-west-2.amazonaws.com/1.10.3/2018-07-26/bin/linux/amd64/aws-iam-authenticator
# test mode is either "embedded" or "aws-cli" ("embedded" uses native AWS Go client, "aws-cli" will use 'aws')
- name: AWS_K8S_TESTER_EKS_TEST_MODE
value: "embedded"
- name: AWSTESTER_EKS_KUBERNETES_VERSION
# configure EKS Kubernetes version
- name: AWS_K8S_TESTER_EKS_KUBERNETES_VERSION
value: "1.10"
- name: AWSTESTER_EKS_WAIT_BEFORE_DOWN
# duration to wait before destroying EKS cluster, useful to add wait time before collecting AWS ALB access logs
- name: AWS_K8S_TESTER_EKS_WAIT_BEFORE_DOWN
value: 1m0s
- name: AWSTESTER_EKS_DOWN
# 'true' to destroying all AWS resources when it calls "Down"
- name: AWS_K8S_TESTER_EKS_DOWN
value: "true"
- name: AWSTESTER_EKS_ENABLE_WORKER_NODE_HA
# 'true' to assign worker nodes across all available subnets
- name: AWS_K8S_TESTER_EKS_ENABLE_WORKER_NODE_HA
value: "true"
- name: AWSTESTER_EKS_ENABLE_NODE_SSH
# 'true' to open port 22 in security group, and enable SSH for log dumper
- name: AWS_K8S_TESTER_EKS_ENABLE_NODE_SSH
value: "true"
- name: AWSTESTER_EKS_ENABLE_LOG_ACCESS
value: "true"
- name: AWSTESTER_EKS_UPLOAD_TESTER_LOGS
# 'true' to upload 'aws-k8s-tester' logs to S3 buckets
- name: AWS_K8S_TESTER_EKS_UPLOAD_TESTER_LOGS
value: "true"
- name: AWSTESTER_EKS_UPLOAD_WORKER_NODE_LOGS
# 'true' to upload worker node logs to S3
- name: AWS_K8S_TESTER_EKS_UPLOAD_WORKER_NODE_LOGS
value: "true"
- name: AWSTESTER_EKS_WORKER_NODE_INSTANCE_TYPE
# worker node EC2 instance type
- name: AWS_K8S_TESTER_EKS_WORKER_NODE_INSTANCE_TYPE
value: m3.xlarge
- name: AWSTESTER_EKS_WORKER_NODE_ASG_MIN
# worker node auto-scaling group minimum number of nodes
- name: AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_MIN
value: "1"
- name: AWSTESTER_EKS_WORKER_NODE_ASG_MAX
# worker node auto-scaling group maximum number of nodes
- name: AWS_K8S_TESTER_EKS_WORKER_NODE_ASG_MAX
value: "1"
- name: AWSTESTER_EKS_LOG_DEBUG
# 'true' to enable debug level logs
- name: AWS_K8S_TESTER_EKS_LOG_DEBUG
value: "false"
- name: AWSTESTER_EKS_LOG_ACCESS
# 'true' to open port 22 in security group, and enable SSH for log dumper
- name: AWS_K8S_TESTER_EKS_LOG_ACCESS
value: "true"
- name: AWSTESTER_EKS_ALB_ENABLE
# 'true' to create AWS ALB
- name: AWS_K8S_TESTER_EKS_ALB_ENABLE
value: "false"
# AWS test account credential mounted path, required for AWS API call
- name: AWS_SHARED_CREDENTIALS_FILE
value: /etc/eks-aws-credentials/eks-aws-credentials
labels:
Expand All @@ -46,15 +66,14 @@ presets:

periodics:
# Run Kubernetes 1.10 branch e2e tests with EKS prod build 1.10
# similar to "pull-kubernetes-e2e-gke" but as a periodic job
- interval: 1h
name: ci-kubernetes-e2e-1-10-aws-eks-1-10-prod
labels:
preset-service-account: "true"
preset-ci-kubernetes-e2e-aws-eks-1-10: "true"
spec:
containers:
- image: 607362164682.dkr.ecr.us-west-2.amazonaws.com/awstester-e2e:20181029-8a9413d299e9
- image: gcr.io/k8s-testimages/kubekins-e2e:v20181024-be2f242dd-master
args:
- --timeout=200
- --bare
Expand All @@ -69,16 +88,15 @@ periodics:
- --test_args=--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\] --minStartupPods=8
- --timeout=180m

# Run Kubernetes e2e tests with EKS prod build 1.10
# similar to "pull-kubernetes-e2e-gke" but as a periodic job
# Run Kubernetes stable e2e tests with EKS prod build 1.10
- interval: 1h
name: ci-kubernetes-e2e-stable-aws-eks-1-10-prod
labels:
preset-service-account: "true"
preset-ci-kubernetes-e2e-aws-eks-1-10: "true"
spec:
containers:
- image: 607362164682.dkr.ecr.us-west-2.amazonaws.com/awstester-e2e:20181029-8a9413d299e9
- image: gcr.io/k8s-testimages/kubekins-e2e:v20181024-be2f242dd-master
args:
- --timeout=200
- --bare
Expand All @@ -93,16 +111,15 @@ periodics:
- --test_args=--ginkgo.skip=\[Slow\]|\[Serial\]|\[Disruptive\]|\[Flaky\]|\[Feature:.+\] --minStartupPods=8
- --timeout=180m

# Run Kubernetes e2e tests with EKS prod build 1.10
# similar to "pull-kubernetes-e2e-gke" but as a periodic job
# Run Kubernetes latest e2e tests with EKS prod build 1.10
- interval: 1h
name: ci-kubernetes-e2e-latest-aws-eks-1-10-prod
labels:
preset-service-account: "true"
preset-ci-kubernetes-e2e-aws-eks-1-10: "true"
spec:
containers:
- image: 607362164682.dkr.ecr.us-west-2.amazonaws.com/awstester-e2e:20181029-8a9413d299e9
- image: gcr.io/k8s-testimages/kubekins-e2e:v20181024-be2f242dd-master
args:
- --timeout=200
- --bare
Expand Down
5 changes: 3 additions & 2 deletions kubetest/eks/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ go_library(
visibility = ["//visibility:public"],
deps = [
"//kubetest/process:go_default_library",
"//vendor/github.com/aws/awstester/eksconfig:go_default_library",
"//vendor/github.com/aws/awstester/eksdeployer:go_default_library",
"//kubetest/util:go_default_library",
"//vendor/github.com/aws/aws-k8s-tester/eksconfig:go_default_library",
"//vendor/github.com/aws/aws-k8s-tester/ekstester:go_default_library",
],
)

Expand Down
Loading