diff options
author | Borislav Glozman <Borislav.Glozman@amdocs.com> | 2019-03-20 14:34:49 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-03-20 14:34:49 +0000 |
commit | 458ab6a373ba68a147cf19d0f9c480150d9ec87c (patch) | |
tree | e7ac680a6384c34d31edfca5abf2ce5e07255ec5 /kubernetes/dmaap/components/message-router/charts/message-router-kafka | |
parent | 55d1ab1c49032b20e47137f3ea63dc47bca1a6e4 (diff) | |
parent | c3d5a567a2973a3e53cf442c126b9553234c168b (diff) |
Merge "Add noteAffinity option to kafka/zookeeper"
Diffstat (limited to 'kubernetes/dmaap/components/message-router/charts/message-router-kafka')
2 files changed, 6 insertions, 1 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 225181cecf..f4583a16ea 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 }}" diff --git a/kubernetes/dmaap/components/message-router/charts/message-router-kafka/values.yaml b/kubernetes/dmaap/components/message-router/charts/message-router-kafka/values.yaml index b6567bbf0f..e719cb1ad4 100644 --- a/kubernetes/dmaap/components/message-router/charts/message-router-kafka/values.yaml +++ b/kubernetes/dmaap/components/message-router/charts/message-router-kafka/values.yaml @@ -47,9 +47,10 @@ replicaCount: 3 # defult partitions defaultpartitions: 3 - nodeSelector: {} +nodeAffinity: {} + affinity: {} tolerations: {} |