-
Notifications
You must be signed in to change notification settings - Fork 707
Closed
Labels
Description
Description
As of Kubernetes v1.21, the PodSecurityPolicy API was deprecated and it will be removed in v1.25. Thus, the flannel manifest does not use PodSecurityPolicy anymore.
[ 146.299513] cloud-init[1949]: error: resource mapping not found for name: "psp.flannel.unprivileged" namespace: "" from "https://raw.githubusercontent.com/flannel-io/flannel/v0.14.0/Documentation/kube-flannel.yml": no matches for kind "PodSecurityPolicy" in version "policy/v1beta1"
[ 146.299599] cloud-init[1949]: ensure CRDs are installed first
Need to upgrade to the new manifest, which uses a privileged namespace instead.
https://github.com/flannel-io/flannel/blob/master/Documentation/kube-flannel.yml
The new manifest also installs a newer version of /opt/cni/bin/flannel
on the host.
Overwriting the one that is provided with kubernetes-cni (0.8.7) with a newer (1.1.0)
IMAGE TAG IMAGE ID SIZE
docker.io/rancher/mirrored-flannelcni-flannel-cni-plugin v1.1.0 fcecffc7ad4af 3.82MB
docker.io/rancher/mirrored-flannelcni-flannel v0.19.1 252b2c3ee6c86 20.5MB