diff options
-rw-r--r-- | yaml/deployments/cas.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/yaml/deployments/cas.yaml b/yaml/deployments/cas.yaml index 86dc11a..fe7c082 100644 --- a/yaml/deployments/cas.yaml +++ b/yaml/deployments/cas.yaml @@ -14,6 +14,13 @@ spec: labels: app: cas-app spec: + affinity: + podAntiAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + - labelSelector: + matchLabels: + app: cas-app + topologyKey: "kubernetes.io/hostname" containers: - name: cas image: ghcr.io/cas-4/backend:latest |