LoginSignup
4
0

More than 1 year has passed since last update.

【k8s】ingressがapplyできない。(InternalError)

Posted at

ingressをapplyした時に以下のようなエラーに出会した時

Error from server (InternalError): error when creating "ingress.yaml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post "https://ingress-nginx-controller-admission.ingress-nginx.svc:443/networking/v1/ingresses?timeout=10s": no endpoints available for service "ingress-nginx-controller-admission

実際のエラー
スクリーンショット 2022-10-13 14.44.59.png

k get validatingwebhookconfigurationsを調べる。

kubectl get validatingwebhookconfigurations  --all-namespaces

スクリーンショット 2022-10-13 14.46.57.png

ingress-nginx-adminssionを削除する。

kubectl delete validatingwebhookconfigurations ingress-nginx-admission

これで治る。

4
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
0