0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2025-01-06 22:40:28 -05:00
zot/examples/metrics/kubernetes/zot-extended/deployment.yaml
Alexei Dodon 12227b4484
fix: quick metrics setup in kind with prometheus (#1897)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
2023-10-16 11:51:00 +03:00

93 lines
1.8 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: zot-extended
labels:
app: zot-extended
spec:
replicas: 1
selector:
matchLabels:
app: zot-extended
template:
metadata:
labels:
app: zot-extended
spec:
containers:
- name: zot-extended
image: zot-build:latest
imagePullPolicy: IfNotPresent
command: ["/usr/bin/zot"]
args: ["serve", "/zot-config/config.json"]
ports:
- name: zot-extended
containerPort: 5000
protocol: TCP
volumeMounts:
- name: zot-config
mountPath: /zot-config
readOnly: false
volumes:
- name: zot-config
configMap:
name: zot-config
items:
- key: zot_config.json
path: config.json
---
apiVersion: v1
kind: ConfigMap
metadata:
name: zot-config
data:
zot_config.json: |
{
"distSpecVersion":"1.0.1",
"storage": {
"rootDirectory": "/var/lib/registry"
},
"http": {
"address": "0.0.0.0",
"port": "5000"
},
"log": {
"level": "debug"
},
"extensions": {
"metrics": {
"enable": true,
"prometheus": {
"path": "/metrics"
}
}
}
}
zot_minimal.json: |
{
"distSpecVersion":"1.0.1",
"storage": {
"rootDirectory": "/var/lib/registry"
},
"http": {
"address": "0.0.0.0",
"port": "5050"
},
"log": {
"level": "debug"
}
}
zxp.json: |
{
"Server": {
"protocol": "http",
"host": "127.0.0.1",
"port": "5050"
},
"Exporter": {
"port": "5051",
"log": {
"level": "debug"
}
}
}