chartmuseum部署指引 helm chart repo

Docker 安装-本地模式

未使用云厂商提供的对象存储服务
chartmuseum不提供UI,权限管理等功能,如需要此类功能,需要使用harbor提供的chart仓库服务,harbor底层用的也是chartmuseum。
具体配置资料请看https://www.jianshu.com/p/62ef34f76168这篇文章。

创建仓库目录

mkdir /data/charts -p
chown 1000:1000 /data/charts -R

安装

mkdir /data/chartmuseum/ -p
vim /data/chartmuseum/docker-compose.yaml

version: '2.0'
services:
  ui:
    image: idobry/chartmuseumui:latest
    environment:
      CHART_MUSEUM_URL: http://chartmuseum:8080
    ports:
      - 3000:8080
  chartmuseum:
    image: chartmuseum/chartmuseum:latest
    ports:
    - 8080:8080
    volumes:
     - /data/charts:/charts
    environment:
      PORT: 8080
      DEBUG: 1
      STORAGE: local
      STORAGE_LOCAL_ROOTDIR: /charts

上传chart包

$ helm create sam-apps
Creating sam-apps

$ helm package sam-apps
Successfully packaged chart and saved it to: /Users/Sam/Downloads/test-charts/sam-apps-0.1.0.tgz

$ curl -L  --data-binary "@sam-apps-0.1.0.tgz" http://10.0.0.1:8080/api/charts            
{"saved":true}%

安装chart包

$ helm repo add integration http://10.0.0.1:8080 
$ helm list -A

# 如果之前添加过,需要更新repo
$ helm repo update integration


$ helm search repo sam                                              
NAME                        CHART VERSION        APP VERSION        DESCRIPTION
integration/sam-apps        0.1.0                1.16.0             A Helm chart for Kubernetes

你可能感兴趣的:(chartmuseum部署指引 helm chart repo)