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
| Name | Description | Value |
|---|---|---|
global.imageRegistry | Global Docker image registry | "" |
global.imagePullSecrets | Global Docker registry secret names as an array | [] |
global.storageClass | Global StorageClass for Persistent Volume(s) | "" |
Distribution parameters
| Name | Description | Value |
|---|---|---|
image.registry | image registry | docker.io |
image.repository | image repository | distribution/distribution |
image.tag | image tag (immutable tags are recommended) | 3.1.2 |
image.digest | image digest in the way sha256:aa.... Please note this parameter, if set, will override the tag image tag (immutable tags are recommended) | "" |
image.pullPolicy | image pull policy | IfNotPresent |
image.pullSecrets | image pull secrets | [] |
configYml | Registry config.yml | {} |
persistence.enabled | Enable persistence using Persistent Volume Claims | true |
persistence.mountPath | Path to mount the volume at. | /var/lib/registry |
persistence.subPath | The subdirectory of the volume to mount to, useful in dev environments and one PV for multiple services | "" |
persistence.storageClass | Storage class of backing PVC | "" |
persistence.annotations | Persistent Volume Claim annotations | {} |
persistence.labels | Persistent Volume Claim labels | {} |
persistence.accessModes | Persistent Volume Access Modes | ["ReadWriteOnce"] |
persistence.size | Size of data volume | 8Gi |
persistence.existingClaim | The name of an existing PVC to use for persistence | "" |
persistence.selector | Selector to match an existing Persistent Volume for WordPress data PVC | {} |
persistence.dataSource | Custom PVC data source | {} |
ingress.enabled | Enable ingress | false |
ingress.pathType | Ingress path type | ImplementationSpecific |
ingress.apiVersion | Force Ingress API version (automatically detected if not set) | "" |
ingress.hostname | Default host for the ingress record | hostname.local |
ingress.ingressClassName | IngressClass that will be be used to implement the Ingress (Kubernetes 1.18+) | "" |
ingress.path | Default path for the ingress record | / |
ingress.annotations | Additional annotations for the Ingress resource. To enable certificate autogeneration, place here your cert-manager annotations. | {} |
ingress.tls | Enable TLS configuration for the host defined at ingress.hostname parameter | false |
ingress.selfSigned | Create a TLS secret for this ingress record using self-signed certificates generated by Helm | false |
ingress.extraHosts | An array with additional hostname(s) to be covered with the ingress record | [] |
ingress.extraPaths | An array with additional arbitrary paths that may need to be added to the ingress under the main host | [] |
ingress.extraTls | TLS configuration for additional hostname(s) to be covered with this ingress record | [] |
ingress.secrets | Custom TLS certificates as secrets | [] |
ingress.extraRules | Additional rules to be covered with this ingress record | [] |
serviceAccount.create | Specifies whether a ServiceAccount should be created | true |
serviceAccount.name | The name of the ServiceAccount to use. | "" |
serviceAccount.annotations | Additional Service Account annotations (evaluated as a template) | {} |
serviceAccount.automountServiceAccountToken | Automount service account token for the server service account | true |
service.type | service type | ClusterIP |
service.nodePorts | Node ports to expose | {} |
service.clusterIP | service Cluster IP | "" |
service.loadBalancerIP | service Load Balancer IP | "" |
service.loadBalancerSourceRanges | service Load Balancer sources | [] |
service.externalTrafficPolicy | service external traffic policy | Cluster |
service.annotations | Additional custom annotations for service | {} |
service.extraPorts | Extra ports to expose in service (normally used with the sidecars value) | [] |
service.sessionAffinity | Control where client requests go, to the same pod or round-robin | None |
service.sessionAffinityConfig | Additional settings for the sessionAffinity | {} |
metrics.enabled | Enable the export of Prometheus metrics | false |
metrics.serviceMonitor.enabled | if true, creates a Prometheus Operator ServiceMonitor (also requires metrics.enabled to be true) | false |
metrics.serviceMonitor.namespace | Namespace in which Prometheus is running | "" |
metrics.serviceMonitor.annotations | Additional custom annotations for the ServiceMonitor | {} |
metrics.serviceMonitor.labels | Extra labels for the ServiceMonitor | {} |
metrics.serviceMonitor.jobLabel | The name of the label on the target service to use as the job name in Prometheus | "" |
metrics.serviceMonitor.honorLabels | honorLabels chooses the metric's labels on collisions with target labels | false |
metrics.serviceMonitor.interval | Interval at which metrics should be scraped. | "" |
metrics.serviceMonitor.scrapeTimeout | Timeout 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartdistribution is pinned at v0.3.1 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