rancher 卸载后重装报错

发布时间 2023-06-07 12:03:32作者: zz小公子

报错信息

kubectl create namespace cattle-system
Error from server (InternalError): Internal error occurred: failed calling webhook "rancher.cattle.io.namespaces.create-non-kubesystem": failed to call webhook: Post "https://rancher-webhook.cattle-system.svc:443/v1/webhook/validation/namespaces?timeout=10s": service "rancher-webhook" not found

解决

# kubectl get mutatingwebhookconfigurations
NAME                                      WEBHOOKS   AGE
ack-node-local-dns-admission-controller   1          3d19h
# kubectl get validatingwebhookconfigurations
NAME                   WEBHOOKS   AGE
rancher.cattle.io      7          47h
storage.crd.validate   1          3d19h

kubectl delete validatingwebhookconfigurations  rancher.cattle.io