不容错过的运维书籍推荐

helm 安装ingress-nginx

1. 安装

  1. # 安装
  2. helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
  3. helm repo update
  4. helm pull ingress-nginx/ingress-nginx
  5. tar -zxvf ingress-nginx-4.3.0.tgz
  6. # 修改配置文件
  7. [root@bg-node-0001 ingress-nginx]# diff values.yaml values.yaml.ori
  8. 21,22c21,22
  9. < registry: registry.aliyuncs.com
  10. < image: google_containers/nginx-ingress-controller
  11. ---
  12. > registry: registry.k8s.io
  13. > image: ingress-nginx/controller
  14. 27,28c27,28
  15. < #digest: sha256:34ee929b111ffc7aa426ffd409af44da48e5a0eea1eb2207994d9e0c0882d143
  16. < #digestChroot: sha256:b67e889f1db8692de7e41d4d9aef8de56645bf048261f31fa7f8bfc6ea2222a0
  17. ---
  18. > digest: sha256:34ee929b111ffc7aa426ffd409af44da48e5a0eea1eb2207994d9e0c0882d143
  19. > digestChroot: sha256:b67e889f1db8692de7e41d4d9aef8de56645bf048261f31fa7f8bfc6ea2222a0
  20. 66c66
  21. < dnsPolicy: ClusterFirstWithHostNet
  22. ---
  23. > dnsPolicy: ClusterFirst
  24. 89c89
  25. < hostNetwork: true
  26. ---
  27. > hostNetwork: false
  28. 144c144
  29. < enabled: false #