From 7072c964f52ee94c6d4e9972a10b586408644c25 Mon Sep 17 00:00:00 2001 From: Alexander Andryashin Date: Wed, 5 Aug 2020 19:05:25 +0300 Subject: [PATCH] Add nodeSelector for Moon pods. (#15) Ability to specify nodeSelector for Moon pods --- moon/templates/moon.yaml | 6 ++++++ moon/values.yaml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/moon/templates/moon.yaml b/moon/templates/moon.yaml index da8514b..0539061 100644 --- a/moon/templates/moon.yaml +++ b/moon/templates/moon.yaml @@ -136,6 +136,12 @@ spec: labels: app: moon spec: + {{- if .Values.moon.nodeSelector }} + nodeSelector: + {{- range $key, $value := .Values.moon.nodeSelector }} + {{ $key }}: {{ $value | quote }} + {{- end }} + {{- end }} serviceAccountName: {{ .Release.Name }} containers: - name: moon diff --git a/moon/values.yaml b/moon/values.yaml index b3e5e75..aea5f03 100644 --- a/moon/values.yaml +++ b/moon/values.yaml @@ -20,7 +20,13 @@ moon: # sessionAttemptTimeout: 30m # ## -# ## Number of running moon replicas. +# ## Node Selector for Moon pods +# ## +# nodeSelector: +# kubernetes.io/os: linux + +# ## +# ## Number of running Moon replicas. # ## # replicas: 2