Nginx Ingress: service “ingress-nginx-controller-admission” not found

前端 未结 4 713
庸人自扰
庸人自扰 2021-02-03 21:56

We created a kubernetes cluster for a customer about one year ago with two environments; staging and production separated in namespaces. We are currently developing the next ver

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-03 22:25

    You can check if there is a validation webhook and a service. If they don't exist double check the deployment and add these.

    kubectl get -A ValidatingWebhookConfiguration
    NAME                      CREATED AT
    ingress-nginx-admission   2020-04-22T15:01:33Z
    
    kubectl get svc -n ingress-nginx
    NAME                                 TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)                      AGE
    ingress-nginx-controller             NodePort    10.96.212.217           80:32268/TCP,443:32683/TCP   2m34s
    ingress-nginx-controller-admission   ClusterIP   10.96.151.42            443/TCP                      2m34s
    

    Deployment yamls here have the webhook and service.

    Since you have used helm to install it you can enable/disable the webhook via a helm parameter as defined here

提交回复
热议问题