Skip to content

Commit

Permalink
Add nodeSelector for Moon pods. (#15)
Browse files Browse the repository at this point in the history
Ability to specify nodeSelector for Moon pods
  • Loading branch information
aandryashin authored Aug 5, 2020
1 parent a017cf3 commit 7072c96
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions moon/templates/moon.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion moon/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7072c96

Please sign in to comment.