mirror of https://github.com/kubernetes/kops.git
Update Canal to v3.23.3
This commit is contained in:
parent
dc3ff3f3c7
commit
f77534b798
|
|
@ -4113,6 +4113,14 @@ apiVersion: rbac.authorization.k8s.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: calico
|
name: calico
|
||||||
rules:
|
rules:
|
||||||
|
# Used for creating service account tokens to be used by the CNI plugin
|
||||||
|
- apiGroups: [""]
|
||||||
|
resources:
|
||||||
|
- serviceaccounts/token
|
||||||
|
resourceNames:
|
||||||
|
- canal
|
||||||
|
verbs:
|
||||||
|
- create
|
||||||
# The CNI plugin needs to get pods, nodes, and namespaces.
|
# The CNI plugin needs to get pods, nodes, and namespaces.
|
||||||
- apiGroups: [""]
|
- apiGroups: [""]
|
||||||
resources:
|
resources:
|
||||||
|
|
@ -4358,7 +4366,7 @@ spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 65534
|
fsGroup: 65534
|
||||||
containers:
|
containers:
|
||||||
- image: calico/typha:v3.23.1
|
- image: calico/typha:v3.23.3
|
||||||
name: calico-typha
|
name: calico-typha
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 5473
|
- containerPort: 5473
|
||||||
|
|
@ -4468,7 +4476,7 @@ spec:
|
||||||
# This container installs the CNI binaries
|
# This container installs the CNI binaries
|
||||||
# and CNI network config file on each node.
|
# and CNI network config file on each node.
|
||||||
- name: install-cni
|
- name: install-cni
|
||||||
image: docker.io/calico/cni:v3.23.1
|
image: docker.io/calico/cni:v3.23.3
|
||||||
command: ["/opt/cni/bin/install"]
|
command: ["/opt/cni/bin/install"]
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
|
|
@ -4476,6 +4484,12 @@ spec:
|
||||||
name: kubernetes-services-endpoint
|
name: kubernetes-services-endpoint
|
||||||
optional: true
|
optional: true
|
||||||
env:
|
env:
|
||||||
|
# Set the serviceaccount name to use for the Calico CNI plugin.
|
||||||
|
# We use canal-node instead of calico-node when using flannel networking.
|
||||||
|
- name: CALICO_CNI_SERVICE_ACCOUNT
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: spec.serviceAccountName
|
||||||
# Name of the CNI config file to create.
|
# Name of the CNI config file to create.
|
||||||
- name: CNI_CONF_NAME
|
- name: CNI_CONF_NAME
|
||||||
value: "10-canal.conflist"
|
value: "10-canal.conflist"
|
||||||
|
|
@ -4506,12 +4520,36 @@ spec:
|
||||||
name: cni-net-dir
|
name: cni-net-dir
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
# This init container mounts the necessary filesystems needed by the BPF data plane
|
||||||
|
# i.e. bpf at /sys/fs/bpf and cgroup2 at /run/calico/cgroup. Calico-node initialisation is executed
|
||||||
|
# in best effort fashion, i.e. no failure for errors, to not disrupt pod creation in iptable mode.
|
||||||
|
- name: "mount-bpffs"
|
||||||
|
image: docker.io/calico/node:v3.23.3
|
||||||
|
command: ["calico-node", "-init", "-best-effort"]
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /sys/fs
|
||||||
|
name: sys-fs
|
||||||
|
# Bidirectional is required to ensure that the new mount we make at /sys/fs/bpf propagates to the host
|
||||||
|
# so that it outlives the init container.
|
||||||
|
mountPropagation: Bidirectional
|
||||||
|
- mountPath: /var/run/calico
|
||||||
|
name: var-run-calico
|
||||||
|
# Bidirectional is required to ensure that the new mount we make at /run/calico/cgroup propagates to the host
|
||||||
|
# so that it outlives the init container.
|
||||||
|
mountPropagation: Bidirectional
|
||||||
|
# Mount /proc/ from host which usually is an init program at /nodeproc. It's needed by mountns binary,
|
||||||
|
# executed by calico-node, to mount root cgroup2 fs at /run/calico/cgroup to attach CTLB programs correctly.
|
||||||
|
- mountPath: /nodeproc
|
||||||
|
name: nodeproc
|
||||||
|
readOnly: true
|
||||||
|
securityContext:
|
||||||
|
privileged: true
|
||||||
containers:
|
containers:
|
||||||
# Runs canal container on each Kubernetes node. This
|
# Runs canal container on each Kubernetes node. This
|
||||||
# container programs network policy and routes on each
|
# container programs network policy and routes on each
|
||||||
# host.
|
# host.
|
||||||
- name: calico-node
|
- name: calico-node
|
||||||
image: docker.io/calico/node:v3.23.1
|
image: docker.io/calico/node:v3.23.3
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
# Allow KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT to be overridden for eBPF mode.
|
# Allow KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT to be overridden for eBPF mode.
|
||||||
|
|
@ -4540,6 +4578,12 @@ spec:
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: spec.nodeName
|
fieldPath: spec.nodeName
|
||||||
|
# Set the serviceaccount name to use for the Calico CNI plugin.
|
||||||
|
# We use canal-node instead of calico-node when using flannel networking.
|
||||||
|
- name: CALICO_CNI_SERVICE_ACCOUNT
|
||||||
|
valueFrom:
|
||||||
|
fieldRef:
|
||||||
|
fieldPath: spec.serviceAccountName
|
||||||
# Don't enable BGP.
|
# Don't enable BGP.
|
||||||
- name: CALICO_NETWORKING_BACKEND
|
- name: CALICO_NETWORKING_BACKEND
|
||||||
value: "none"
|
value: "none"
|
||||||
|
|
@ -4645,11 +4689,8 @@ spec:
|
||||||
mountPath: /var/run/nodeagent
|
mountPath: /var/run/nodeagent
|
||||||
# For eBPF mode, we need to be able to mount the BPF filesystem at /sys/fs/bpf so we mount in the
|
# For eBPF mode, we need to be able to mount the BPF filesystem at /sys/fs/bpf so we mount in the
|
||||||
# parent directory.
|
# parent directory.
|
||||||
- name: sysfs
|
- name: bpffs
|
||||||
mountPath: /sys/fs/
|
mountPath: /sys/fs/bpf
|
||||||
# Bidirectional means that, if we mount the BPF filesystem at /sys/fs/bpf it will propagate to the host.
|
|
||||||
# If the host is known to mount that filesystem already then Bidirectional can be omitted.
|
|
||||||
mountPropagation: Bidirectional
|
|
||||||
- name: cni-log-dir
|
- name: cni-log-dir
|
||||||
mountPath: /var/log/calico/cni
|
mountPath: /var/log/calico/cni
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
@ -4704,10 +4745,18 @@ spec:
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /run/xtables.lock
|
path: /run/xtables.lock
|
||||||
type: FileOrCreate
|
type: FileOrCreate
|
||||||
- name: sysfs
|
- name: sys-fs
|
||||||
hostPath:
|
hostPath:
|
||||||
path: /sys/fs/
|
path: /sys/fs/
|
||||||
type: DirectoryOrCreate
|
type: DirectoryOrCreate
|
||||||
|
- name: bpffs
|
||||||
|
hostPath:
|
||||||
|
path: /sys/fs/bpf
|
||||||
|
type: Directory
|
||||||
|
# mount /proc at /nodeproc to be used by mount-bpffs initContainer to mount root cgroup2 fs.
|
||||||
|
- name: nodeproc
|
||||||
|
hostPath:
|
||||||
|
path: /proc
|
||||||
# Used by flannel.
|
# Used by flannel.
|
||||||
- name: flannel-cfg
|
- name: flannel-cfg
|
||||||
configMap:
|
configMap:
|
||||||
|
|
@ -4791,7 +4840,7 @@ spec:
|
||||||
priorityClassName: system-cluster-critical
|
priorityClassName: system-cluster-critical
|
||||||
containers:
|
containers:
|
||||||
- name: calico-kube-controllers
|
- name: calico-kube-controllers
|
||||||
image: docker.io/calico/kube-controllers:v3.23.1
|
image: docker.io/calico/kube-controllers:v3.23.3
|
||||||
env:
|
env:
|
||||||
# Choose which controllers to run.
|
# Choose which controllers to run.
|
||||||
- name: ENABLED_CONTROLLERS
|
- name: ENABLED_CONTROLLERS
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue