一、启用harbor的Chart仓库服务
# ./install.sh --with-chartmuseum
启用后,默认创建的项目就带有helm charts功能了。
二、安装push插件
插件地址: https://github.com/chartmuseum/helm-push 安装命令: helm plugin install https://github.com/chartmuseum/helm-push 也可以下载离线包 解压到对应用户的环境目录下 /root/.local/share/helm/plugins/helm-push/
三、添加repo
helm repo add --username admin --password xxxx harbor https://harbor.xxx.com/chartrepo/library /chartrepo/是必须带的
四、推送与安装Chart
推送 helm push mysql-1.4.0.tgz --username=admin --password=xxxxx https://harbor.xxx.com/chartrepo/library 安装 helm install web --version 1.4.0 myrepo/demo 如果下载失败先更新repo helm repo update