使用Gitlab作为Helm的Chart仓库

git config --global user.name "wanghongwei-dev"
git config --global user.email "wanghongwei-dev@example.com"
git config --global credential.helper store

git clone http://gitlab.example.com/charts/mycharts.git
cd mycharts/
git remote add origin http://gitlab.example.com/charts/mycharts.git

# helm打包
helm package ./charts/nginx/nginx-13.2.20/ -d ./assets/nginx/

# helm建立索引
helm repo index --merge ./assets/index.yaml --url assets assets/
mv -f ./assets/index.yaml ./index.yaml

git add -A
git commit -a -m "update by wanghongwei-dev"
git push origin master
posted @ 2023-01-04 13:38  wanghongwei-dev  阅读(502)  评论(0)    收藏  举报