awx-on-k3s/registry/deployment.yaml
2023-01-24 22:29:57 +09:00

36 lines
814 B
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: registry
labels:
app: registry
spec:
replicas: 1
selector:
matchLabels:
app: registry
template:
metadata:
labels:
app: registry
spec:
containers:
- name: registry
image: registry:latest
ports:
- containerPort: 5000
protocol: TCP
volumeMounts:
- name: registry-volume
mountPath: /var/lib/registry
- name: registry-config
mountPath: /etc/docker/registry
volumes:
- name: registry-volume
persistentVolumeClaim:
claimName: registry-claim
- name: registry-config
configMap:
defaultMode: 420
name: registry-configmap