Skip to content
Snippets Groups Projects
Verified Commit 53563641 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

blog: Fix anti-affinity

parent 38551a71
No related branches found
No related tags found
No related merge requests found
...@@ -26,13 +26,16 @@ spec: ...@@ -26,13 +26,16 @@ spec:
affinity: affinity:
podAntiAffinity: podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
- labelSelector: preferredDuringSchedulingIgnoredDuringExecution:
matchExpressions: - weight: 100
- key: app podAffinityTerm:
operator: In labelSelector:
values: matchExpressions:
- blog - key: app
topologyKey: "kubernetes.io/hostname" operator: In
values:
- blog
topologyKey: "kubernetes.io/hostname"
containers: containers:
- name: blog - name: blog
image: image-registry.openshift-image-registry.svc:5000/blog/blog:latest image: image-registry.openshift-image-registry.svc:5000/blog/blog:latest
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment