-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ingress addon: Error: 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
#11121
Comments
Same exact failure on macos 11.2.3 with virtualbox dirver as well |
kubernetes/ingress-nginx#5401 looks like a similar stream, and references errors in the last few days using Minikube. I worked around it by disabling the Minikube ingress addon and using the ingress-nginx helm chart from Artifact Hub. Now it starts up correctly but doesn't route, and it never gets an address. Minikube 1.19 currently uses ingress-nginx 0.44.0 and Helm's latest is 0.45.0. Maybe it was a bug in ingress-nginx 0.44.0? |
Confirm, disabling the Minikube ingress addon and using the ingress-nginx helm chart from Artifact Hub fixes this. |
Deleting the ValidatingWebhookConfiguration/ingress-nginx-admission also allows the minikube ingress controller to function but without that safety net of course. Reasonable work-around until the bug is fixed though. |
thank you everyone for reporting this bug, this seems to be side effect of this PR #10879 that we tried to update the ingress to new upstream version, unfortunately our integration test did not catch this problem causing by adding the validating webhooks, Thank you for your patience and thank you @joshuamataaraya @btalbot @bpb54321 @dgoldssfo for reporting this issue in the other issues, please follow this one for centralized place to gather information |
CC: @govargo could this be related to upstream bug kubernetes/ingress-nginx#5401 ? |
Error: 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
Sorry for this unablement to use ingress addon. I investigated why this happens.
Yes. This is the issue of the admission webhook. I confirmed the admission controller of ingress-nginx and found out it doesn't support v1 version.
As a result of further investigation, It used to support |
And I also confirmed the ingress can route with these yaml files.
This worked because the version is v1beta1
This doesn't work because the version is v1. the admission controller always rejects networking.k8s.io/v1 request
Error with v1 version
Current integration test of ingress addon tests only minikube/test/integration/testdata/nginx-ing.yaml Lines 1 to 4 in 15cede5
This is because our integration test did not catch this problem. It should include |
I'll add workaround to current ingress addon so that we can use v1 ingress resource. |
Further investigation and confirmation, I found out the difference between upstream ingress-nginx manifests and our manifests. minikube/deploy/addons/ingress/ingress-dp.yaml.tmpl Lines 183 to 200 in f854a08
It might have been included while updating ingress addon to v0.44.0. The validation check for the v1 version of Ingress should be removed from ValidatingWebhookConfiguration .
I updated the PR to remove this check for |
@sherbang @joshuamataaraya @btalbot @bpb54321 @dgoldssfo do you mind trying the binary in this PR #11189 http://storage.googleapis.com/minikube-builds/11189/minikube-linux-amd64 |
@medyagh - The 11189 darwin build resolved this issue for me. |
We changed the apiVersion in our manifests to work around the problem, so I'm not in a good position to validate. Apologies. |
@medyagh This didn't work for me
👍 Starting control plane node minikube in cluster minikube ❌ Exiting due to MK_ENABLE: run callbacks: running callbacks: [waiting for app.kubernetes.io/name=ingress-nginx pods: timed out waiting for the condition] minikube_addons_657d376187cd72746604141ceddc839ee4e6f05e_0.log I've tried upgrading to the latest version and it doesn't work either 1.20.0 it shows exactly the same error |
For the past couple of versions, when there have been issues with the ingress, I've had to run this purge command to clean up state and allow startup to be successful.
|
@joshuamataaraya Hit up https://github.com/kubernetes/minikube/releases and grab the 1.20 release. See the notes in 1.20 alpha about the Ingress Addon fix. |
Same problem on 1.20
|
Steps to reproduce the issue:
Minikube v1.19.0 docker driver on PopOS 20.10
Using the ingress plugin, installing an ingress always fails.
Exact same steps and yaml works in v1.18.1
Doesn't matter if the ingress is defined with
apiVersion: networking.k8s.io/v1
orapiVersion: extensions/v1beta1
(yaml files used to test each work in v1.18.1)Suspect that ansible/awx-operator#205 is the same issue.
Failing ingress definition:
Full output of failed command:
kubectl error:
Error from server (InternalError): error when creating "gozynta-dev/profiles/cwacc": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": an error on the server ("") has prevented the request from succeeding
Error in ingress-controller:
E0417 00:03:30.320457 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 cwacc-webapp in namespace gozynta-dev"
Full output of
minikube start
command used, if not already included:Optional: Full output of
minikube logs
command:The text was updated successfully, but these errors were encountered: