skip to Main Content

I tried to install the NGINX Ingress Controller via Helm. Yes i am using Helm 3.x so it should work. I also was following the guideline in the NGINX DOCS , but the problem is i always get an error when i am using this line

helm install my-release nginx-stable/nginx-ingress

Error

Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "IngressClass" in version "networking.k8s.io/v1beta1"

We are using out K8s Cluster with Version 1.22.0. I also tried to install the chart with a values.yaml file. But it is the same issues. Any idea ? Help would be perfect

2

Answers


  1. It seems that networking.k8s.io/v1beta1 is no longer supported in Kubernetes v1.22 according to the deprecation guide. It is possible that the helm resources for nginx controller are not yet updated with the latest API versions.

    The helm charts on their master are updated with the latest API version. Did you try installing the controller from source?

    Other option would be to downgrade your Kubernetes version to 1.21 or lower version and try installing using helm resources.

    Login or Signup to reply.
  2. I faced the same error and overcame it by changing my ingress yaml file to match the minimal one at:
    https://kubernetes.io/docs/concepts/services-networking/ingress/

    (The main change is moving to "v1" instead of "v1beta").
    My Server version is: v1.25.3

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search