NGINX Ingress controller version: v0.40.1
Kubernetes version (use kubectl version): 1.16
Environment: GCE
What happened:
I received the following error when trying to install the nginx-controller on a GCE cluster:
error: unable to recognize "https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.40.1/deploy/static/provider/cloud/deploy.yaml": no matches for kind "ValidatingWebhookConfiguration" in version "admissionregistration.k8s.io/v1"
What you expected to happen:
I expected the ingress-nginx controller to install without issue.
How to reproduce it:
I followed the instructions on this page to install ingress-nginx on my freshly created GCE cluster.
I then ran the following command:
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.40.1/deploy/static/provider/cloud/deploy.yaml
from that instructions page.
After that, I received the following terminal output:
...
job.batch/ingress-nginx-admission-create created
job.batch/ingress-nginx-admission-patch created
error: unable to recognize "https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v0.40.1/deploy/static/provider/cloud/deploy.yaml": no matches for kind "ValidatingWebhookConfiguration" in version "admissionregistration.k8s.io/v1"
I forgot to add, I tried v0.40.0 and I experienced the same issue. However, the v0.35.0 installation seemingly worked as expected and I didn't receive any errors.
@jabelone please post the output of kubectl version
(to test the same versions)
Hmm I'm not sure what was going on but I ran into an unrelated problem that was just "weird" so I killed the cluster and created a new one. v0.40.1 seems to install now on this new cluster. Sorry for the trouble, must have been user error!
Well, I'm seeing the same error in GKE. Here is the kubectl version output for me:
Chriss-MacBook-Pro:Backend kubectl version
Client Version: version.Info{Major:"1", Minor:"16+", GitVersion:"v1.16.6-beta.0", GitCommit:"e7f962ba86f4ce7033828210ca3556393c377bcc", GitTreeState:"clean", BuildDate:"2020-01-15T08:26:26Z", GoVersion:"go1.13.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.12-gke.20", GitCommit:"0ac5f81eecab42bff5ef74f18b99d8896ba7b89b", GitTreeState:"clean", BuildDate:"2020-09-09T00:48:20Z", GoVersion:"go1.12.17b4", Compiler:"gc", Platform:"linux/amd64"}
What were the cluster issues you were having? I can check if something similar is happening in my cluster.
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.12-gke.20", GitCommit:"0ac5f81eecab42bff5ef74f18b99d8896ba7b89b", GitTreeState:"clean", BuildDate:"2020-09-09T00:48:20Z", GoVersion:"go1.12.17b4", Compiler:"gc", Platform:"linux/amd64"}
@christhegrand please check the release notes https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v0.40.0
Since v0.40.0 Kubernetes 1.16 or higher is required.
Ah, thank you - I'll upgrade and try again.
Most helpful comment
@christhegrand please check the release notes https://github.com/kubernetes/ingress-nginx/releases/tag/controller-v0.40.0
Since v0.40.0 Kubernetes 1.16 or higher is required.