Skip to content

Commit 3b59030

Browse files
hakuna-matatahHarish Kuna
andauthored
support eks aws (#281)
Co-authored-by: Harish Kuna <[email protected]>
1 parent 307a2d6 commit 3b59030

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

infrastructure/lib/kit-infrastructure.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ export class KITInfrastructure extends Stack {
137137
"eks:*",
138138
"pricing:GetProducts",
139139
"sts:AssumeRole",
140+
"s3:*"
140141
],
141142
}),
142143
],

tests/pipelines/eks/awscli-eks-cl2-load.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ spec:
8181
value: $(params.results-bucket)
8282
- name: nodes
8383
value: $(params.desired-nodes)
84+
- name: cluster-name
85+
value: $(params.cluster-name)
86+
- name: endpoint
87+
value: $(params.endpoint)
8488
runAfter:
8589
- create-mng-nodes
8690
taskRef:

tests/tasks/generators/clusterloader/load.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,14 @@ spec:
2424
default: "1000"
2525
- name: results-bucket
2626
description: "Results bucket with path of s3 to upload results"
27+
- name: region
28+
default: "us-west-2"
29+
description: The region where the cluster is in.
30+
- name: endpoint
31+
default: ""
32+
description: "aws eks enpoint to create clusters against"
33+
- name: cluster-name
34+
description: The name of the EKS cluster you want to spin.
2735
workspaces:
2836
- name: source
2937
- name: results
@@ -57,7 +65,12 @@ spec:
5765
image: public.ecr.aws/kit/clusterloader2:0213bea
5866
onError: continue
5967
script: |
60-
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
68+
ENDPOINT_FLAG=""
69+
if [ -n "$(params.endpoint)" ]; then
70+
ENDPOINT_FLAG="--endpoint $(params.endpoint)"
71+
fi
72+
aws eks $ENDPOINT_FLAG update-kubeconfig --name $(params.cluster-name) --region $(params.region)
73+
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
6174
timeout: 30000s
6275
- name: upload-results
6376
image: alpine/k8s:1.22.6

0 commit comments

Comments
 (0)