Skip to content
Snippets Groups Projects
Unverified Commit aa30fa80 authored by gorazio's avatar gorazio Committed by GitHub
Browse files

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
parent 8b6a6a5a
Branches
Tags
No related merge requests found
...@@ -20,6 +20,9 @@ spec: ...@@ -20,6 +20,9 @@ spec:
labels: labels:
k8s-app: ingress-nginx k8s-app: ingress-nginx
version: v{{ ingress_nginx_controller_image_tag }} version: v{{ ingress_nginx_controller_image_tag }}
annotations:
prometheus.io/port: '10254'
prometheus.io/scrape: 'true'
spec: spec:
containers: containers:
- name: ingress-nginx-controller - name: ingress-nginx-controller
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment