centos7环境 的 k8s安装helm 3.7.1


helm的官方网址:

https://helm.sh/

heml需要在k8s的主节点上安装。

我们下载安装包进行安装,helm发布的版本地址如下:

https://github.com/helm/helm/releases

centos7环境,则选择   Linux amd64  这个版本,下载地址如下:

https://get.helm.sh/helm-v3.7.1-linux-amd64.tar.gz

我们在K8s主节点上先创建个目录。

mkdir myhelm

进入该目录:

cd myhelm

下载:

curl -SLO https://get.helm.sh/helm-v3.7.1-linux-amd64.tar.gz

解压:

tar -zxvf  helm-v3.7.1-linux-amd64.tar.gz

将helm移至 /bin 目录

mv  linux-amd64/helm  /usr/local/bin/helm

这样就可以了。我们查看下版本号:

helm version

 说明安装成功了。

添加国内 阿里云的 镜像源:

helm repo remove stable

helm repo add stable http://mirror.azure.cn/kubernetes/charts/

helm repo update 
 

 也可以添加azure的源:(可选)

helm repo remove stable

helm repo add stable http://mirror.azure.cn/kubernetes/charts/

helm repo add incubator http://mirror.azure.cn/kubernetes/charts-incubator/

helm repo update 

搜索:

helm search repo redis