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

blog: Add anti-affinity to deployment

parent 0d755b61
No related branches found
No related tags found
No related merge requests found
......@@ -23,6 +23,16 @@ spec:
app: blog
deploymentconfig: blog
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- blog
topologyKey: "kubernetes.io/hostname"
containers:
- name: blog
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