Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
943 views
in Technique[技术] by (71.8m points)

kubernetes : Is is possible to install nginx ingress controller on V1.10 cluster

I have a v.1.10 kubernetes cluster.

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:55:54Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0+coreos.0", GitCommit:"6bb2e725fc2876cd94b3900fc57a1c98ca87a08b", GitTreeState:"clean", BuildDate:"2018-04-02T16:49:31Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"}

I would like to install an inginx ingress controller for this cluster. I followed the instruction : here

But, I keep having errors such as :

$ kubectl apply -f common/ingress-class.yaml
error: unable to recognize "common/ingress-class.yaml": no matches for kind "IngressClass" in version "networking.k8s.io/v1beta1"

I checked, and there is indeed no IngressClass resource for my kubernetes version. There are more errors as I continue the installation.

My question is :

Is there a document that describes the installation for old kubernetes versions?

NB. I installed my cluster manually (didnt use minikube, kubespary, ...)

Thanks in advance

question from:https://stackoverflow.com/questions/65951834/kubernetes-is-is-possible-to-install-nginx-ingress-controller-on-v1-10-cluster

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
error: unable to recognize "common/ingress-class.yaml": no matches for kind "IngressClass" in version "networking.k8s.io/v1beta1"

kind IngressClass in version networking.k8s.io/v1beta1 was introduced much later then your version - in v1.18

You can find appropriate nginx version like i described below or, alternatively, you can upgrade you cluster to newer version and then use up to date nginx ingress.

I think you can use old Ingress Nginx versions or old NGINX Ingress Controller versions.

For example NGINX Ingress Controller 1.3.2:

  1. Installing the Ingress Controller

  2. examples

  3. source code file on page available to download, that contains all necessary config files for deployment

btw, you can also check NGINX Ingress Controller Helm Chart and install nginx using helm. For that i think you ll also need upgrade your cluster.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...