0
Fork 0
mirror of https://github.com/project-zot/zot.git synced 2024-12-30 22:34:13 -05:00
zot/examples/metrics/kubernetes/zot-extended/servicemonitor.yaml
Alexei Dodon f867819d63
ci(nightly): add prometheus kind test (#1940)
Signed-off-by: Alexei Dodon <adodon@cisco.com>
2023-11-15 09:51:03 -08:00

31 lines
544 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: zot-extended
labels:
app: zot-extended
spec:
endpoints:
- interval: 10s
port: zot-extended
scrapeTimeout: 5s
basicAuth:
password:
name: basic-auth
key: password
username:
name: basic-auth
key: user
selector:
matchLabels:
app: zot-extended
---
apiVersion: v1
kind: Secret
metadata:
name: basic-auth
data:
password: bWV0cmljcw== # metrics
user: bWV0cmljcw== # metrics
type: Opaque