Prevent apps from being scheduled on the same node
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user