定位 发表于 2024-7-28 00:16:25

删除istio的命名空间后,无法创建pod

# kubectl apply -f pod-tomcat.yaml
Error from server (InternalError): error when creating "pod-tomcat.yaml": Internal error occurred: failed calling webhook "namespace.sidecar-injector.istio.io": Post "https://istiod.istio-system.svc:443/inject?timeout=10s": service "istiod" not found



是因为没有完全删除导致


删除istio的webhook


# kubectl  delete mutatingwebhookconfigurations.admissionregistration.k8s.io istio-sidecar-injector
mutatingwebhookconfiguration.admissionregistration.k8s.io "istio-sidecar-injector" deleted


查看webhook
# kubectl get mutatingwebhookconfigurations.admissionregistration.k8s.io
No resources found


页: [1]
查看完整版本: 删除istio的命名空间后,无法创建pod