...
1apiVersion: v1
2kind: Pod
3metadata:
4 generateName: spreading-pod-with-node-inclusion-policy-
5 labels:
6 foo: bar
7spec:
8 containers:
9 - image: registry.k8s.io/pause:3.9
10 name: pause
11 ports:
12 - containerPort: 80
13 resources:
14 limits:
15 cpu: 100m
16 memory: 500Mi
17 requests:
18 cpu: 100m
19 memory: 500Mi
20 topologySpreadConstraints:
21 - maxSkew: 1
22 topologyKey: kubernetes.io/hostname
23 whenUnsatisfiable: DoNotSchedule
24 NodeAffinityPolicy: Honor
25 NodeTaintsPolicy: Honor
26 labelSelector:
27 matchLabels:
28 foo: bar
View as plain text