Added anti-affinity to blog
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
@@ -27,6 +27,15 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: blog
|
app: blog
|
||||||
spec:
|
spec:
|
||||||
|
affinity:
|
||||||
|
podAntiAffinity:
|
||||||
|
preferredDuringSchedulingIgnoredDuringExecution:
|
||||||
|
- weight: 100
|
||||||
|
podAffinityTerm:
|
||||||
|
labelSelector:
|
||||||
|
matchLabels:
|
||||||
|
app: blog
|
||||||
|
topologyKey: kubernetes.io/hostname
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: web
|
||||||
image: rg.fr-par.scw.cloud/averagemarcus/blog:latest
|
image: rg.fr-par.scw.cloud/averagemarcus/blog:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user