目录

官方的安装

helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update

helm install ingress-nginx ingress-nginx/ingress-nginx

在中国

  1. 下载 Ingress Release
    wget https://github.com/kubernetes/ingress-nginx/releases/download/ingress-nginx-3.3.0/ingress-nginx-3.3.0.tgz
    
  2. 解压
    tar xzvf ingress-nginx-3.3.0.tgz
    cd ingress-nginx
    
  3. 替换镜像
    vim values.yaml
    
     repository: k8s.gcr.io/ingress-nginx/controller
     digest: sha256:fc4979d8b8443a831c9789b5155cded454cb7de737a8b727bc2ba0106d2eae8b
    

    替换为下面的内容

     repository: pollyduan/ingress-nginx-controller
     # digest: sha256:fc4979d8b8443a831c9789b5155cded454cb7de737a8b727bc2ba0106d2eae8b
    
  4. Helm 使用本地目录的 Chart 进行安装
    cd ..
    helm install ingress-nginx ./ingress-nginx
    

参考资料