Error from server (AlreadyExists): error when creating “kube-flannel.yml”: podsecuritypolicies.policy “psp.flannel.unprivileged” already exists
Error from server (AlreadyExists): error when creating “kube-flannel.yml”: clusterroles.rbac.authorization.k8s.io “flannel” already exists
Error from server (AlreadyExists): error when creating “kube-flannel.yml”: clusterrolebindings.rbac.authorization.k8s.io “flannel” already exists
Error from server (AlreadyExists): error when creating “kube-flannel.yml”: serviceaccounts “flannel” already exists
Error from server (AlreadyExists): error when creating “kube-flannel.yml”: configmaps “kube-flannel-cfg” already exists
Error from server (AlreadyExists): error when creating “kube-flannel.yml”: daemonsets.apps “kube-flannel-ds” already exists
kube-flannel存在
需要先删除
kubectl delete -f kube-flannel.yml
在创建
kubectl create -f kube-flannel.yml