Back to Charts

⚠️ Repo Archive Notice

stable/docker-registry/README.md

latest8.6 KB
Original Source

⚠️ Repo Archive Notice

As of Nov 13, 2020, charts in this repo will no longer be updated. For more information, see the Helm Charts Deprecation and Archive Notice, and Update.

Docker Registry Helm Chart

This directory contains a Kubernetes chart to deploy a private Docker Registry.

DEPRECATION NOTICE

This chart is deprecated and no longer supported.

Prerequisites Details

  • PV support on underlying infrastructure (if persistence is required)

Chart Details

This chart will do the following:

  • Implement a Docker registry deployment

Installing the Chart

To install the chart, use the following:

console
$ helm install stable/docker-registry

Configuration

The following table lists the configurable parameters of the docker-registry chart and their default values.

ParameterDescriptionDefault
image.pullPolicyContainer pull policyIfNotPresent
image.repositoryContainer image to useregistry
image.tagContainer image tag to deploy2.7.1
imagePullSecretsSpecify image pull secretsnil (does not add image pull secrets to deployed pods)
persistence.accessModeAccess mode to use for PVCReadWriteOnce
persistence.enabledWhether to use a PVC for the Docker storagefalse
persistence.deleteEnabledEnable the deletion of image blobs and manifests by digestnil
persistence.sizeAmount of space to claim for PVC10Gi
persistence.storageClassStorage Class to use for PVC-
persistence.existingClaimName of an existing PVC to use for confignil
service.portTCP port on which the service is exposed5000
service.typeservice typeClusterIP
service.clusterIPif service.type is ClusterIP and this is non-empty, sets the cluster IP of the servicenil
service.nodePortif service.type is NodePort and this is non-empty, sets the node port of the servicenil
`service.loadBalancerIPif service.type is LoadBalancer and this is non-empty, sets the loadBalancerIP of the servicenil
service.loadBalancerSourceRangesif service.type is LoadBalancer and this is non-empty, sets the loadBalancerSourceRanges of the servicenil
replicaCountk8s replicas1
updateStrategyupdate strategy for deployment{}
podAnnotationsAnnotations for pod{}
podLabelsLabels for pod{}
podDisruptionBudgetPod disruption budget{}
resources.limits.cpuContainer requested CPUnil
resources.limits.memoryContainer requested memorynil
priorityClassName priorityClassName""
storageStorage system to usefilesystem
tlsSecretNameName of secret for TLS certsnil
secrets.htpasswdHtpasswd authenticationnil
secrets.s3.accessKeyAccess Key for S3 configurationnil
secrets.s3.secretKeySecret Key for S3 configurationnil
secrets.swift.usernameUsername for Swift configurationnil
secrets.swift.passwordPassword for Swift configurationnil
haSharedSecretShared secret for Registrynil
configDataConfiguration hash for dockernil
s3.regionS3 regionnil
s3.regionEndpointS3 region endpointnil
s3.bucketS3 bucket namenil
s3.encryptStore images in encrypted formatnil
s3.secureUse HTTPSnil
swift.authurlSwift authurlnil
swift.containerSwift containernil
nodeSelectornode labels for pod assignment{}
affinityaffinity settings{}
tolerationspod tolerations[]
ingress.enabledIf true, Ingress will be createdfalse
ingress.annotationsIngress annotations{}
ingress.labelsIngress labels{}
ingress.pathIngress service path/
ingress.hostsIngress hostnames[]
ingress.tlsIngress TLS configuration (YAML)[]
extraVolumeMountsAdditional volumeMounts to the registry container[]
extraVolumesAdditional volumes to the pod[]

Specify each parameter using the --set key=value[,key=value] argument to helm install.

To generate htpasswd file, run this docker command: docker run --entrypoint htpasswd registry:2 -Bbn user password > ./htpasswd.