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

NameEmailUrl
slamdev[email protected]

Values

KeyTypeDefaultDescription
additionalResourceslist[]list of additional resources to create (are processed via tpl function)
affinityobject{}affinity for scheduler pod assignment
cleanregCronJob.argslist["--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.envlist[]additional environment variables for the deployment
cleanregCronJob.failedJobsHistoryLimitint1the number of failed finished jobs to retain
cleanregCronJob.image.pullPolicystring"IfNotPresent"image pull policy
cleanregCronJob.image.repositorystring"hcguersoy/cleanreg"image repository
cleanregCronJob.image.tagstring"v0.8.0"image tag (chart's appVersion value will be used if not set)
cleanregCronJob.imagePullSecretslist[]image pull secret for private images
cleanregCronJob.podAnnotationsobject{}pod annotations
cleanregCronJob.podSecurityContextobject{}specifies security settings for a pod
cleanregCronJob.resourcesobject{}custom resource configuration
cleanregCronJob.restartPolicystring"Never"container restart policy
cleanregCronJob.schedulestring"@daily"the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron
cleanregCronJob.securityContextobject{}specifies security settings for a container
cleanregCronJob.successfulJobsHistoryLimitint3the number of successful finished jobs to retain
cleanregCronJob.volumeMountslist[]additional volume mounts
cleanregCronJob.volumeslist[]additional volumes
configstring"http:\n addr: :5000"docker-registry config to provision inside of the container
containerPortslist[{"containerPort":5000,"name":"http","protocol":"TCP"}]ports exposed by container
deploymentAnnotationsobject{}annotations to add to the deployment
envlist[]additional environment variables for the deployment
fullnameOverridestring""full name of the chart.
garbageCollectCronJob.deleteUntaggedbooltruedelete manifests that are not currently referenced via tag
garbageCollectCronJob.dryRunboolfalsedo everything except remove the blobs
garbageCollectCronJob.failedJobsHistoryLimitint1the number of failed finished jobs to retain
garbageCollectCronJob.podAnnotationsobject{}pod annotations
garbageCollectCronJob.resourcesobject{}custom resource configuration
garbageCollectCronJob.restartPolicystring"Never"container restart policy
garbageCollectCronJob.schedulestring"@daily"the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron
garbageCollectCronJob.successfulJobsHistoryLimitint3the number of successful finished jobs to retain
image.pullPolicystring"IfNotPresent"image pull policy
image.repositorystring"registry"image repository
image.tagstring""image tag (chart's appVersion value will be used if not set)
imagePullSecretslist[]image pull secret for private images
livenessProbe.httpGet.pathstring"/"path for liveness probe
livenessProbe.httpGet.portstring"http"port for liveness probe
nameOverridestring""override name of the chart
nodeSelectorobject{}node for scheduler pod assignment
podSecurityContextobject{}specifies security settings for a pod
readinessProbe.httpGet.pathstring"/"path for readiness probe
readinessProbe.httpGet.portstring"http"port for readiness probe
replicaCountint1number of replicas for docker-registry deployment.
resourcesobject{}custom resource configuration
securityContextobject{}specifies security settings for a container
service.annotationsobject{}annotations to add to the service
service.loadBalancerSourceRangeslist[]traffic through the load-balancer will be restricted to the specified client IPs
service.portslist[{"name":"http","port":80,"protocol":"TCP","targetPort":"http"}]service ports
service.typestring"ClusterIP"service type
serviceAccount.annotationsobject{}annotations to add to the service account
serviceAccount.createboolfalsespecifies whether a service account should be created
serviceAccount.namestringnilthe name of the service account to use; if not set and create is true, a name is generated using the fullname template
tolerationslist[]tolerations for scheduler pod assignment
volumeMountslist[]additional volume mounts
volumeslist[]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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartdocker-registry is pinned at v0.0.4 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