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:
-
Cloud provider or hardware configuration: GKE
-
OS (e.g. from /etc/os-release): Container-Optimized OS from Google
-
Kernel (e.g.
uname -a): 5.4.129 -
Basic cluster related info:
Server Version: version.Info{Major:"1", Minor:"19+", GitVersion:"v1.19.13-gke.1200", GitCommit:"ee714a7b695ca42b9bd0c8fe2c0159024cdcba5e", GitTreeState:"clean", BuildDate:"2021-08-03T09:21:57Z", GoVersion:"go1.15.13b5", Compiler:"gc", Platform:"linux/amd64"}
-
How was the ingress-nginx-controller installed:
- Using the yaml file mentioned on install guide: https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static/provider/cloud/deploy.yaml
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
- Latest nginx-ingress requires k8s 1.20+ https://github.com/kubernetes/ingress-nginx/issues/7810 Signed-off-by: Pradip Caulagi <caulagi@gmail.com> — committed to caulagi/rust-k8s-demo by caulagi 3 years ago
- Latest nginx-ingress requires k8s 1.20+ https://github.com/kubernetes/ingress-nginx/issues/7810 Signed-off-by: Pradip Caulagi <caulagi@gmail.com> — committed to caulagi/rust-k8s-demo by caulagi 3 years ago
- Bump rust version to 1.55 (#253) * Bump rust version to 1.55 Signed-off-by: Pradip Caulagi <caulagi@gmail.com> * Latest nginx-ingress requires k8s 1.20+ https://github.com/kubernetes/ingress... — committed to caulagi/rust-k8s-demo by caulagi 3 years ago
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