diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-01-08 21:06:20 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-01-08 21:06:20 +0100 |
commit | f9f13898263aff70af604314904c4bddd57fd05f (patch) | |
tree | 5ff203bc575dc7c2aab75bdfb274e4122be35524 | |
parent | fcb79da5ed3eb86bfef5c859e8e6d52d9fe98427 (diff) |
Add affinity rule
-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 |