Files
k8s-manifests/registry-cache/deployment-registry-cache.yaml
T
chemavx 0bf2e746dd feat(registry-cache): add Docker Hub pull-through cache + dind mirror config
Deploy registry:2 as Docker Hub pull-through cache on chemavx-k8 (hostPort 5000,
ClusterIP 10.43.163.56:5000). Configures dind runner to use local mirror via
daemon.json to eliminate Docker Hub rate limit failures in CI/CD.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-22 11:35:43 +00:00

55 lines
1.3 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: registry-cache
namespace: registry-cache
labels:
app: registry-cache
spec:
replicas: 1
selector:
matchLabels:
app: registry-cache
template:
metadata:
labels:
app: registry-cache
spec:
nodeSelector:
kubernetes.io/hostname: chemavx-k8
containers:
- name: registry
image: registry:2
ports:
- containerPort: 5000
hostPort: 5000
env:
- name: REGISTRY_PROXY_REMOTEURL
value: https://registry-1.docker.io
- name: REGISTRY_PROXY_USERNAME
value: ""
- name: REGISTRY_PROXY_PASSWORD
value: ""
- name: REGISTRY_STORAGE_DELETE_ENABLED
value: "true"
volumeMounts:
- name: registry-storage
mountPath: /var/lib/registry
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: "1"
memory: 1Gi
readinessProbe:
httpGet:
path: /v2/
port: 5000
initialDelaySeconds: 5
periodSeconds: 10
volumes:
- name: registry-storage
persistentVolumeClaim:
claimName: registry-cache-pvc