Asking for help? Comment out what you need so we can get more information to help you!
Kubernetes version: 1.16
Cloud being used: GCP
Installation method: helm
Host OS: node alpine
The problem that I’m facing -
I installed and deployed an NGINX controller on GKE but with the name my-release.
now my services are as - my-release-ingress-nginx-controller and my-release-ingress-nginx-controller-admission
now when I apply my ingress file I get an error as below
Error from server (InternalError): error when creating “ingress.yaml”: Internal error occurred: failed calling webhook validate .nginx.ingress.kubernetes.io :service “ingress-nginx-controller-admission” not found
once possible note that I can make here is ingress cannot read the admission file with my-release-ingress-nginx-controller-admission but instead it is looking for ingress-nginx-controller-admission.
there was no workaround to keep name as ingress-nginx-controller-admission while installing from official documentation, please do help me with this, Thank you
my ingress file -
apiVersion: networking.k8s .io/v1beta1
kubernetes. io/ingressClassName: nginx
cert-manager. io/cluster-issuer: letsencrypt-prod
nginx.ingress. kubernetes .io/use-regex: ‘true’
nginx.ingress. kubernetes .io/rewrite-target: /
nginx.ingress. kubernetes .io/ssl-redirect: “true”
nginx.ingress .kubernetes .io/force-ssl-redirect: “true”
secretName: ex-tls rules: - host: ex1.ex.com http: paths: - backend: serviceName: ex1-service servicePort: 80 - host: ex2.ex.com http: paths: - backend: serviceName: ex2-service servicePort: 80