Skip to content

Commit

Permalink
add node selector affinity and tolerations
Browse files Browse the repository at this point in the history
  • Loading branch information
nkowenski committed Mar 20, 2024
1 parent 4b8eddf commit 3b61a25
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/cluster-secret/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,15 @@ spec:
periodSeconds: 120
resources: {}
serviceAccountName: {{ include "cluster-secret.fullname" . }}-account
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/cluster-secret/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,8 @@ image:
kubernetesClusterDomain: cluster.local


nodeSelector: {}

tolerations: []

affinity: {}

0 comments on commit 3b61a25

Please sign in to comment.