diff --git a/manifests/blog/blog.yaml b/manifests/blog/blog.yaml index c3452f5..4978bc0 100644 --- a/manifests/blog/blog.yaml +++ b/manifests/blog/blog.yaml @@ -27,6 +27,15 @@ spec: labels: app: blog spec: + affinity: + podAntiAffinity: + preferredDuringSchedulingIgnoredDuringExecution: + - weight: 100 + podAffinityTerm: + labelSelector: + matchLabels: + app: blog + topologyKey: kubernetes.io/hostname containers: - name: web image: rg.fr-par.scw.cloud/averagemarcus/blog:latest