File tree Expand file tree Collapse file tree 3 files changed +19
-1
lines changed
tasks/generators/clusterloader Expand file tree Collapse file tree 3 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ export class KITInfrastructure extends Stack {
137137 "eks:*" ,
138138 "pricing:GetProducts" ,
139139 "sts:AssumeRole" ,
140+ "s3:*"
140141 ] ,
141142 } ) ,
142143 ] ,
Original file line number Diff line number Diff line change 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 :
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments