kind nginx ingress validation webhook failed calling "validate.nginx.ingress.kubernetes.io": an error on the server ("") has prevented the request from succeeding #7306
Labels
kind/bug
Categorizes issue or PR as related to a bug.
NGINX Ingress controller version: v0.47.0
Kubernetes version (use
kubectl version
):Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.1", GitCommit:"5e58841cce77d4bc13713ad2b91fa0d961e69192", GitTreeState:"clean", BuildDate:"2021-05-21T23:01:33Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}
Environment: kind
uname -a
):What happened:
Could not Install Ingress due to Validation Error
❯ helm install cmdb .
Error: Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": an error on the server ("") has prevented the request from succeeding
From Ingress Controller Logs...
❯ k --namespace ingress-nginx logs ingress-nginx-controller-744f97c4f-c5888
NGINX Ingress controller
Release: v0.47.0
Build: 7201e37
Repository: https://github.com/kubernetes/ingress-nginx
nginx version: nginx/1.20.1
I0630 18:38:11.456936 7 flags.go:208] "Watching for Ingress" class="nginx"
W0630 18:38:11.457010 7 flags.go:213] Ingresses with an empty class will also be processed by this Ingress controller
....
....
E0630 19:00:14.051721 7 server.go:84] "failed to process webhook request" err="rejecting admission review because the request does not contain an Ingress resource but networking.k8s.io/v1, Kind=Ingress with name cmdb in namespace default"
What you expected to happen:
Ingress should be have installed rather than rejected by validation webhook.
There is a regression with kind nginx ingress, see similar issue with minikube: kubernetes/minikube#11121
How to reproduce it:
Install kind
Install the ingress controller
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml
Install following Ingress using helm:
echo "
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: RELEASE-NAME-cmdb
namespace: default
labels:
helm.sh/chart: cmdb-0.3.0
app.kubernetes.io/name: cmdb
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/version: "seizadi-dev-4d95422-unsupported"
app.kubernetes.io/managed-by: Helm
spec:
rules:
- host: "localhost"
http:
paths:
- path: /cmdb
pathType: ImplementationSpecific
backend:
service:
name: RELEASE-NAME-cmdb
port:
number: 8080
" | kubectl apply -f -
Anything else we need to know:
I reverted to the older nginx deployment before the last PR merge and it worked, so this is a work around until issue is resolved:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/a8408cdb51086a099a2c71ed3e68363eb3a7ae60/deploy/static/provider/kind/deploy.yaml
/kind bug
The text was updated successfully, but these errors were encountered: