Skip to content

Commit e8cbe80

Browse files
committed
add tolerations and node selector
1 parent f7f469c commit e8cbe80

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

charts/redis/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
---
22
name: redis
3-
version: 0.0.5
3+
version: 0.0.6

charts/redis/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,18 @@ spec:
4242
containerPort: 9121
4343
protocol: TCP
4444
{{- end }}
45+
{{- if .Values.nodeSelector }}
46+
nodeSelector:
47+
{{ toYaml .Values.nodeSelector | nindent 8 }}
48+
{{- end }}
49+
{{- if .Values.tolerations }}
50+
tolerations:
51+
{{ toYaml .Values.tolerations | nindent 8 }}
52+
{{- end }}
53+
{{- if .Values.affinity }}
54+
affinity:
55+
{{ toYaml .Values.affinity | nindent 8 }}
56+
{{- end }}
4557
{{- if .Values.priorityClassName }}
4658
priorityClassName: "{{ .Values.priorityClassName }}"
4759
{{- end }}

0 commit comments

Comments
 (0)