黑帽联盟

标题: 删除istio的命名空间后,无法创建pod [打印本页]

作者: 定位    时间: 2024-7-28 00:16
标题: 删除istio的命名空间后,无法创建pod
[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



是因为没有完全删除导致


删除istio的webhook


[root@k8s-master ephemeral]# kubectl  delete mutatingwebhookconfigurations.admissionregistration.k8s.io istio-sidecar-injector
mutatingwebhookconfiguration.admissionregistration.k8s.io "istio-sidecar-injector" deleted


查看webhook
[root@k8s-master ephemeral]# kubectl get mutatingwebhookconfigurations.admissionregistration.k8s.io
No resources found







欢迎光临 黑帽联盟 (https://bbs.cnblackhat.com/) Powered by Discuz! X2.5