Skip to content
Snippets Groups Projects
Commit 7deb8420 authored by Mark Eisenblätter's avatar Mark Eisenblätter Committed by k8s-ci-robot
Browse files

calico-node: add prometheus annotations (#3645)

add prometheus annotations to calico-node if
calico_felix_prometheusmetricsenabled is enabled.

This will allow a kubernetes_sd to automaticly find the pods and start
scraping.
parent 5f7d5e1e
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,10 @@ spec:
# Mark pod as critical for rescheduling (Will have no effect starting with kubernetes 1.12)
scheduler.alpha.kubernetes.io/critical-pod: ''
kubespray.etcd-cert/serial: "{{ etcd_client_cert_serial }}"
{% if calico_felix_prometheusmetricsenabled %}
prometheus.io/scrape: 'true'
prometheus.io/port: "{{ calico_felix_prometheusmetricsport }}"
{% endif %}
spec:
{% if kube_version is version('v1.11.1', '>=') %}
priorityClassName: system-node-critical
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment