diff --git a/test/integration/scheduler_perf/affinity/performance-config.yaml b/test/integration/scheduler_perf/affinity/performance-config.yaml index 809bfe007ca..e557f983a1f 100644 --- a/test/integration/scheduler_perf/affinity/performance-config.yaml +++ b/test/integration/scheduler_perf/affinity/performance-config.yaml @@ -78,6 +78,61 @@ initPods: 1000 measurePods: 2000 +- name: SchedulingPodMatchingAntiAffinity + defaultPodTemplatePath: ../templates/pod-with-pod-anti-affinity.yaml + workloadTemplate: + - opcode: createNodes + countParam: $initNodes + - opcode: createNamespaces + prefix: sched + count: 2 + - opcode: createPods + countParam: $initPods + namespace: sched-0 + - opcode: createPods + podTemplatePath: ../templates/pod-with-pod-anti-affinity-label.yaml + countParam: $measurePods + collectMetrics: true + namespace: sched-1 + workloads: + - name: 5Nodes + featureGates: + SchedulerQueueingHints: false + labels: [integration-test, short] + params: + initNodes: 5 + initPods: 1 + measurePods: 4 + - name: 5Nodes_QueueingHintsEnabled + featureGates: + SchedulerQueueingHints: true + labels: [integration-test, short] + params: + initNodes: 5 + initPods: 1 + measurePods: 4 + - name: 500Nodes + params: + initNodes: 500 + initPods: 100 + measurePods: 400 + - name: 5000Nodes_5000Pods + featureGates: + SchedulerQueueingHints: false + labels: [performance] + params: + initNodes: 5000 + initPods: 1000 + measurePods: 5000 + - name: 5000Nodes_5000Pods_QueueingHintsEnabled + featureGates: + SchedulerQueueingHints: true + labels: [performance] + params: + initNodes: 5000 + initPods: 1000 + measurePods: 5000 + - name: SchedulingPodAffinity defaultPodTemplatePath: ../templates/pod-with-pod-affinity.yaml workloadTemplate: diff --git a/test/integration/scheduler_perf/templates/pod-with-pod-anti-affinity-label.yaml b/test/integration/scheduler_perf/templates/pod-with-pod-anti-affinity-label.yaml new file mode 100644 index 00000000000..cd3293eba96 --- /dev/null +++ b/test/integration/scheduler_perf/templates/pod-with-pod-anti-affinity-label.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Pod +metadata: + generateName: anti-affinity-matching-pod- + labels: + color: green +spec: + containers: + - image: registry.k8s.io/pause:3.10.1 + name: pause + ports: + - containerPort: 80 + resources: + limits: + cpu: 100m + memory: 500Mi + requests: + cpu: 100m + memory: 500Mi