wget https://get.helm.sh/helm-v3.3.1-linux-amd64.tar.gz
tar -zxvf helm-v3.3.1-linux-amd64.tar.gz
cp linux-amd64/helm /usr/local/bin/
vim /etc/profile
# 写入内容
export KUBECONFIG=/etc/rancher/k3s/k3s.yaml
# 执行
source /etc/profile
# 查看版本
helm version
# 添加常用仓库
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
helm repo add ali-stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
# 查看repo
helm repo list
#查询已安装
helm list -A
# 删除
helm delete NAME -n NAMESPACE
# 搜索
helm search repo nginx
# 拉取到本地
helm pull bitnami/nginx --untar
# 根据values.yml配置本地安装
helm install nginx . -f values.yaml -n nginx
# 根据values.yml配置本地升级
helm upgrade nginx . -f values.yaml -n nginx
# 卸载
helm uninstall nginx -n nginx
网友评论