|
| 1 | +{{$namespacePrefix := DefaultParam .CL2_NAMESPACE_PREFIX "default"}} |
| 2 | +{{$namespaces := DefaultParam .CL2_NAMESPACES 1}} |
| 3 | +{{$totalEksPodIdentityPods := DefaultParam .CL2_EKS_POD_IDENTITY_PODS 5000}} |
| 4 | +{{$defaultQps := DefaultParam .CL2_DEFAULT_QPS 500}} |
| 5 | +{{$defaultBurst := DefaultParam .CL2_DEFAULT_BURST 1000}} |
| 6 | +{{$uniformQps := DefaultParam .CL2_UNIFORM_QPS 500}} |
| 7 | + |
| 8 | +name: eks-pod-identity |
| 9 | +tuningSets: |
| 10 | +# default is a tuningset that is meant to be used when we don't have any specific requirements on pace of operations. |
| 11 | +- name: default |
| 12 | + globalQPSLoad: |
| 13 | + qps: {{$defaultQps}} |
| 14 | + burst: {{$defaultBurst}} |
| 15 | +- name: UniformQPS |
| 16 | + qpsLoad: |
| 17 | + qps: {{$uniformQps}} |
| 18 | +steps: |
| 19 | +# a pod identity association with (namespace: default, sa: default) is created as prerequisite |
| 20 | +- name: create eks pod identity pods |
| 21 | + phases: |
| 22 | + - namespaceRange: |
| 23 | + min: 1 |
| 24 | + max: {{$namespaces}} |
| 25 | + baseName: {{$namespacePrefix}} |
| 26 | + replicasPerNamespace: {{$totalEksPodIdentityPods}} |
| 27 | + tuningSet: UniformQPS |
| 28 | + objectBundle: |
| 29 | + - basename: eks-pod-identity |
| 30 | + objectTemplatePath: pod-default.yaml |
| 31 | + templateFillMap: |
| 32 | + Group: eks-pod-identity |
| 33 | +- name: Waiting for eks pod identity pods to be created |
| 34 | + measurements: |
| 35 | + - Identifier: WaitForEksPodIdentityPods |
| 36 | + Method: WaitForRunningPods |
| 37 | + Params: |
| 38 | + action: gather |
| 39 | + timeout: 5m |
| 40 | + desiredPodCount: {{$totalEksPodIdentityPods}} |
| 41 | + labelSelector: group = eks-pod-identity |
| 42 | +- name: Delete eks pod identity pods |
| 43 | + phases: |
| 44 | + - namespaceRange: |
| 45 | + min: 1 |
| 46 | + max: {{$namespaces}} |
| 47 | + baseName: {{$namespacePrefix}} |
| 48 | + replicasPerNamespace: 0 |
| 49 | + tuningSet: default |
| 50 | + objectBundle: |
| 51 | + - basename: eks-pod-identity |
| 52 | + objectTemplatePath: pod-default.yaml |
| 53 | + templateFillMap: |
| 54 | + Group: eks-pod-identity |
0 commit comments