Skip to content

Add eks pod identity test suite #3211

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
54 changes: 54 additions & 0 deletions clusterloader2/testing/eks-pod-identity/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{{$namespacePrefix := DefaultParam .CL2_NAMESPACE_PREFIX "default"}}
{{$namespaceCount := DefaultParam .CL2_NAMESPACE_COUNT 1}}
{{$totalEksPodIdentityPods := DefaultParam .CL2_EKS_POD_IDENTITY_PODS 5000}}
{{$defaultQps := DefaultParam .CL2_DEFAULT_QPS 500}}
{{$defaultBurst := DefaultParam .CL2_DEFAULT_BURST 1000}}
{{$uniformQps := DefaultParam .CL2_UNIFORM_QPS 500}}

name: eks-pod-identity
tuningSets:
# default is a tuningset that is meant to be used when we don't have any specific requirements on pace of operations.
- name: default
globalQPSLoad:
qps: {{$defaultQps}}
burst: {{$defaultBurst}}
- name: UniformQPS
qpsLoad:
qps: {{$uniformQps}}
steps:
# a pod identity association with (namespace: default, sa: default) is created as prerequisite
- name: create eks pod identity pods
phases:
- namespaceRange:
min: 1
max: {{$namespaceCount}}
baseName: {{$namespacePrefix}}
replicasPerNamespace: {{$totalEksPodIdentityPods}}
tuningSet: UniformQPS
objectBundle:
- basename: eks-pod-identity
objectTemplatePath: pod-default.yaml
templateFillMap:
Group: eks-pod-identity
- name: Waiting for eks pod identity pods to be created
measurements:
- Identifier: WaitForEksPodIdentityPods
Method: WaitForRunningPods
Params:
action: gather
timeout: 5m
desiredPodCount: {{$totalEksPodIdentityPods}}
labelSelector: group = eks-pod-identity
- name: Delete eks pod identity pods
phases:
- namespaceRange:
min: 1
max: {{$namespaceCount}}
baseName: {{$namespacePrefix}}
replicasPerNamespace: 0
tuningSet: default
objectBundle:
- basename: eks-pod-identity
objectTemplatePath: pod-default.yaml
templateFillMap:
Group: eks-pod-identity
15 changes: 15 additions & 0 deletions clusterloader2/testing/eks-pod-identity/pod-default.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Pod
metadata:
generateName: eks-pod-identity-pod-churn-
labels:
group: {{.Group}}
spec:
containers:
- image: registry.k8s.io/pause:3.9
name: pause
initContainers:
- name: app-init
image: amazon/aws-cli:latest
command: ["/bin/sh"]
args: ["-c", "aws sts get-caller-identity"]