Merge "Configure AIAP pod anti-affinity"

This commit is contained in:
Zuul 2021-09-07 19:33:26 +00:00 committed by Gerrit Code Review
commit 5ccc79ab18
1 changed files with 10 additions and 0 deletions

View File

@ -14,7 +14,17 @@ apiVersion: v1
kind: Pod
metadata:
name: airship-in-a-pod
labels:
aiap: aiap
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: aiap
operator: Exists
topologyKey: kubernetes.io/hostname
hostNetwork: false
restartPolicy: Never
containers: