c12s-kubespray/roles/network_plugin/calico
emiran-orange afbabebfd5
Enables Calico serviceAccount token monitoring and update of /etc/cni/net.d/calico-kubeconfig if need be. (#7586)
Since K8S 1.21, BoundServiceAccountTokenVolume feature gate is in beta stage, thus activated by default (anyone who follows CSI guidelines has enabled AllAlpha and faced the issue before 1.21).
With this feature, SA tokens are regenerated every hour.
As a consequence for Calico CNI, token in /etc/cni/net.d/calico-kubeconfig copied from /var/run/secrets/kubernetes.io/serviceaccount in install-cni initContainer expires after one hour and any pod creation fails due to unauthorization.
Calico pods need to be restarted so that /etc/cni/net.d/calico-kubeconfig is updated with the new SA token.
2021-05-11 08:47:36 -07:00
..
defaults Fixes issue #7528 - allow configuring CALICO_STARTUP_LOGLEVEL via a new variable: calico_node_startup_loglevel (#7530) 2021-04-20 15:37:42 -07:00
files Raise delay and retry for rotate tokens (#5304) 2019-10-30 01:56:52 -07:00
handlers Add kube-ipvs0/nodelocaldns to NetworkManager unmanaged-devices (#7315) 2021-03-03 07:27:20 -08:00
rr Add retries to update calico-rr data in etcd through calicoctl (#6505) 2020-09-24 03:24:05 -07:00
tasks allow overriding calico peers names and avoid ipv6 naming issues (#7591) 2021-05-11 07:05:36 -07:00
templates Enables Calico serviceAccount token monitoring and update of /etc/cni/net.d/calico-kubeconfig if need be. (#7586) 2021-05-11 08:47:36 -07:00