0bf2e746dd
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>
55 lines
1.3 KiB
YAML
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
|