Prevent apps from being scheduled on the same node
This commit is contained in:
parent
be37025f2a
commit
866c54f623
|
@ -9,6 +9,13 @@ metadata:
|
|||
name: lldap
|
||||
spec:
|
||||
replicas: 2
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: kubernetes.io/hostname
|
||||
whenUnsatisfiable: ScheduleAnyway
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
type: dummy
|
||||
selector:
|
||||
matchLabels:
|
||||
app: lldap
|
||||
|
|
|
@ -8,6 +8,13 @@ metadata:
|
|||
|
||||
spec:
|
||||
replicas: 2
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: kubernetes.io/hostname
|
||||
whenUnsatisfiable: DoNotSchedule
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
type: dummy
|
||||
selector:
|
||||
matchLabels:
|
||||
app: whoami
|
||||
|
|
Loading…
Reference in New Issue
Block a user