ingress-nginx: cannot install 1.0.4 on K8s v1.19

NGINX Ingress controller version: 1.0.4

Kubernetes version: v1.19.13-gke.1200

Environment:

What happened: When applying the yaml file, it returned unknown field "ipFamilies" in io.k8s.api.core.v1.ServiceSpec:

error: error validating "https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static/provider/cloud/deploy.yaml": error validating data: [ValidationError(Service.spec): unknown field "ipFamilies" in io.k8s.api.core.v1.ServiceSpec, ValidationError(Service.spec): unknown field "ipFamilyPolicy" in io.k8s.api.core.v1.ServiceSpec]; if you choose to ignore these errors, turn validation off with --validate=false

What you expected to happen: Installed as expected, because controller 1.0.4 should support k8s 1.19

How to reproduce it: Install 1.0.4 controller on K8s 1.19

Anything else we need to know: service.spec.ipFamilyPolicy required Kubernetes 1.20. I had try to install 1.0.3(without service.spec.ipFamilyPolicy) controller and it’s work

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 35 (24 by maintainers)

Commits related to this issue

Most upvoted comments

Use the appropriate folder under https://github.com/kubernetes/ingress-nginx/tree/main/deploy/static/provider/cloud for your k8s version, and free to contribute docs accordingly 😃

downgrade the version to v1.0.3 and it’s work