33 lines
682 B
YAML
33 lines
682 B
YAML
|
|
# services/zot/configmap.yaml
|
||
|
|
apiVersion: v1
|
||
|
|
kind: ConfigMap
|
||
|
|
metadata:
|
||
|
|
name: zot-config
|
||
|
|
namespace: zot
|
||
|
|
data:
|
||
|
|
config.json: |
|
||
|
|
{
|
||
|
|
"storage": { "rootDirectory": "/var/lib/registry" },
|
||
|
|
"http": {
|
||
|
|
"address": "0.0.0.0",
|
||
|
|
"port": "5000",
|
||
|
|
"auth": {
|
||
|
|
"htpasswd": {
|
||
|
|
"path": "/etc/zot/htpasswd",
|
||
|
|
"realm": "zot"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"accessControl": {
|
||
|
|
"repositories": [
|
||
|
|
{
|
||
|
|
"pattern": "**",
|
||
|
|
"policies": [
|
||
|
|
{ "users": ["*"], "actions": ["read"] }
|
||
|
|
]
|
||
|
|
}
|
||
|
|
]
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"log": { "level": "info" }
|
||
|
|
}
|