Skip to content

Commit

Permalink
Add tolerations to the flannel chart
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Buil <mbuil@suse.com>
  • Loading branch information
manuelbuil committed Mar 15, 2024
1 parent 8ac2e92 commit 6051c18
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 10 deletions.
5 changes: 3 additions & 2 deletions chart/kube-flannel/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ spec:
- linux
hostNetwork: true
priorityClassName: system-node-critical
{{- with .Values.flannel.tolerations }}
tolerations:
- operator: Exists
effect: NoSchedule
{{- toYaml . | trim | nindent 8 }}
{{- end }}
serviceAccountName: flannel
initContainers:
- name: install-cni-plugin
Expand Down
30 changes: 22 additions & 8 deletions chart/kube-flannel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,26 +27,40 @@ flannel:
# Port used by the backend 0 means default value (VXLAN: 8472, Wireguard: 51821, UDP: 8285)
#backendPort: 0
# MTU to use for outgoing packets (VXLAN and Wiregurad) if not defined the MTU of the external interface is used.
#mtu: 1500
# mtu: 1500
#
# VXLAN Configs:
#
# VXLAN Identifier to be used. On Linux default is 1.
#vni: 1
# Enable VXLAN Group Based Policy (Default false)
#GBP: false
# GBP: false
# Enable direct routes (default is false)
#directRouting: false
# directRouting: false
# MAC prefix to be used on Windows. (Defaults is 0E-2A)
#macPrefix: "0E-2A"
# macPrefix: "0E-2A"
#
# Wireguard Configs:
#
# UDP listen port used with IPv6
#backendPortv6: 51821
# backendPortv6: 51821
# Pre shared key to use
#psk: 0
# psk: 0
# IP version to use on Wireguard
#tunnelMode: "separate"
# tunnelMode: "separate"
# Persistent keep interval to use
#keepaliveInterval: 0
# keepaliveInterval: 0
#
# General daemonset configs
#
tolerations:
- key: "node.kubernetes.io/not-ready"
effect: "NoSchedule"
- key: "node-role.kubernetes.io/control-plane"
effect: "NoSchedule"
- key: "node.cloudprovider.kubernetes.io/uninitialized"
effect: "NoSchedule"
value: "true"
- key: "node-role.kubernetes.io/etcd"
operator: "Exists"
effect: "NoExecute"

0 comments on commit 6051c18

Please sign in to comment.