diff --git a/apps/lldap/deployment.yaml b/apps/lldap/deployment.yaml index 4c588b5..cd48613 100644 --- a/apps/lldap/deployment.yaml +++ b/apps/lldap/deployment.yaml @@ -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 diff --git a/apps/whoami.yaml b/apps/whoami.yaml index 5f68745..285be17 100644 --- a/apps/whoami.yaml +++ b/apps/whoami.yaml @@ -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