2025-08-13 15:58:51 -05:00
|
|
|
# services/zot/deployment.yaml
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: zot
|
|
|
|
|
namespace: zot
|
|
|
|
|
labels: { app: zot }
|
|
|
|
|
spec:
|
|
|
|
|
replicas: 1
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels: { app: zot }
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels: { app: zot }
|
|
|
|
|
spec:
|
|
|
|
|
nodeSelector:
|
|
|
|
|
kubernetes.io/arch: arm64
|
|
|
|
|
containers:
|
|
|
|
|
- name: zot
|
2025-08-13 17:21:23 -05:00
|
|
|
image: ghcr.io/project-zot/zot-linux-arm64:latest
|
|
|
|
|
imagePullPolicy: IfNotPresent
|
2025-08-13 15:58:51 -05:00
|
|
|
args: ["serve", "/etc/zot/config.json"]
|
|
|
|
|
ports:
|
2025-08-13 17:21:23 -05:00
|
|
|
- { name: http, containerPort: 5000 }
|
2025-08-13 15:58:51 -05:00
|
|
|
volumeMounts:
|
2025-08-13 17:21:23 -05:00
|
|
|
- name: cfg
|
|
|
|
|
mountPath: /etc/zot/config.json
|
|
|
|
|
subPath: config.json
|
|
|
|
|
readOnly: true
|
|
|
|
|
- name: htpasswd
|
|
|
|
|
mountPath: /etc/zot/htpasswd
|
|
|
|
|
subPath: htpasswd
|
|
|
|
|
readOnly: true
|
2025-08-13 15:58:51 -05:00
|
|
|
- name: zot-data
|
|
|
|
|
mountPath: /var/lib/registry
|
|
|
|
|
readinessProbe:
|
2025-08-13 17:21:23 -05:00
|
|
|
httpGet:
|
|
|
|
|
path: /v2/
|
|
|
|
|
port: http
|
2025-08-13 15:58:51 -05:00
|
|
|
initialDelaySeconds: 5
|
|
|
|
|
periodSeconds: 10
|
2025-08-13 17:21:23 -05:00
|
|
|
livenessProbe:
|
|
|
|
|
httpGet:
|
|
|
|
|
path: /v2/
|
|
|
|
|
port: http
|
|
|
|
|
initialDelaySeconds: 15
|
|
|
|
|
periodSeconds: 20
|
2025-08-13 15:58:51 -05:00
|
|
|
resources:
|
|
|
|
|
requests:
|
2025-08-13 17:21:23 -05:00
|
|
|
cpu: 50m
|
|
|
|
|
memory: 64Mi
|
2025-08-13 15:58:51 -05:00
|
|
|
volumes:
|
2025-08-13 17:21:23 -05:00
|
|
|
- name: cfg
|
|
|
|
|
configMap:
|
|
|
|
|
name: zot-config
|
|
|
|
|
items:
|
|
|
|
|
- key: config.json
|
|
|
|
|
path: config.json
|
|
|
|
|
- name: htpasswd
|
|
|
|
|
secret:
|
|
|
|
|
secretName: zot-htpasswd
|
2025-08-13 15:58:51 -05:00
|
|
|
- name: zot-data
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: zot-data
|
2025-08-13 17:21:23 -05:00
|
|
|
|
2025-08-13 15:58:51 -05:00
|
|
|
|