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", "address": "0.0.0.0",
"port": "5000", "port": "5000",
"realm": "zot-registry", "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" }, "log": { "level": "info" },
"extensions": { "extensions": {

View File

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