k8s.io/kubernetes@v1.29.3/test/integration/scheduler_perf/config/pod-with-pod-affinity.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 generateName: affinity-pod- 5 labels: 6 color: blue 7 spec: 8 affinity: 9 podAffinity: 10 requiredDuringSchedulingIgnoredDuringExecution: 11 - labelSelector: 12 matchLabels: 13 color: blue 14 topologyKey: topology.kubernetes.io/zone 15 namespaces: ["sched-1", "sched-0"] 16 containers: 17 - image: registry.k8s.io/pause:3.9 18 name: pause 19 ports: 20 - containerPort: 80 21 resources: 22 limits: 23 cpu: 100m 24 memory: 500Mi 25 requests: 26 cpu: 100m 27 memory: 500Mi