安装ingress-nginx
2023-12-13 21:01:29
1、下载helm压缩包
wget https://get.helm.sh/helm-v3.2.3-linux-amd64.tar.gz
2、解压
[root@k8s-master-10 helm]# tar -zxvf helm-v3.2.3-linux-amd64.tar.gz
linux-amd64/
linux-amd64/README.md
linux-amd64/LICENSE
linux-amd64/helm
3、进入linux-amd64
[root@k8s-master-10 linux-amd64]# cp helm /usr/local/bin/
4、加入仓库
[root@k8s-master-10 ~]# helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
"ingress-nginx" has been added to your repositories
?5、检查是否加入仓库
[root@k8s-master-10 ~]# helm repo list
NAME URL
ingress-nginx https://kubernetes.github.io/ingress-nginx
6、查看安装包
[root@k8s-master-10 ~]# helm search repo ingress-nginx
7、下载安装包
[root@k8s-master-10 helm]# helm pull ingress-nginx/ingress-nginx
[root@k8s-master-10 helm]# ls
helm-v3.2.3-linux-amd64.tar.gz ingress-nginx-4.8.4.tgz linux-amd64
?8、解压安装包
[root@k8s-master-10 helm]# tar -xf ingress-nginx-4.8.4.tgz
[root@k8s-master-10 helm]# ls
helm-v3.2.3-linux-amd64.tar.gz ingress-nginx ingress-nginx-4.8.4.tgz linux-amd64
?9、进入ingress修改value.yaml
修改仓库:镜像地址改为国内地址
chroot: false
registry: registry.cn-hangzhou.aliyuncs.com
image: google_containers/ingress-nginx-controller
image:
registry: registry.cn-hangzhou.aliyuncs.com
image: google_containers/kube-webhook-certgen
## for backwards compatibility consider setting the full image url via the repository value below
## use *either* current default registry/image or repository format or installing chart by providing the values.yaml will fail
## repository:
# tag: v20231011-8b53cabe0
tag: v1.3.0
# digest: sha256:a7943503b45d552785aa3b5e457f169a5661fb94d82b8a3373bcd9ebaf9aac80
# pullPolicy: IfNotPresent
# -- Provide a priority class name to the webhook patching job
kind: DaemonSet
nodeSelector:
kubernetes.io/os: linux
ingress: "true"
hostNetwork: true
type: ClusterIP
10、安装
[root@k8s-master-10 ingress-nginx]# helm install ingress-nginx -n ingress-nginx .
如果报错Error: chart requires kubeVersion: >=1.20.0-0 which is incompatible with Kubernetes v1.19.3
文章来源:https://blog.csdn.net/ninety_two/article/details/134905295
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。 如若内容造成侵权/违法违规/事实不符,请联系我的编程经验分享网邮箱:veading@qq.com进行投诉反馈,一经查实,立即删除!