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:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user