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 it
This commit is contained in:
parent
8b6a6a5a28
commit
aa30fa8009
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue