Skip to content

Commit

Permalink
node-local-dns: make prometheus scraping optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
ami-descope committed Sep 22, 2023
1 parent 64a827d commit 61bd75d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion stable/node-local-dns/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ metadata:
namespace: kube-system
labels:
{{- include "node-local-dns.labels" . | nindent 4 }}
{{- if not .Values.serviceMonitor.enabled }}

{{- if and (not .Values.serviceMonitor.enabled) .Values.prometheusScraping.enabled }}
annotations:
prometheus.io/port: "9253"
prometheus.io/scrape: "true"
Expand Down
3 changes: 3 additions & 0 deletions stable/node-local-dns/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,6 @@ affinity: {}

imagePullSecrets: []
# - name: "image-pull-secret"

prometheusScraping:
enabled: true

0 comments on commit 61bd75d

Please sign in to comment.