distribution

by jouve

Helm chartv0.3.1App 3.1.2GPL-3.0-or-laterVerified publisher

A Helm chart for Kubernetes

About this chart

distribution

usage

Prefered using oci:

helm install mailpit oci://ghcr.io/jouve/charts/distribution

Charts pushed to oci:// are signed keyless via cosign and GitHub Actions OIDC. Verify with:

cosign verify ghcr.io/jouve/charts/distribution:<version> \
  --certificate-identity-regexp 'https://github.com/jouve/charts/\.github/workflows/release\.yaml@.*' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com

Or legacy repo:

helm repo add jouve https://jouve.github.io/charts/
helm install mailpit jouve/distribution

Parameters

Global parameters

NameDescriptionValue
global.imageRegistryGlobal Docker image registry""
global.imagePullSecretsGlobal Docker registry secret names as an array[]
global.storageClassGlobal StorageClass for Persistent Volume(s)""

Distribution parameters

NameDescriptionValue
image.registryimage registrydocker.io
image.repositoryimage repositorydistribution/distribution
image.tagimage tag (immutable tags are recommended)3.1.2
image.digestimage digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended)""
image.pullPolicyimage pull policyIfNotPresent
image.pullSecretsimage pull secrets[]
configYmlRegistry config.yml{}
persistence.enabledEnable persistence using Persistent Volume Claimstrue
persistence.mountPathPath to mount the volume at./var/lib/registry
persistence.subPathThe subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services""
persistence.storageClassStorage class of backing PVC""
persistence.annotationsPersistent Volume Claim annotations{}
persistence.labelsPersistent Volume Claim labels{}
persistence.accessModesPersistent Volume Access Modes["ReadWriteOnce"]
persistence.sizeSize of data volume8Gi
persistence.existingClaimThe name of an existing PVC to use for persistence""
persistence.selectorSelector to match an existing Persistent Volume for WordPress data PVC{}
persistence.dataSourceCustom PVC data source{}
ingress.enabledEnable ingressfalse
ingress.pathTypeIngress path typeImplementationSpecific
ingress.apiVersionForce Ingress API version (automatically detected if not set)""
ingress.hostnameDefault host for the ingress recordhostname.local
ingress.ingressClassNameIngressClass that will be be used to implement the Ingress (Kubernetes 1.18+)""
ingress.pathDefault path for the ingress record/
ingress.annotationsAdditional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations.{}
ingress.tlsEnable TLS configuration for the host defined at ingress.hostname parameterfalse
ingress.selfSignedCreate a TLS secret for this ingress record using self-signed certificates generated by Helmfalse
ingress.extraHostsAn array with additional hostname(s) to be covered with the ingress record[]
ingress.extraPathsAn array with additional arbitrary paths that may need to be added to the ingress under the main host[]
ingress.extraTlsTLS configuration for additional hostname(s) to be covered with this ingress record[]
ingress.secretsCustom TLS certificates as secrets[]
ingress.extraRulesAdditional rules to be covered with this ingress record[]
serviceAccount.createSpecifies whether a ServiceAccount should be createdtrue
serviceAccount.nameThe name of the ServiceAccount to use.""
serviceAccount.annotationsAdditional Service Account annotations (evaluated as a template){}
serviceAccount.automountServiceAccountTokenAutomount service account token for the server service accounttrue
service.typeservice typeClusterIP
service.nodePortsNode ports to expose{}
service.clusterIPservice Cluster IP""
service.loadBalancerIPservice Load Balancer IP""
service.loadBalancerSourceRangesservice Load Balancer sources[]
service.externalTrafficPolicyservice external traffic policyCluster
service.annotationsAdditional custom annotations for service{}
service.extraPortsExtra ports to expose in service (normally used with the sidecars value)[]
service.sessionAffinityControl where client requests go, to the same pod or round-robinNone
service.sessionAffinityConfigAdditional settings for the sessionAffinity{}
metrics.enabledEnable the export of Prometheus metricsfalse
metrics.serviceMonitor.enabledif true, creates a Prometheus Operator ServiceMonitor (also requires metrics.enabled to be true)false
metrics.serviceMonitor.namespaceNamespace in which Prometheus is running""
metrics.serviceMonitor.annotationsAdditional custom annotations for the ServiceMonitor{}
metrics.serviceMonitor.labelsExtra labels for the ServiceMonitor{}
metrics.serviceMonitor.jobLabelThe name of the label on the target service to use as the job name in Prometheus""
metrics.serviceMonitor.honorLabelshonorLabels chooses the metric's labels on collisions with target labelsfalse
metrics.serviceMonitor.intervalInterval at which metrics should be scraped.""
metrics.serviceMonitor.scrapeTimeoutTimeout after which the scrape is ended""
`metrics.serviceMonitor.metricRelab

Deploy distribution with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has distribution 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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdistribution is pinned at v0.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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