titan-iac/services/zot/configmap.yaml

60 lines
1.5 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",
2025-09-15 01:03:32 -05:00
"compat": ["docker2s2"],
2025-09-08 23:08:32 -05:00
"auth": {
"openid": {
2025-12-08 23:36:19 -03:00
"providers": {
2025-12-09 01:29:05 -03:00
"oidc": {
"issuer": "https://sso.bstein.dev/realms/atlas",
"clientID": "oauth2-proxy",
"clientSecret": "__CLIENT_SECRET__",
2025-12-09 01:15:53 -03:00
"scopes": ["openid", "profile", "email", "groups"]
}
2025-12-08 23:36:19 -03:00
}
}
2025-09-08 23:08:32 -05:00
},
"externalUrl": "https://registry.bstein.dev",
2025-08-13 17:21:23 -05:00
"accessControl": {
2025-08-13 18:09:28 -05:00
"repositories": {
2025-09-09 11:27:42 -05:00
"**": {
"policies": [],
"defaultPolicy": [
{ "actions": ["read", "create", "update", "delete"] }
2025-09-09 01:16:33 -05:00
],
"anonymousPolicy": [
{ "actions": ["read", "create", "update", "delete"] }
]
2025-08-13 17:21:23 -05:00
}
2025-08-13 20:37:20 -05:00
},
"adminPolicy": {
"groups": ["admin"],
2025-08-13 20:37:20 -05:00
"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
},
"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
}