Procedure to install an Ingress controller

邮差的信 提交于 2019-12-13 02:47:13

问题


Unable to install ingress-nginx for kubernetes on Docker desktop

I was using the following in cmd line to install ingress nginx so far:

$ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/mandatory.yaml $ kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/provider/cloud-generic.yaml

as shown in the web page: https://che.eclipse.org/running-eclipse-che-on-kubernetes-using-docker-desktop-for-mac-5d972ed511e1

I seems like the installatio procedure has changed. Can anyone let me know step by step instructions to install ingress-nginx? I coudnt install it by following the procedure described here: https://github.com/kubernetes/ingress-nginx/blob/master/docs/deploy/index.md


回答1:


Installation via helm works perfectly for me. Assuming you have kubectl binary installed and configured to use for your k8s cluster you can follow below steps one by one to achieve installation of nginx-ingress controller

1.Install helm binary (if doesn't exist)

curl -s https://raw.githubusercontent.com/nurlanf/deployments-kubernetes/master/helm/get_helm.sh | bash

2.Install helm for your cluster (if not installed yet)

curl -s https://raw.githubusercontent.com/nurlanf/deployments-kubernetes/master/helm/install.sh | bash

You should see output like

...
Waiting for tiller install...
Helm install complete

3.Then install nginx-ingress via helm

helm install stable/nginx-ingress --name nginx-ingress

Hope it helps!




回答2:


Use following steps :

Role : Create role for accessing helm to the cluster.

kubectl create clusterrolebinding tiller-cluster-admin --clusterrole=cluster-admin --serviceaccount=kube-system:default
helm init

Installation : Install Nginx ingress using helm.

helm install stable/nginx-ingress --namespace kube-system

For more steps Follow this link : Linuxguru-nginx-ingress



来源:https://stackoverflow.com/questions/56353972/procedure-to-install-an-ingress-controller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!