zl程序教程

您现在的位置是:首页 >  工具

当前栏目

docker私有仓库harbor配置helm chart仓库(安装helm chart插件)

Docker配置安装插件 仓库 私有 Harbor Chart
2023-09-14 09:01:56 时间

harbor配置helm chart仓库

1、harbor 安装的时候 默认没有helm charts的仓库,如果已经安装过重新执行安装即可,不需要prepare

docker-compose stop
./install.sh --with-chartmuseum
安装完成之后登录页面上就会有了 helm charts 了,页面上也可以直接上传charts

2、helm 需要安装插件并添加源,需要harbor登陆用户密码

helm plugin install https://github.com/chartmuseum/helm-push
helm repo add course https://harbor.wehgc.com:10443/chartrepo/library --username=admin --password=GJ9JwGl0jL

3、上传

helm push polling-helm course
PS:如果出现以下错误提示:
Error: couldn't load repositories file (/root/.config/helm/repositories.yaml): open /root/.config/helm/repositories.yaml: no such file or directory
解决方法:则拷贝相应的文件到目录
mkdir /root/.config/helm && cp .helm/repository/repositories.yaml /root/.config/helm/repositories.yaml
错误提示:
cp: 无法创建普通文件"/root/.cache/helm/repository/course-index.yaml": 没有那个文件或目录
解决方法:
mkdir /root/.cache/helm/repository -p && cp .helm/repository/cache/course-index.yaml /root/.cache/helm/repository/course-index.yaml