registry
by mjpitz
Helm chartv22.4.11App 2.8.3MITVerified publisher
Easily deploy and configure a production-ready container registry backed by your favorite cloud storage provider. Optionally add a highly-available, partition-tolerant Redis cache that's fronted by Envoy.
About this chart
registry
Easily deploy and configure a production-ready container registry backed by your favorite cloud storage provider. Optionally add a highly-available, partition-tolerant Redis cache that's fronted by Envoy.
Maintainers
| Name | Url | |
|---|---|---|
| Mya Pitzeruse | https://mya.sh |
Source Code
- https://github.com/distribution/distribution
- https://github.com/mjpitz/mjpitz/tree/main/charts/registry
Requirements
| Repository | Name | Version |
|---|---|---|
| auth | * | |
| https://mya.sh | redis | 22.4.9 |
| https://mya.sh | storj | 22.4.5 |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Specify affinity rules for the pods. |
| auth.config.token.realm | string | "" | The realm used for authentication. |
| auth.config.token.service | string | "" | The service authenticating on behalf of the end user. |
| auth.enabled | bool | false | Whether to enable token authentication and authorization for the server. |
| autoscaling.enabled | bool | false | Enable autoscaling for the deployment. |
| autoscaling.maxReplicas | int | 100 | Specify the maximum number of replicas. |
| autoscaling.minReplicas | int | 1 | Specify the minimum number of replicas. |
| autoscaling.targetCPUUtilizationPercentage | int | 80 | Specify the percent CPU utilization that causes the pods to autoscale. |
| config.compatibility | object | {} | Used to configure older / deprecated features. |
| config.http.secret | string | "" | A common secret shared between the registry servers. |
| config.log.accesslog.disabled | bool | true | Disable access log logging. |
| config.log.formatter | string | "json" | Specifies the log format. |
| config.log.level | string | "info" | - Specify the minimum log level. |
| config.middleware | object | {} | Configure the middleware layer such as a Cloudfront CDN for host. |
| config.notifications | object | {} | Configure the docker notification layer. |
| config.proxy | object | {} | Allows the registry to be configured as a pull-through cache to Docker Hub. |
| config.reporting | object | {} | Configure the reporting layer such as the bugsnag and newrelic endpoints. |
| config.storage | object | {} | Configures the persistence layer for blobs. |
| config.validation | object | {} | Configure validation rules for image manifests. |
| externalConfig.secretRef.name | string | "" | Specify the name of the secret containing the raw configuration. |
| extraVolumeMounts | list | [] | Add additional volume mounts to the pod. |
| extraVolumes | list | [] | Add additional volumes to the pod. |
| fullnameOverride | string | "" | Override the full name of the release. |
| gc.enabled | bool | false | Whether to enable the garbage collection process. This is not supported when using the Storj sidecar. |
| gc.schedule | string | "@daily" | How frequently to run the garbage collection process. |
| image.pullPolicy | string | "IfNotPresent" | The pull policy to use for the registry image. |
| image.repository | string | "distribution/distribution" | The repository hosting the container registry image. |
| image.tag | string | "2.8.3" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | Specify the secret containing the registry credentials. |
| ingress.annotations | object | {} | Specify annotations for the ingress. |
| ingress.enabled | bool | false | Configure the ingress for the registry. |
| ingress.hosts[0].host | string | "chart-example.local" | Specify the domain host for the ingress. |
| ingress.tls | list | [] | Configure TLS for the ingress. |
| metrics.serviceMonitor.enabled | bool | false | Add a Prometheus ServiceMonitor that scrapes the registry deployment. |
| metrics.serviceMonitor.interval | string | "10s" | How frequently prometheus should pull metrics from your registry deployment. |
| nameOverride | string | "" | Override the name of the release. |
| nodeSelector | object | {} | Specify the node selector used to control which nodes registry pods are deployed to. |
| podAnnotations | object | {} | Annotations to add to the pod, typically used for assume roles. |
| podSecurityContext | object | {} | Specify the security context for the entire pod. |
| redis.config.db | int | 0 | What redis database to connect to. |
| redis.config.dialtimeout | string | "200ms" | The timeout to use when connecting to redis. |
| redis.config.pool.idletimeout | string | "300s" | How long before a connection is marked idle. |
| redis.config.pool.maxactive | int | 64 | The maximum number of active connections. |
| redis.config.pool.maxidle | int | 16 | The maximum number of idle connections. |
| redis.config.readtimeout | string | "200ms" | The timeout used when reading data from redis. |
| redis.config.writetimeout | string | "200ms" | The timeout used when writing data to redis. |
| redis.enabled | bool | false | Whether to enable a partitioned Redis cluster for caching. |
| replicaCount | int | 1 | The number of registry replicas to deploy. |
Deploy registry with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has registry 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 chartregistry is pinned at v22.4.11 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