chartmuseum
by mike7515
Host your own Helm Chart Repository
About this chart
ChartMuseum Helm Chart
Deploy your own private ChartMuseum.
Please also see https://github.com/helm/chartmuseum
Table of Content
- ChartMuseum Helm Chart
- Table of Content
- Prerequisites
- Configuration
- Installation
- Using with Amazon S3
- permissions grant with access keys
- permissions grant with IAM instance profile
- permissions grant with IAM assumed role
- permissions grant with IAM Roles for Service Accounts
- Using with Google Cloud Storage
- Using with Google Cloud Storage and a Google Service Account
- Using with Microsoft Azure Blob Storage
- Using with Alibaba Cloud OSS Storage
- Using with Openstack Object Storage
- Using with Oracle Object Storage
- Using an existing secret
- Using with local filesystem storage
- Setting local storage permissions with initContainers
- Example storage class
- Authentication
- Basic Authentication
- Bearer/Token auth
- Ingress
- Hosts
- Path Types
- Extra Paths
- Annotations
- Example Ingress configuration
- Using with Amazon S3
- Uninstall
- Upgrading
- To 3.0.0
Prerequisites
- Helm v3.0.0+
- [If enabled] A persistent storage resource and RW access to it
- [If enabled] Kubernetes StorageClass for dynamic provisioning
Configuration
By default this chart will not have persistent storage, and the API service
will be DISABLED (env.open.DISABLE_API=true). This protects against unauthorized access to the API
with default configuration values.
You must set
env.open.DISABLE_API=falseif you intend to use the ChartMuseum API.
In addition, by default, pod securityContext.fsGroup is set to 1000. This
is the user/group that the ChartMuseum container runs as, and is used to
enable local persitant storage. If your cluster has DenySecurityContext enabled,
you can set securityContext to {} and still use this chart with one of
the cloud storage options.
For a more robust solution supply helm install with a custom values.yaml You are also required to create the StorageClass resource ahead of time:
kubectl create -f /path/to/storage_class.yaml
The following table lists common configurable parameters of the chart and their default values. See values.yaml for all available options.
| Parameter | Description | Default |
|---|---|---|
image.pullPolicy | Container pull policy | IfNotPresent |
image.repository | Container image to use | ghcr.io/helm/chartmuseum |
image.tag | Container image tag to deploy | v0.13.1 |
persistence.accessMode | Access mode to use for PVC | ReadWriteOnce |
persistence.enabled | Whether to use a PVC for persistent storage | false |
persistence.path | PV mount path | /storage |
persistence.size | Amount of space to claim for PVC | 8Gi |
persistence.labels | Additional labels for PVC | {} |
persistence.storageClass | Storage Class to use for PVC | undefined (Uses default provisioner) |
persistence.volumeName | Volume to use for PVC | undefined |
persistence.pv.enabled | Whether to use a PV for persistent storage | false |
persistence.pv.capacity.storage | Storage size to use for PV | 8Gi |
persistence.pv.accessMode | Access mode to use for PV | ReadWriteOnce |
persistence.pv.nfs.server | NFS server for PV | <nil> |
persistence.pv.nfs.path | Storage Path | <nil> |
persistence.pv.pvname | Custom name for private volume | <nil> |
volumePermissions.image.registry | Init container volume-permissions image registry | docker.io |
volumePermissions.image.repository | Init container volume-permissions image name | bitnami/minideb |
volumePermissions.image.tag | Init container volume-permissions image tag | buster |
volumePermissions.image.pullPolicy | Init container volume-permissions image pull policy | Always |
replicaCount | k8s replicas | 1 |
resources | CPU/Memory resource requests and limits | {} |
secret.labels | Additional labels for secret | {} |
serviceAccount.create | If true, create the service account | false |
serviceAccount.name | Name of the serviceAccount to create or use | "" |
serviceAccount.annotations | Additional Service Account annotations | {} |
securityContext.enabled | Enable securityContext | true |
securityContext.fsGroup | Group ID for the container | 1000 |
securityContext.runAsNonRoot | Running Pods as non-root | undefined |
securityContext.supplementalGroups | Control which group IDs containers add | undefined |
containerSecurityContext | Additional Container securityContext (e.g. allowPrivilegeEscalation) | {} |
priorityClassName | priorityClassName | "" |
nodeSelector | Map of node labels for pod assignment | {} |
tolerations | List of node taints to tolerate | [] |
affinity | Map of node/pod affinities | {} |
schedulerName | Kubernetes scheduler to use | <nil> (Uses default scheduler) |
env.open.STORAGE | Storage Backend to use | local |
env.open.STORAGE_ALIBABA_BUCKET | Bucket to store charts in for Alibaba | <nil> |
env.open.STORAGE_ALIBABA_PREFIX | Prefix to store charts under for Alibaba | <nil> |
env.open.STORAGE_ALIBABA_ENDPOINT | Alternative Alibaba endpoint | <nil> |
env.open.STORAGE_ALIBABA_SSE | Server side encryption algorithm to use | <nil> |
env.open.STORAGE_AMAZON_BUCKET | Bucket to store charts in for AWS | <nil> |
env.open.STORAGE_AMAZON_ENDPOINT | Alternative AWS endpoint | <nil> |
env.open.STORAGE_AMAZON_PREFIX | Prefix to store charts under for AWS | <nil> |
env.open.STORAGE_AMAZON_REGION | Region to use for bucket access for AWS | <nil> |
env.open.STORAGE_AMAZON_SSE | Server side encryption algorithm to use | <nil> |
env.open.STORAGE_GOOGLE_BUCKET | Bucket to store charts in for GCP | <nil> |
env.open.STORAGE_GOOGLE_PREFIX | Prefix to store charts under for GCP | <nil> |
env.open.STORAGE_MICROSOFT_CONTAINER | Container to store charts under for MS | <nil> |
env.open.STORAGE_MICROSOFT_PREFIX | Prefix to store charts under for MS | <nil> |
env.open.STORAGE_OPENSTACK_CONTAINER | Container to store charts for openstack | <nil> |
env.open.STORAGE_OPENSTACK_PREFIX | Prefix to store charts for openstack | <nil> |
env.open.STORAGE_OPENSTACK_REGION | Region of openstack container | <nil> |
env.open.STORAGE_OPENSTACK_CACERT | Path to a CA cert bundle for openstack | <nil> |
env.open.STORAGE_ORACLE_COMPARTMENTID | Compartment ID for Oracle Object Store | <nil> |
env.open.STORAGE_ORACLE_BUCKET | Bucket to store charts in Oracle Object Store | <nil> |
env.open.STORAGE_ORACLE_PREFIX | Prefix to store charts for Oracle object Store | <nil> |
env.open.CHART_POST_FORM_FIELD_NAME | Form field to query for chart file content | chart |
env.open.PROV_POST_FORM_FIELD_NAME | Form field to query for chart provenance | prov |
env.open.DEPTH | levels of nested repos for multitenancy. | 0 |
env.open.DEBUG | Show debug messages | false |
env.open.LOG_JSON | Output structured logs in JSON | true |
env.open.DISABLE_STATEFILES | Disable use of index-cache.yaml | false |
env.open.ENABLE_METRICS | Enable P |
Deploy chartmuseum with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has chartmuseum on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartchartmuseum is pinned at v1.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply