Skip to content

Commit

Permalink
Merge pull request #13 from fasttrack-solutions/node-selector
Browse files Browse the repository at this point in the history
feat: added node selector
  • Loading branch information
maxholdaway authored Feb 6, 2023
2 parents 611e0a9 + 07a81ed commit ba68c60
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions charts/cubejs/templates/master/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ spec:
app.kubernetes.io/component: master
{{- include "cubejs.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.master.nodeSelector }}
nodeSelector:
{{- toYaml .Values.master.nodeSelector | nindent 8 }}
{{- end }}
containers:
- name: cube
image: "{{ .Values.image.repository }}:v{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/cubejs/templates/workers/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ spec:
app.kubernetes.io/component: workers
{{- include "cubejs.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.workers.nodeSelector }}
nodeSelector:
{{- toYaml .Values.workers.nodeSelector | nindent 8 }}
{{- end }}
containers:
- name: cube
image: "{{ .Values.image.repository }}:v{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down
4 changes: 4 additions & 0 deletions charts/cubestore/templates/router/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ spec:
app.kubernetes.io/component: router
{{- include "cubestore.selectorLabels" . | nindent 8 }}
spec:
{{- if .Values.router.nodeSelector }}
nodeSelector:
{{- toYaml .Values.router.nodeSelector | nindent 8 }}
{{- end }}
containers:
- name: cubestore
image: "{{ .Values.image.repository }}:v{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand Down

0 comments on commit ba68c60

Please sign in to comment.