k8s.io/kubernetes@v1.29.3/test/integration/scheduler_perf/config/pod-anti-affinity-ns-selector.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 generateName: anti-affinity-pod- 5 labels: 6 color: green 7 spec: 8 affinity: 9 podAntiAffinity: 10 requiredDuringSchedulingIgnoredDuringExecution: 11 - labelSelector: 12 matchLabels: 13 color: green 14 topologyKey: kubernetes.io/hostname 15 namespaceSelector: 16 matchLabels: 17 team: devops 18 containers: 19 - image: registry.k8s.io/pause:3.9 20 name: pause 21 ports: 22 - containerPort: 80 23 resources: 24 limits: 25 cpu: 100m 26 memory: 500Mi 27 requests: 28 cpu: 100m 29 memory: 500Mi