added files for deployment

This commit is contained in:
2024-02-19 10:02:19 +01:00
parent 6909931d35
commit 2d892f7215
8 changed files with 125 additions and 4 deletions
+44
View File
@@ -0,0 +1,44 @@
# RegistryDeployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: registry
name: registry
namespace: distribution
spec:
replicas: 1
selector:
matchLabels:
run: registry
template:
metadata:
labels:
run: registry
spec:
nodeSelector:
node-type: worker
containers:
- name: registry
image: registry:2
ports:
- containerPort: 5000
env:
- name: REGISTRY_HTTP_TLS_CERTIFICATE
value: "/certs/tls.crt"
- name: REGISTRY_HTTP_TLS_KEY
value: "/certs/tls.key"
volumeMounts:
- name: registry-certs
mountPath: "/certs"
readOnly: true
- name: registry-data
mountPath: /var/lib/registry
subPath: registry
volumes:
- name: registry-certs
secret:
secretName: registry-cert
- name: registry-data
persistentVolumeClaim:
claimName: distribution-pvc