docker-registry
by slamdev
Helm chartv0.0.4App 2.8.1
Helm chart to deploy [docker-registry](https://github.com/distribution/distribution).
About this chart
docker-registry
Helm chart to deploy docker-registry.
Homepage: https://github.com/slamdev/helm-charts/tree/master/charts/docker-registry
Maintainers
| Name | Url | |
|---|---|---|
| slamdev | [email protected] |
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalResources | list | [] | list of additional resources to create (are processed via tpl function) |
| affinity | object | {} | affinity for scheduler pod assignment |
| cleanregCronJob.args | list | ["--registry=http://docker-registry","--assume-yes","--clean-full-catalog","--keepimages=10","--skip-tls-verify","--ignore-ref-tags"] | args for cleanreg https://github.com/hcguersoy/cleanreg#usage |
| cleanregCronJob.env | list | [] | additional environment variables for the deployment |
| cleanregCronJob.failedJobsHistoryLimit | int | 1 | the number of failed finished jobs to retain |
| cleanregCronJob.image.pullPolicy | string | "IfNotPresent" | image pull policy |
| cleanregCronJob.image.repository | string | "hcguersoy/cleanreg" | image repository |
| cleanregCronJob.image.tag | string | "v0.8.0" | image tag (chart's appVersion value will be used if not set) |
| cleanregCronJob.imagePullSecrets | list | [] | image pull secret for private images |
| cleanregCronJob.podAnnotations | object | {} | pod annotations |
| cleanregCronJob.podSecurityContext | object | {} | specifies security settings for a pod |
| cleanregCronJob.resources | object | {} | custom resource configuration |
| cleanregCronJob.restartPolicy | string | "Never" | container restart policy |
| cleanregCronJob.schedule | string | "@daily" | the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron |
| cleanregCronJob.securityContext | object | {} | specifies security settings for a container |
| cleanregCronJob.successfulJobsHistoryLimit | int | 3 | the number of successful finished jobs to retain |
| cleanregCronJob.volumeMounts | list | [] | additional volume mounts |
| cleanregCronJob.volumes | list | [] | additional volumes |
| config | string | "http:\n addr: :5000" | docker-registry config to provision inside of the container |
| containerPorts | list | [{"containerPort":5000,"name":"http","protocol":"TCP"}] | ports exposed by container |
| deploymentAnnotations | object | {} | annotations to add to the deployment |
| env | list | [] | additional environment variables for the deployment |
| fullnameOverride | string | "" | full name of the chart. |
| garbageCollectCronJob.deleteUntagged | bool | true | delete manifests that are not currently referenced via tag |
| garbageCollectCronJob.dryRun | bool | false | do everything except remove the blobs |
| garbageCollectCronJob.failedJobsHistoryLimit | int | 1 | the number of failed finished jobs to retain |
| garbageCollectCronJob.podAnnotations | object | {} | pod annotations |
| garbageCollectCronJob.resources | object | {} | custom resource configuration |
| garbageCollectCronJob.restartPolicy | string | "Never" | container restart policy |
| garbageCollectCronJob.schedule | string | "@daily" | the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron |
| garbageCollectCronJob.successfulJobsHistoryLimit | int | 3 | the number of successful finished jobs to retain |
| image.pullPolicy | string | "IfNotPresent" | image pull policy |
| image.repository | string | "registry" | image repository |
| image.tag | string | "" | image tag (chart's appVersion value will be used if not set) |
| imagePullSecrets | list | [] | image pull secret for private images |
| livenessProbe.httpGet.path | string | "/" | path for liveness probe |
| livenessProbe.httpGet.port | string | "http" | port for liveness probe |
| nameOverride | string | "" | override name of the chart |
| nodeSelector | object | {} | node for scheduler pod assignment |
| podSecurityContext | object | {} | specifies security settings for a pod |
| readinessProbe.httpGet.path | string | "/" | path for readiness probe |
| readinessProbe.httpGet.port | string | "http" | port for readiness probe |
| replicaCount | int | 1 | number of replicas for docker-registry deployment. |
| resources | object | {} | custom resource configuration |
| securityContext | object | {} | specifies security settings for a container |
| service.annotations | object | {} | annotations to add to the service |
| service.loadBalancerSourceRanges | list | [] | traffic through the load-balancer will be restricted to the specified client IPs |
| service.ports | list | [{"name":"http","port":80,"protocol":"TCP","targetPort":"http"}] | service ports |
| service.type | string | "ClusterIP" | service type |
| serviceAccount.annotations | object | {} | annotations to add to the service account |
| serviceAccount.create | bool | false | specifies whether a service account should be created |
| serviceAccount.name | string | nil | the name of the service account to use; if not set and create is true, a name is generated using the fullname template |
| tolerations | list | [] | tolerations for scheduler pod assignment |
| volumeMounts | list | [] | additional volume mounts |
| volumes | list | [] | additional volumes |
Deploy docker-registry with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has docker-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 chartdocker-registry is pinned at v0.0.4 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