参考文档
https://helm.sh/zh/docs/intro/install/
中心仓库
https://artifacthub.io/
离线安装
https://github.com/helm/helm/releases
1 2
| tar -zxvf helm-v3.11.3-linux-amd64.tar.gz mv linux-amd64/helm /usr/local/bin/helm
|
常用操作
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| helm repo add bitnami https://charts.bitnami.com/bitnami helm update
helm repo list
helm search hub wordpress
helm search repo bitnami/redis --versions --devel
helm repo add brigade https://brigadecore.github.io/charts helm search repo brigade
helm install happy-panda bitnami/wordpress
helm install redis ./redis --namespace redis --create-namespace
helm status happy-panda helm status redis --namespace redis
helm upgrade -f panda.yaml happy-panda bitnami/wordpress helm upgrade redis ./redis
helm status redis --namespace redis
helm uninstall redis --namespace redis
|
3.8以下通过cm-push插件推送
1 2 3 4 5 6 7 8 9
| helm plugin install https://github.com/chartmuseum/helm-push
helm repo add dubhe http://harbor.dubhe:30002/chartrepo/dubhe helm repo update
helm cm-push ./gogs.tgz dubhe --username admin --password yourpass
|
3.8以上支持OCI规范直接推送
https://helm.sh/zh/docs/helm/helm_push/
https://helm.sh/zh/docs/topics/registries/
https://github.com/helm/helm/pull/11599
https://github.com/helm/helm/issues/11683
https://github.com/helm/helm/issues/6324
1 2
| helm registry login -u admin harbor.dubhe:30002 --insecure helm push dubhe-register.tgz oci://harbor.dubhe:30003/dubhe-chart
|