备注:
预备环境需要安装helm
1. 安装chartmuseum
参考
# on Linux
curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/linux/amd64/chartmuseum
# on macOS
curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/darwin/amd64/chartmuseum
# on Windows
curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/windows/amd64/chartmuseum
chmod +x ./chartmuseum
mv ./chartmuseum /usr/local/bin
2. 启动服务
备注: 使用local
nohup chartmuseum --debug --port=8089 \
--storage="local" \
--storage-local-rootdir="/root/chartstorage" &
3. 创建简单demo 资源
a. 创建资源
helm create gateway
b. 上传(使用helm-push 创建)
helm plugin install https://github.com/chartmuseum/helm-push
helm repo add chartmuseum http://localhost:8089
helm push gateway/ chartmuseum
c. 搜索资源
helm search chartmuseum/
NAME CHART VERSION APP VERSION DESCRIPTION
chartmuseum/gateway 0.1.0 1.0 A Helm chart for Kubernetes
d. 安装
helm install chartmuseum/gateway
4. 参考文档
https://github.com/kubernetes-helm/chartmuseum
https://github.com/chartmuseum/helm-push
https://docs.helm.sh/using_helm/#installing-helm
https://github.com/rongfengliang/helm-demo