summaryrefslogtreecommitdiffstats
path: root/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates
diff options
context:
space:
mode:
authorMatthieu Cauffiez <matthieu.cauffiez@bell.ca>2019-03-12 11:07:01 -0400
committerMatthieu Cauffiez <matthieu.cauffiez@bell.ca>2019-03-12 11:07:05 -0400
commitc3d5a567a2973a3e53cf442c126b9553234c168b (patch)
treea77e2974896507c2aa18eeb1a47700368710722e /kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates
parentc4b0b79045a56050f2ed0eee8f13237a90815c3c (diff)
Add noteAffinity option to kafka/zookeeper
enabled nodeaffinity for kafka. This will allow kafka/zookeeper to boot back on a node whree there is topic data Issue-ID: DMAAP-1089 Change-Id: Ic14d3201f03787f7abe8b83ae76d64a7c353ad87 Signed-off-by: Matthieu Cauffiez <matthieu.cauffiez@bell.ca>
Diffstat (limited to 'kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates')
-rw-r--r--kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml4
1 files changed, 4 insertions, 0 deletions
diff --git a/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml b/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml
index 163bbc23b6..ae8364c616 100644
--- a/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml
+++ b/kubernetes/dmaap/components/message-router/charts/message-router-kafka/templates/statefulset.yaml
@@ -44,6 +44,10 @@ spec:
values:
- {{ include "common.name" . }}
topologyKey: "kubernetes.io/hostname"
+ {{- if .Values.nodeAffinity }}
+ nodeAffinity:
+ {{ toYaml .Values.nodeAffinity | indent 10 }}
+ {{- end }}
initContainers:
- name: {{ include "common.name" . }}-initcontainer
image: "{{ .Values.global.ubuntuInitRepository }}/{{ .Values.ubuntuInitImage }}"