Files
operator/charts/apps/zot/templates/config-map.yaml
Morten Olsen 5e2456bea7 add registry
2025-09-10 10:35:46 +02:00

83 lines
1.9 KiB
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: {{ .Release.Name }}-config-template
data:
secrets.tpl.json: |
{
"clientid": "${CLIENT_ID}",
"clientsecret": "${CLIENT_SECRET}"
}
config.tpl.json: |
{
"storage": {
"rootDirectory": "/var/lib/registry",
"commit": false,
"dedupe": true,
"gc": true,
"gcDelay": "1h",
"gcInterval": "24h"
},
"log": {
"level": "info"
},
"http": {
"address": "0.0.0.0",
"port": "5000",
"externalUrl": "https://{{ .Values.subdomain }}.{{ .Values.globals.domain }}",
"ratelimit": {
"rate": 10,
"methods": [
{
"method": "GET",
"rate": 20
}
]
},
"auth": {
"failDelay": 5,
"openid": {
"providers": {
"oidc": {
"name": "main",
"credentialsFile": "/etc/zot/secrets.json",
"issuer": "${ISSUER}",
"scopes": ["openid", "profile", "email"]
}
}
}
},
"accessControl": {
"adminPolicy": {
"groups": ["admin"],
"actions": ["read", "create", "update", "delete"]
},
"repositories": {
"**": {
"defaultPolicy": ["read"],
"policies": [
{
"users": ["*"],
"actions": ["push", "delete"]
}
]
}
}
}
},
"extensions": {
"ui": { "enable": true },
"metrics": { "enable": true },
"search": { "enable": true },
"scrub": {
"enable": true,
"interval": "24h"
},
"trust": {
"enable": true,
"cosign": true,
"notation": true
}
}
}