[root@k8s-master ephemeral]# 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

创建pod时报错

解决办法:

[root@k8s-master ephemeral]# kubectl get validatingwebhookconfigurations
NAME                  WEBHOOKS   AGE
istiod-istio-system   1          38d


[root@k8s-master ephemeral]# kubectl delete -A ValidatingWebhookConfiguration istiod-istio-system
validatingwebhookconfiguration.admissionregistration.k8s.io "istiod-istio-system" deleted

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐