Files
k8s-manifests/registry-cache/deployment-registry-cache.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://mirror.gcr.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