This commit is contained in:
Brad Stein 2025-08-13 19:57:26 -05:00
parent 7dc20737bf
commit 071f40f01d
2 changed files with 19 additions and 25 deletions

View File

@ -1,4 +1,3 @@
# services/zot/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
@ -7,24 +6,31 @@ metadata:
data:
config.json: |
{
"storage": { "rootDirectory": "/var/lib/registry" },
"log": { "level": "info" },
"storage": {
"rootDirectory": "/var/lib/registry",
"dedupe": true,
"gc": true,
"gcDelay": "1h",
"gcInterval": "24h"
},
"http": {
"address": "0.0.0.0",
"port": "5000",
"auth": {
"htpasswd": {
"path": "/etc/zot/htpasswd"
}
"htpasswd": { "path": "/etc/zot/htpasswd" }
},
"accessControl": {
"repositories": {
"**": {
"anonymousPolicy": ["read"],
"defaultPolicy": ["read"],
"policies": []
"DefaultPolicy": ["read"],
"AnonymousPolicy": ["read"]
}
}
}
},
"log": { "level": "info" },
"extensions": {
"search": {},
"ui": {}
}
}

View File

@ -14,11 +14,10 @@ spec:
labels: { app: zot }
spec:
nodeSelector:
node-role.kubernetes.io/worker: "true"
kubernetes.io/arch: arm64
containers:
- name: zot
image: ghcr.io/project-zot/zot-linux-arm64:latest
imagePullPolicy: IfNotPresent
args: ["serve", "/etc/zot/config.json"]
ports:
- { name: http, containerPort: 5000 }
@ -34,33 +33,22 @@ spec:
- name: zot-data
mountPath: /var/lib/registry
readinessProbe:
httpGet:
path: /v2/
port: http
httpGet: { path: /v2/, port: http }
initialDelaySeconds: 5
periodSeconds: 10
livenessProbe:
httpGet:
path: /v2/
port: http
httpGet: { path: /v2/, port: http }
initialDelaySeconds: 15
periodSeconds: 20
resources:
requests:
cpu: 50m
memory: 64Mi
requests: { cpu: "50m", memory: "64Mi" }
volumes:
- name: cfg
configMap:
name: zot-config
items:
- key: config.json
path: config.json
- name: htpasswd
secret:
secretName: zot-htpasswd
- name: zot-data
persistentVolumeClaim:
claimName: zot-data