Skip to content

Commit e8c74ef

Browse files
authored
init-agent: add nodeSelector, affinity, and tolerations (#210)
Signed-off-by: ghdrope <0coasts-gearing@icloud.com>
1 parent 82f1c15 commit e8c74ef

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

charts/init-agent/templates/host/deployment.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,17 @@ spec:
7373
{{ toYaml .Values.extraVolumes | indent 8 }}
7474
{{- end }}
7575

76+
{{- with .Values.nodeSelector }}
77+
nodeSelector:
78+
{{- toYaml . | nindent 8 }}
79+
{{- end }}
80+
{{- with .Values.affinity }}
81+
affinity:
82+
{{- toYaml . | nindent 8 }}
83+
{{- end }}
84+
{{- with .Values.tolerations }}
85+
tolerations:
86+
{{- toYaml . | nindent 8 }}
87+
{{- end }}
88+
7689
{{- end }}

charts/init-agent/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,15 @@ hostAliases:
135135
values:
136136
- ip: ""
137137
hostnames: []
138+
139+
# This configures the node selector for scheduling init-agent to specific nodes.
140+
# For more information see https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#nodeselector.
141+
nodeSelector: {}
142+
143+
# This configures tolerations to allow init-agent to be scheduled to Nodes with taints.
144+
# For more information see https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/.
145+
tolerations: []
146+
147+
# This configures advanced scheduling affinity settings to fine-tune where init-agent runs.
148+
# For more information see https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node/#affinity-and-anti-affinity.
149+
affinity: {}

0 commit comments

Comments
 (0)