安装Ingress控制器的步骤 [英] Procedure to install an Ingress controller
问题描述
无法在Docker桌面上为kubernetes安装ingress-nginx
Unable to install ingress-nginx for kubernetes on Docker desktop
到目前为止,我在cmd行中使用以下命令来安装入口nginx:
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
$ 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
如网页所示:我似乎安装过程已更改.谁能让我逐步了解安装ingress-nginx的说明?我按照此处描述的步骤安装它: https ://github.com/kubernetes/ingress-nginx/blob/master/docs/deploy/index.md
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
推荐答案
通过头盔安装对我而言非常理想.假设您已安装 kubectl 二进制文件,并且配置为用于您的k8s集群,您可以按照以下步骤一个接一个地实现nginx-ingress控制器的安装
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.安装helm二进制文件(如果不存在)
1.Install helm binary (if doesn't exist)
curl -s https://raw.githubusercontent.com/nurlanf/deployments-kubernetes/master/helm/get_helm.sh | bash
2.为集群安装头盔(如果尚未安装)
2.Install helm for your cluster (if not installed yet)
curl -s https://raw.githubusercontent.com/nurlanf/deployments-kubernetes/master/helm/install.sh | bash
您应该看到类似
...
Waiting for tiller install...
Helm install complete
3.然后通过头盔安装nginx-ingress
3.Then install nginx-ingress via helm
helm install stable/nginx-ingress --name nginx-ingress
希望有帮助!
这篇关于安装Ingress控制器的步骤的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!