Skip to content

Commit 3b61a25

Browse files
author
nkowenski
committed
add node selector affinity and tolerations
1 parent 4b8eddf commit 3b61a25

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

charts/cluster-secret/templates/deployment.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,15 @@ spec:
4444
periodSeconds: 120
4545
resources: {}
4646
serviceAccountName: {{ include "cluster-secret.fullname" . }}-account
47+
{{- with .Values.nodeSelector }}
48+
nodeSelector:
49+
{{- toYaml . | nindent 8 }}
50+
{{- end }}
51+
{{- with .Values.affinity }}
52+
affinity:
53+
{{- toYaml . | nindent 8 }}
54+
{{- end }}
55+
{{- with .Values.tolerations }}
56+
tolerations:
57+
{{- toYaml . | nindent 8 }}
58+
{{- end }}

charts/cluster-secret/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,8 @@ image:
99
kubernetesClusterDomain: cluster.local
1010

1111

12+
nodeSelector: {}
13+
14+
tolerations: []
15+
16+
affinity: {}

0 commit comments

Comments
 (0)