serviceaccount 无法创建secrct
浏览量:209
问题描述:
rancher dashboard多次创建提示报错:
报错信息:E0308 02:52:42.957365 1 tokens_controller.go:261] error synchronizing serviceaccount default/nginx-ingress-backend: Internal error occurred: failed calling webhook "rancher.cattle.io": Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/mutation?timeout=10s": service "rancher-webhook" not found
通过排查,发现是有准入控制器,https://kubernetes.io/zh/docs/reference/access-authn-authz/extensible-admission-controllers/#admission-webhooks

解决方案:
删除准入控制器
kubectl delete mutatingwebhookconfiguration rancher.cattle.io

神回复
发表评论:
◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。