背景说明
关于 Helm 3 的安装办法,官方提供了两种方式[二进制和脚本],而社区也根据不同的平台推出了不同的包管理器来安装 Helm。
解决方案
文件下载
[root@cka-master helm]# wget https://get.helm.sh/helm-v3.8.1-linux-arm64.tar.gz
helm-v3.8.1-linux-arm64.tar.gz
[root@cka-master helm]# mv linux-amd64/helm /usr/local/bin/
版本查看
[root@cka-master helm]# helm version
version.BuildInfo{Version:"v3.8.1", GitCommit:"5cb9af4b1b271d11d7a97a71df3ac337dd94ad37", GitTreeState:"clean", GoVersion:"go1.17.5"}
[root@cka-master helm]#
命令补全
[root@cka-master helm]# source <(helm completion bash)
[root@cka-master helm]#
仓库查看
[root@cka-master helm]# helm repo list
Error: no repositories to show
[root@cka-master helm]#
仓库添加
[root@cka-master helm]# helm repo add apphub https://apphub.aliyuncs.com
"apphub" has been added to your repositories
[root@cka-master helm]# helm repo list
NAME URL
apphub https://apphub.aliyuncs.com
仓库更新
[root@cka-master helm]# helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "apphub" chart repository
仓库删除
[root@cka-master helm]# helm repo remove apphub
仓库搜索
[root@cka-master helm]# helm search repo mysql
NAME CHART VERSION APP VERSION DESCRIPTION
aliyuncs/mysql 6.8.0 8.0.19 Chart to create a Highly available MySQL cluster
aliyuncs/mysqldump 2.6.0 2.4.1 A Helm chart to help backup MySQL databases usi...
aliyuncs/mysqlha 1.0.0 5.7.13 MySQL cluster with a single master and zero or ...
aliyuncs/prometheus-mysql-exporter 0.5.2 v0.11.0 A Helm chart for prometheus mysql exporter with...
aliyuncs/percona 1.2.0 5.7.17 free, fully compatible, enhanced, open source d...
aliyuncs/percona-xtradb-cluster 1.0.3 5.7.19 free, fully compatible, enhanced, open source d...
aliyuncs/phpmyadmin 4.2.12 5.0.1 phpMyAdmin is an mysql administration frontend
aliyuncs/mariadb 7.3.9 10.3.22 Fast, reliable, scalable, and easy to use open-...
aliyuncs/mariadb-galera 0.8.1 10.4.12 MariaDB Galera is a multi-master database clust...
[root@cka-master helm]#
常用仓库
[root@cka-master helm] helm repo add github https://burdenbear.github.io/kube-charts-mirror
[root@cka-master helm] helm repo add apphub https://apphub.aliyuncs.com