Add replica and anti-affinity to rbd-provisioner

The rbd-provisioner does not follow the same template as the other
openstack-helm charts so we need to use specific methods to set the
affinity and replica parameters.

Story: 2004520
Task: 29845
Change-Id: I05b97b8254a541753031ba051707092eae301d6a
Signed-off-by: David Sullivan <david.sullivan@windriver.com>
This commit is contained in:
David Sullivan
2019-03-06 22:31:51 -05:00
parent 564d6ff92a
commit 5348bca741
5 changed files with 17 additions and 17 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 }}