From 81028355099fa4d7d3bd85beca630f53756033c3 Mon Sep 17 00:00:00 2001 From: Eran Kampf <205185+ekampf@users.noreply.github.com> Date: Tue, 20 Feb 2018 06:42:41 -0800 Subject: [PATCH] Added nodeSelector (#3719) --- incubator/zookeeper/Chart.yaml | 2 +- incubator/zookeeper/templates/statefulset.yaml | 4 ++++ incubator/zookeeper/values.yaml | 5 +++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/incubator/zookeeper/Chart.yaml b/incubator/zookeeper/Chart.yaml index 5c3eb7c8c4..b6f08d5045 100755 --- a/incubator/zookeeper/Chart.yaml +++ b/incubator/zookeeper/Chart.yaml @@ -1,6 +1,6 @@ name: zookeeper home: https://zookeeper.apache.org/ -version: 0.4.5 +version: 0.4.6 description: Centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. icon: https://zookeeper.apache.org/images/zookeeper_small.gif diff --git a/incubator/zookeeper/templates/statefulset.yaml b/incubator/zookeeper/templates/statefulset.yaml index 80ebecadf0..1d89fd12e2 100644 --- a/incubator/zookeeper/templates/statefulset.yaml +++ b/incubator/zookeeper/templates/statefulset.yaml @@ -21,6 +21,10 @@ spec: {{- if .Values.affinity }} affinity: {{ toYaml .Values.affinity | indent 8 }} +{{- end }} +{{- if .Values.nodeSelector }} + nodeSelector: +{{ toYaml .Values.nodeSelector | indent 8 }} {{- end }} containers: - name: {{ template "zookeeper.name" . }}-server diff --git a/incubator/zookeeper/values.yaml b/incubator/zookeeper/values.yaml index 67b808a4d4..6dbd6547a2 100644 --- a/incubator/zookeeper/values.yaml +++ b/incubator/zookeeper/values.yaml @@ -47,3 +47,8 @@ affinity: {} # operator: NotIn # values: # - "true" + +## Node labels for pod assignment +## Ref: https://kubernetes.io/docs/user-guide/node-selection/ +## +nodeSelector: {}