当前位置: 首页 > 工具软件 > chartmuseum > 使用案例 >

chartmuseum 安装

赏航
2023-12-01

chartmuseum 安装

备注:

  预备环境需要安装helm 

1. 安装chartmuseum 

 
  1. 参考

  2.  
  3. # on Linux

  4. curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/linux/amd64/chartmuseum

  5.  
  6. # on macOS

  7. curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/darwin/amd64/chartmuseum

  8.  
  9. # on Windows

  10. curl -LO https://s3.amazonaws.com/chartmuseum/release/latest/bin/windows/amd64/chartmuseum

  11.  
  12. chmod +x ./chartmuseum

  13. mv ./chartmuseum /usr/local/bin

2. 启动服务

 
  1. 备注: 使用local

  2. nohup chartmuseum --debug --port=8089 \

  3. --storage="local" \

  4. --storage-local-rootdir="/root/chartstorage" &

 

3. 创建简单demo 资源

 
  1. a. 创建资源

  2.  
  3. helm create gateway

  4.  
  5. b. 上传(使用helm-push 创建)

  6.  
  7. helm plugin install https://github.com/chartmuseum/helm-push

  8.  
  9. helm repo add chartmuseum http://localhost:8089

  10.  
  11. helm push gateway/ chartmuseum

  12.  
  13. c. 搜索资源

  14.  
  15. helm search chartmuseum/

  16.  
  17. NAME CHART VERSION APP VERSION DESCRIPTION

  18. chartmuseum/gateway 0.1.0 1.0 A Helm chart for Kubernetes

  19.  
  20.  
  21. d. 安装

  22.  
  23. helm install chartmuseum/gateway

4. 参考文档

 
  1. https://github.com/kubernetes-helm/chartmuseum

  2. https://github.com/chartmuseum/helm-push

  3. https://docs.helm.sh/using_helm/#installing-helm

  4. https://github.com/rongfengliang/helm-demo

 

 类似资料: