Skip to content

Commit

Permalink
feat(kube-flannel): added tolerations
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Schlegel <armin.schlegel@gmx.de>
  • Loading branch information
siredmar committed Oct 13, 2023
1 parent 48cae5b commit 24b8e11
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions charts/kube-flannel/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ spec:
{{- .Values.flannel.affinity | toYaml | nindent 8 }}
hostNetwork: true
priorityClassName: system-node-critical
{{- with .Values.flannel.tolerations }}
tolerations:
- operator: Exists
effect: NoSchedule
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "flannel.name" . }}

{{- if or .Values.flannel.installCNIPlugin .Values.flannel.installCNIConfig }}
Expand Down
6 changes: 5 additions & 1 deletion charts/kube-flannel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ flannel:
#tunnelMode: "separate"
# Persistent keep interval to use
#keepaliveInterval: 0

tolerations:
- key: edgefarm.io
effect: NoSchedule
- operator: Exists
effect: NoSchedule
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
Expand Down

0 comments on commit 24b8e11

Please sign in to comment.