国内安装Helm
一、下载
wget https://mirrors.huaweicloud.com/helm/v3.9.4/helm-v3.9.4-linux-amd64.tar.gz
二、解压
tar -zxvf helm-v3.9.4-linux-amd64.tar.gz
三、移动
cp ./linux-amd64/helm /usr/local/bin/
四、查看版本
helm version
运行结果:
version.BuildInfo{Version:"v3.9.4", GitCommit:"dbc6d8e20fe1d58d50e6ed30f09a04a77e4c68db", GitTreeState:"clean", GoVersion:"go1.17.13"}
安装完成!!!
五、helm常用命令
# 查看当前配置的仓库地址
$ helm repo list
# 删除默认仓库,默认在国外pull很慢
$ helm repo remove stable
# 添加几个常用的仓库,可自定义名字
$ helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
$ helm repo add kaiyuanshe http://mirror.kaiyuanshe.cn/kubernetes/charts
$ helm repo add azure http://mirror.azure.cn/kubernetes/charts
$ helm repo add dandydev https://dandydeveloper.github.io/charts
$ helm repo add bitnami https://charts.bitnami.com/bitnami
# 搜索chart
$ helm search repo redis
# 拉取chart包到本地
$ helm pull bitnami/redis-cluster --version 8.1.2
# 安装redis-ha集群,取名redis-ha,需要指定持存储类
$ helm install redis-cluster bitnami/redis-cluster --set global.storageClass=nfs,global.redis.password=xiagao --version 8.1.2
# 卸载
$ helm uninstall redis-cluster
下期预告
这期安装helm,下一篇文章是关于helm部署EFK日志采集的,大家多多关注啊,我会尽快更新的



548

被折叠的 条评论
为什么被折叠?



