--- a/compiled/complete/manifests/shop/db-sts.yaml +++ b/compiled/complete/manifests/shop/db-sts.yaml @@ -8,6 +8,7 @@ name: db namespace: shop spec: + podManagementPolicy: Parallel replicas: 1 selector: matchLabels: @@ -75,6 +76,13 @@ runAsUser: 999 seccompProfile: type: RuntimeDefault + topologySpreadConstraints: + - labelSelector: + matchLabels: + name: db + maxSkew: 1 + topologyKey: topology.kubernetes.io/zone + whenUnsatisfiable: DoNotSchedule volumes: - emptyDir: {} name: run --- a/compiled/complete/manifests/shop/web-deploy.yaml +++ b/compiled/complete/manifests/shop/web-deploy.yaml @@ -105,6 +105,15 @@ seccompProfile: type: RuntimeDefault serviceAccountName: web + topologySpreadConstraints: + - labelSelector: + matchLabels: + name: web + matchLabelKeys: + - pod-template-hash + maxSkew: 1 + topologyKey: kubernetes.io/hostname + whenUnsatisfiable: ScheduleAnyway volumes: - emptyDir: {} name: tmp