Merge pull request #97068 from chendave/selectors

Add constraint selector to pod template
This commit is contained in:
Kubernetes Prow Robot 2020-12-08 22:01:19 -08:00 committed by GitHub
commit 65d57211e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -2,11 +2,16 @@ apiVersion: v1
kind: Pod
metadata:
generateName: spreading-pod-
labels:
color: blue
spec:
topologySpreadConstraints:
- maxSkew: 5
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: ScheduleAnyway
labelSelector:
matchLabels:
color: blue
containers:
- image: k8s.gcr.io/pause:3.2
name: pause

View File

@ -2,11 +2,16 @@ apiVersion: v1
kind: Pod
metadata:
generateName: spreading-pod-
labels:
color: blue
spec:
topologySpreadConstraints:
- maxSkew: 5
topologyKey: topology.kubernetes.io/zone
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
color: blue
containers:
- image: k8s.gcr.io/pause:3.2
name: pause