titan-iac/services/zot/configmap.yaml

54 lines
1.4 KiB
YAML
Raw Normal View History

2025-08-13 20:37:20 -05:00
# services/zot/config.map
2025-08-13 17:21:23 -05:00
apiVersion: v1
kind: ConfigMap
metadata:
name: zot-config
namespace: zot
data:
config.json: |
{
2025-08-13 19:57:26 -05:00
"storage": {
"rootDirectory": "/var/lib/registry",
"dedupe": true,
"gc": true,
"gcDelay": "1h",
2025-08-13 20:37:20 -05:00
"gcInterval": "1h"
2025-08-13 19:57:26 -05:00
},
2025-08-13 17:21:23 -05:00
"http": {
"address": "0.0.0.0",
"port": "5000",
2025-09-08 23:08:32 -05:00
"realm": "zot-registry",
"auth": {
"htpasswd": { "path": "/etc/zot/htpasswd" }
},
2025-08-13 17:21:23 -05:00
"accessControl": {
2025-08-13 18:09:28 -05:00
"repositories": {
2025-09-09 01:16:33 -05:00
"pegasus": {
"policies": [
{ "users": ["bstein"], "actions": ["read", "create", "update", "delete"] }
],
"defaultPolicy": [],
"anonymousPolicy": []
},
2025-08-13 18:09:28 -05:00
"**": {
2025-08-13 20:37:20 -05:00
"policies": [
{ "users": ["bstein"], "actions": ["read", "create", "update", "delete"] }
],
2025-09-08 23:08:32 -05:00
"defaultPolicy": ["read"],
2025-08-13 20:37:20 -05:00
"anonymousPolicy": ["read"]
2025-08-13 17:21:23 -05:00
}
2025-08-13 20:37:20 -05:00
},
"adminPolicy": {
"users": ["bstein"],
"actions": ["read", "create", "update", "delete"]
2025-08-13 18:09:28 -05:00
}
2025-08-13 17:21:23 -05:00
}
2025-08-13 19:57:26 -05:00
},
2025-09-08 22:25:41 -05:00
"log": { "level": "debug" },
2025-08-13 19:57:26 -05:00
"extensions": {
2025-09-08 23:08:32 -05:00
"ui": { "enable": true },
"search": { "enable": true },
2025-08-13 20:37:20 -05:00
"metrics": { "enable": true }
2025-08-13 18:09:28 -05:00
}
2025-08-13 17:21:23 -05:00
}