Helm

#脚本安装
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh

#bin安装---------------------------------------
https://github.com/helm/helm/releases
tar -zxvf helm-v3.0.0-linux-amd64.tar.gz
mv linux-amd64/helm /usr/local/bin/helm


#dnf安装----
sudo dnf install helm

#mac
brew install helm

#windows
choco install kubernetes-helm
scoop install helm

安装(Debian/Ubuntu)

curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
sudo apt-get install apt-transport-https --yes
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm

Helm常用命令

helm install --generate-name nvdp/nvidia-device-plugin -n kube-system 
helm list -A |helm lst -A
helm delete nvidia-device-plugin-1662171330 -n kube-system

#在仓库中查找chart
helm search 
#可查看该chart的介绍信息
helm inspect stable/mongodb 
#安装该chart
helm install stable/mongodb 
#升级
helm upgrade releaseName .
#回滚
helm rollback releaseName 1 回滚到版本1

#初始化项目:
helm create nginx

Helm有两部分组成:Helm客户端、Tiller服务端
Helm三个主要部件:Chart、仓库、Release