Example:
spec:
template:
spec:
containers:
- name: prometheus-auth-proxy
image: flant/kube-prometheus-auth-proxy:v0.1.0
args:
- "--listen=9000"
- "--proxy-pass=http://localhost:9001/metrics"
If you run your pod in hostNetwork, better listen on podIP:
spec:
template:
spec:
containers:
- name: prometheus-auth-proxy
image: flant/kube-prometheus-auth-proxy:v0.1.0
args:
- "--listen=$(MY_POD_IP):9000"
- "--proxy-pass=http://localhost:9001/metrics"
env:
- name: MY_POD_IP
valueFrom:
fieldRef:
fieldPath: status.podIP
Content type
Image
Digest
Size
7.8 MB
Last updated
almost 8 years ago
docker pull zuzzas/kube-prometheus-auth-proxy:proxy_ssl_certificates