Merge "Add replica and anti-affinity to rbd-provisioner"

This commit is contained in:
Zuul 2019-03-12 12:31:25 +00:00 committed by Gerrit Code Review
commit d499bfb595
1 changed files with 10 additions and 0 deletions

View File

@ -24,6 +24,16 @@ spec:
{{- if (.Values.global.rbac) or (.Values.global.reuseRbac)}}
serviceAccount: {{ .Values.rbac.serviceAccount }}
{{- end }}
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchExpressions:
- key: app
operator: In
values:
- {{ .Values.global.name }}
topologyKey: kubernetes.io/hostname
containers:
- name: {{ .Values.global.name }}
image: {{ .Values.images.tags.rbd_provisioner | quote }}