From e4f0690eb2f5ebe51c61a76bdac109a1a36dd3e4 Mon Sep 17 00:00:00 2001 From: Mateusz Blaszkowski Date: Mon, 4 Sep 2017 05:56:19 -0400 Subject: [PATCH] 'affinity' constraints added in remaining services Change-Id: I1ca654fbcc0301591e6b290d41fce1797ea2820a Signed-off-by: Mateusz Blaszkowski --- ceph/templates/deployment-rbd-provisioner.yaml | 2 ++ ingress/templates/deployment-error.yaml | 2 ++ mistral/templates/statefulset-engine.yaml | 2 ++ 3 files changed, 6 insertions(+) diff --git a/ceph/templates/deployment-rbd-provisioner.yaml b/ceph/templates/deployment-rbd-provisioner.yaml index 8f80e68ee9..1740fca144 100644 --- a/ceph/templates/deployment-rbd-provisioner.yaml +++ b/ceph/templates/deployment-rbd-provisioner.yaml @@ -29,6 +29,8 @@ spec: labels: {{ tuple $envAll "rbd" "provisioner" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} spec: + affinity: +{{ tuple $envAll "rbd" "provisioner" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} containers: - name: ceph-rbd-provisioner image: {{ .Values.images.rbd_provisioner }} diff --git a/ingress/templates/deployment-error.yaml b/ingress/templates/deployment-error.yaml index 2ea5cd30c6..e3ac5f5c24 100644 --- a/ingress/templates/deployment-error.yaml +++ b/ingress/templates/deployment-error.yaml @@ -30,6 +30,8 @@ spec: labels: {{ tuple $envAll "ingress" "error-pages" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} spec: + affinity: +{{ tuple $envAll "ingress" "error-pages" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} nodeSelector: {{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }} terminationGracePeriodSeconds: 60 diff --git a/mistral/templates/statefulset-engine.yaml b/mistral/templates/statefulset-engine.yaml index a1bbb3b080..26651f0ef5 100644 --- a/mistral/templates/statefulset-engine.yaml +++ b/mistral/templates/statefulset-engine.yaml @@ -32,6 +32,8 @@ spec: labels: app: mistral-engine spec: + affinity: +{{ tuple $envAll "mistral" "engine" | include "helm-toolkit.snippets.kubernetes_pod_anti_affinity" | indent 8 }} nodeSelector: {{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }} initContainers: