
Add test case with several init pods with affinity or antiaffinity. Signed-off-by: Aldo Culquicondor <acondor@google.com>
28 lines
582 B
YAML
28 lines
582 B
YAML
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
generateName: affinity-pod-
|
|
labels:
|
|
color: blue
|
|
spec:
|
|
affinity:
|
|
podAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchLabels:
|
|
color: blue
|
|
topologyKey: failure-domain.beta.kubernetes.io/zone
|
|
namespaces: ["sched-test", "sched-setup"]
|
|
containers:
|
|
- image: k8s.gcr.io/pause:3.2
|
|
name: pause
|
|
ports:
|
|
- containerPort: 80
|
|
resources:
|
|
limits:
|
|
cpu: 100m
|
|
memory: 500Mi
|
|
requests:
|
|
cpu: 100m
|
|
memory: 500Mi
|