Building helm PW ChartMuseum

Introduction

ChartMuseum is an open source Helm Chart Repository server written in Go (Golang) with

ChartMuseum is an open source Helm Chart Repository server written in Go (Golang), cloud storage back-end support, including Google Cloud Storage, Amazon S3, Microsoft Azure Blob storage, Ali OSS cloud storage, Openstack Object Storage and Oracle Cloud Object Storage Infrastructure .

Deployment ChartMuseum

1, chart Address: https://github.com/helm/charts/tree/master/stable/chartmuseum

2, write custom.yaml file

env:
  open:
    #开启api
    DISABLE_API: false
    ALLOW_OVERWRITE: true
  secret:
    BASIC_AUTH_USER: myuser
    BASIC_AUTH_PASS: mypass
resources:
  limits:
    cpu: 1
    memory: 2Gi
  requests:
    cpu: 80m
    memory: 64Mi
persistence:
  enabled: true
  size: 10Gi
  storageClass: "managed-nfs-storage"

 3, installation

helm install --name my-chartmuseum -f custom.yaml stable/chartmuseum

 4, installation push plug (https://github.com/chartmuseum/helm-push)

1) line installation

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

 2) offline installation

Download Offline Pack:https://github.com/chartmuseum/helm-push/releases/download/v0.7.1/helm-push_0.7.1_darwin_amd64.tar.gz

New helm-push catalog offline package extract to this directory:

mkdir -p /root/.helm/plugins/helm-push
tar -xf helm-push_0.7.1_darwin_amd64.tar.gz

5, using

Add warehouse

helm repo add chartmuseum http://NodePort-ip:NOdeport-port --username myuser --password mypass

Upload chart

helm push mychart/ chartmuseum

 

 


 

 

Guess you like

Origin www.cnblogs.com/Dev0ps/p/11258539.html