Commit 881193e0 authored by Morten Brekkevold's avatar Morten Brekkevold
Browse files

Add pod affinity config

parent a7473762
......@@ -29,6 +29,16 @@ spec:
image: $CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG
ports:
- containerPort: 8000
- containerPort: $HTTP_PORT
name: web
protocol: TCP
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- podAffinityTerm:
labelSelector:
matchLabels:
name: $CI_ENVIRONMENT_SLUG
topologyKey: topology.kubernetes.io/zone
weight: 10
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment