安装指南

https://kubernetes.github.io/ingress-nginx/deploy/

创建目录

/home/k8s/ingress-nginx

下载 deploy.yaml文件

wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.3.1/deploy/static/provider/cloud/deploy.yaml

安装

kubectl apply -f deploy.yaml

如果镜像拉不下了,改成阿里云镜像

docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/nginx-ingress-controller:v1.3.1


docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/kube-webhook-certgen:v1.3.1

# 看deploy.yaml中的镜像名字太长了,而且打tag那种格式有问题,**那不如,这样

docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/nginx-ingress-controller:v1.3.1 k8s.gcr.io/ingress-nginx/controller:v1.3.1


docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/kube-webhook-certgen:v1.3.1 k8s.gcr.io/ingress-nginx/kube-webhook-certgen:v1.3.1
Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐