Files
kube-prometheus/manifests/examples/basic-auth/service-monitor.yaml
Giancarlo Rubio 64c959e018 Add ability to authenticate an endpoint
Write an example for basic auth
2017-05-08 15:12:08 +02:00

22 lines
414 B
YAML

apiVersion: monitoring.coreos.com/v1alpha1
kind: ServiceMonitor
metadata:
labels:
k8s-apps: basic-auth-example
name: basic-auth-example
spec:
endpoints:
- basicAuth:
password:
key: basic-auth
name: password
username:
key: basic-auth
name: user
port: metrics
namespaceSelector:
matchNames:
- logging
selector:
matchLabels:
app: myapp