From 146cd1301d1a36110494db573d52c55f391e55d9 Mon Sep 17 00:00:00 2001 From: rish-onesignal <66269050+rish-onesignal@users.noreply.github.com> Date: Thu, 17 Dec 2020 07:12:31 -0800 Subject: [PATCH] Add missing tolerations in linkerd-cni helm chart (#5368) (#5369) The linkerd-cni helm chart is missing tolerations on the daemonset. This prevents the linkerd-cni daemonset from being installed on all intended nodes. We use the same template partial as used in the main linkerd helm chart to add tolerations if specified to the linkerd-cni daemonset spec. Fixes #5368 Signed-off-by: Rishabh Jain --- charts/linkerd2-cni/templates/cni-plugin.yaml | 3 +++ charts/linkerd2-cni/values.yaml | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/charts/linkerd2-cni/templates/cni-plugin.yaml b/charts/linkerd2-cni/templates/cni-plugin.yaml index 68e15a254..f899797c9 100644 --- a/charts/linkerd2-cni/templates/cni-plugin.yaml +++ b/charts/linkerd2-cni/templates/cni-plugin.yaml @@ -184,6 +184,9 @@ spec: annotations: {{.Values.createdByAnnotation}}: {{default (printf "linkerd/helm %s" .Values.cniPluginVersion) .Values.cliVersion}} spec: + {{- if .Values.tolerations }} + {{- include "linkerd.tolerations" . | nindent 6 }} + {{- end }} nodeSelector: beta.kubernetes.io/os: linux hostNetwork: true diff --git a/charts/linkerd2-cni/values.yaml b/charts/linkerd2-cni/values.yaml index c6112ca05..4dfb13ac8 100644 --- a/charts/linkerd2-cni/values.yaml +++ b/charts/linkerd2-cni/values.yaml @@ -41,6 +41,11 @@ priorityClassName: "" proxyInjectAnnotation: linkerd.io/inject proxyInjectDisabled: disabled +# -|- Tolerations section, See the +# [K8S documentation](https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration/) +# for more information +#tolerations: + # ## For Private docker registries, authentication is needed. # If the control plane service images are pulled from a