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