1、Helm下载链接:https://github.com/helm/helm/releases
wget https://get.helm.sh/helm-v3.3.0-linux-amd64.tar.gz
tar -xzvf helm-v3.3.0-linux-amd64.tar.gz
2、将helm拷贝到系统path路径下,以下为/usr/local/bin/helm。
mv linux-amd64/helm /usr/local/bin/helm
3、查看helm版本
helm version
[root@cce~]# helm version
version.BuildInfo{Version:"v3.3.0", GitCommit:"8a4aeec08d67a7b84472007529e8097ec3742105", GitTreeState:"dirty", GoVersion:"go1.14.7"}
节点需要安装kubectl
4、
helm repo remove stable
helm repo add stable https://kubernetes.oss-cn-hangzhou.aliyuncs.com/charts
helm repo update
helm search repo mysql
5、安装mysql
查看安装前需要的配置
helm inspect values stable/mysql
6、先创建pv
创建大于8G的pv
7、helm install stable/mysql --generate-name