[root@master01 k8s]# kubectl apply -f eureka.yaml
service/eureka created
statefulset.apps/eureka created
Error from server (InternalError): error when creating "eureka.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": failed to call webhook: Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": no endpoints available for service "ingress-nginx-controller-admission"
解决办法:
查看
kubectl get validatingwebhookconfigurations
删除ingress-nginx-admission
kubectl delete -A ValidatingWebhookConfiguration ingress-nginx-admission