zot: restore main branch config

This commit is contained in:
Brad Stein 2025-12-11 17:26:15 -03:00
parent cb2b2ec1cd
commit 319b515882
2 changed files with 26 additions and 1 deletions

View File

@ -18,7 +18,25 @@ data:
"address": "0.0.0.0",
"port": "5000",
"realm": "zot-registry",
"compat": ["docker2s2"]
"compat": ["docker2s2"],
"auth": {
"htpasswd": { "path": "/etc/zot/htpasswd" }
},
"accessControl": {
"repositories": {
"**": {
"policies": [
{ "users": ["bstein"], "actions": ["read", "create", "update", "delete"] }
],
"defaultPolicy": [],
"anonymousPolicy": []
}
},
"adminPolicy": {
"users": ["bstein"],
"actions": ["read", "create", "update", "delete"]
}
}
},
"log": { "level": "info" },
"extensions": {

View File

@ -42,6 +42,10 @@ spec:
mountPath: /etc/zot/config.json
subPath: config.json
readOnly: true
- name: htpasswd
mountPath: /etc/zot/htpasswd
subPath: htpasswd
readOnly: true
- name: zot-data
mountPath: /var/lib/registry
readinessProbe:
@ -60,6 +64,9 @@ spec:
- name: cfg
configMap:
name: zot-config
- name: htpasswd
secret:
secretName: zot-htpasswd
- name: zot-data
persistentVolumeClaim:
claimName: zot-data