Skip to content

Commit

Permalink
support eks aws (#281)
Browse files Browse the repository at this point in the history
Co-authored-by: Harish Kuna <[email protected]>
  • Loading branch information
hakuna-matatah and Harish Kuna authored Aug 23, 2022
1 parent 307a2d6 commit 3b59030
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
1 change: 1 addition & 0 deletions infrastructure/lib/kit-infrastructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ export class KITInfrastructure extends Stack {
"eks:*",
"pricing:GetProducts",
"sts:AssumeRole",
"s3:*"
],
}),
],
Expand Down
4 changes: 4 additions & 0 deletions tests/pipelines/eks/awscli-eks-cl2-load.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,10 @@ spec:
value: $(params.results-bucket)
- name: nodes
value: $(params.desired-nodes)
- name: cluster-name
value: $(params.cluster-name)
- name: endpoint
value: $(params.endpoint)
runAfter:
- create-mng-nodes
taskRef:
Expand Down
15 changes: 14 additions & 1 deletion tests/tasks/generators/clusterloader/load.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ spec:
default: "1000"
- name: results-bucket
description: "Results bucket with path of s3 to upload results"
- name: region
default: "us-west-2"
description: The region where the cluster is in.
- name: endpoint
default: ""
description: "aws eks enpoint to create clusters against"
- name: cluster-name
description: The name of the EKS cluster you want to spin.
workspaces:
- name: source
- name: results
Expand Down Expand Up @@ -57,7 +65,12 @@ spec:
image: public.ecr.aws/kit/clusterloader2:0213bea
onError: continue
script: |
ENABLE_EXEC_SERVICE=false /clusterloader --kubeconfig=$(workspaces.config.path)/kubeconfig --testconfig=$(workspaces.source.path)/perf-tests/clusterloader2/testing/load/config.yaml --testoverrides=$(workspaces.source.path)/overrides.yaml --nodes=$(params.nodes) --provider=eks --report-dir=$(workspaces.results.path) --alsologtostderr --v=2
ENDPOINT_FLAG=""
if [ -n "$(params.endpoint)" ]; then
ENDPOINT_FLAG="--endpoint $(params.endpoint)"
fi
aws eks $ENDPOINT_FLAG update-kubeconfig --name $(params.cluster-name) --region $(params.region)
ENABLE_EXEC_SERVICE=false /clusterloader --kubeconfig=/root/.kube/config --testconfig=$(workspaces.source.path)/perf-tests/clusterloader2/testing/load/config.yaml --testoverrides=$(workspaces.source.path)/overrides.yaml --nodes=$(params.nodes) --provider=eks --report-dir=$(workspaces.results.path) --alsologtostderr --v=2
timeout: 30000s
- name: upload-results
image: alpine/k8s:1.22.6
Expand Down

0 comments on commit 3b59030

Please sign in to comment.