Merge "Add pod anti-affinity to apiserver-webhook"

This commit is contained in:
Zuul 2019-06-07 14:48:30 +00:00 committed by Gerrit Code Review
commit e2b509e2f0
2 changed files with 8 additions and 0 deletions

View File

@ -117,6 +117,8 @@ spec:
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
spec:
affinity:
{{ tuple $envAll "kubernetes-keystone-webhook" "api" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }}
dnsPolicy: ClusterFirst
containers:
- name: apiserver

View File

@ -187,6 +187,12 @@ pod:
kubernetes_apiserver:
init_container: null
kubernetes_apiserver:
affinity:
anti:
type:
default: preferredDuringSchedulingIgnoredDuringExecution
topologyKey:
default: kubernetes.io/hostname
replicas:
apiserver: 1
api: 1