registry-mirrors

by serge.logvinov

Helm chartv2.0.21App v2.1.23Verified publisher

Container registry mirror

About this chart

registry-mirrors

Container registry mirror

Homepage: https://github.com/sergelogvinov/helm-charts

Maintainers

NameEmailUrl
sergelogvinovhttps://github.com/sergelogvinov

Source Code

Example:

auth:
  tls: true

# Registry by default:
mirrors:
  - host: docker.io
    source: https://registry-1.docker.io
  - host: gcr.io
    source: https://gcr.io
  - host: ghcr.io
    source: https://ghcr.io
  - host: registry.k8s.io
    source: https://registry.k8s.io

ingress:
  enabled: true
  hosts:
    - host: mirrors.example.com
      path: /

Talos machine config

machine:
  registries:
    config:
      mirrors.example.com:
        tls:
          clientIdentity:
            crt: BASE64-crt
            key: BASE64-key
    mirrors:
      docker.io:
        overridePath: true
        endpoints:
          - https://mirrors.example.com/v2/docker-io
      gcr.io:
        overridePath: true
        endpoints:
          - https://mirrors.example.com/v2/gcr-io
      ghcr.io:
        overridePath: true
        endpoints:
          - https://mirrors.example.com/v2/ghcr-io
      registry.k8s.io:
        overridePath: true
        endpoints:
          - https://mirrors.example.com/v2/registry-k8s-io

Values

KeyTypeDefaultDescription
replicaCountint1
image.repositorystring"ghcr.io/project-zot/zot"
image.pullPolicystring"IfNotPresent"
image.tagstring""
imagePullSecretslist[]
nameOverridestring""
fullnameOverridestring""
authobject{"tls":false}Mirror tls auth
mirrorslist[{"host":"docker.io","source":"https://registry-1.docker.io"},{"host":"quay.io","source":"https://quay.io"},{"host":"gcr.io","source":"https://gcr.io"},{"host":"ghcr.io","source":"https://ghcr.io"},{"host":"registry.k8s.io","source":"https://registry.k8s.io"}]Container mirrors
serviceAccountobject{"annotations":{},"create":false,"name":""}Pods Service Account. ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/
podAnnotationsobject{}Annotations for pod. ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
podSecurityContextobject{"fsGroup":65534,"fsGroupChangePolicy":"OnRootMismatch","runAsGroup":65534,"runAsNonRoot":true,"runAsUser":65534}Pod Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"runAsGroup":65534,"runAsUser":65534,"seccompProfile":{"type":"RuntimeDefault"}}Container Security Context. ref: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-pod
serviceobject{"ipFamilies":["IPv4"],"port":80,"type":"ClusterIP"}Service parameters ref: https://kubernetes.io/docs/user-guide/services/
ingressobject{"annotations":{},"className":"","enabled":false,"hosts":[{"host":"chart-example.local","path":"/"}],"tls":[]}Mirror ingress parameters ref: http://kubernetes.io/docs/user-guide/ingress/
resourcesobject{"limits":{"cpu":1},"requests":{"cpu":"100m","memory":"512Mi"}}Resource requests and limits. ref: https://kubernetes.io/docs/user-guide/compute-resources/
persistenceobject{"accessModes":["ReadWriteOnce"],"annotations":{},"size":"1Gi"}Persistence parameters ref: https://kubernetes.io/docs/user-guide/persistent-volumes/
updateStrategyobject{"type":"RollingUpdate"}pod deployment update strategy type. ref: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#updating-a-deployment
nodeSelectorobject{}Node labels for pod assignment. ref: https://kubernetes.io/docs/user-guide/node-selection/
tolerationslist[]Tolerations for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
affinityobject{}Affinity for pod assignment. ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity

Deploy registry-mirrors with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has registry-mirrors 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 chartregistry-mirrors is pinned at v2.0.21 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