Add prometheus annotations to spec in ingress
Added annotations from metadata to spec.template.metadata. Without it, pod does not get any annotations, and Prometheus didn't see itpull/2500/head
parent
8b6a6a5a28
commit
aa30fa8009
|
@ -20,6 +20,9 @@ spec:
|
|||
labels:
|
||||
k8s-app: ingress-nginx
|
||||
version: v{{ ingress_nginx_controller_image_tag }}
|
||||
annotations:
|
||||
prometheus.io/port: '10254'
|
||||
prometheus.io/scrape: 'true'
|
||||
spec:
|
||||
containers:
|
||||
- name: ingress-nginx-controller
|
||||
|
|
Loading…
Reference in New Issue