Skip to content

Commit

Permalink
[kube-prometheus-stack] make it possible to disable the coreDns expot…
Browse files Browse the repository at this point in the history
…er service and servicemonitor - same as kubeEtcd exporter (#4091)

Signed-off-by: Sebastian Gaiser <[email protected]>
Co-authored-by: Gabriel Martinez <[email protected]>
  • Loading branch information
sebastiangaiser and GMartinez-Sisti authored Dec 15, 2023
1 parent 9eb0319 commit 7215580
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 55.4.1
version: 55.5.0
appVersion: v0.70.0
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.coreDns.enabled .Values.kubernetesServiceMonitors.enabled }}
{{- if and .Values.coreDns.enabled .Values.coreDns.service.enabled .Values.kubernetesServiceMonitors.enabled }}
apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.coreDns.enabled .Values.kubernetesServiceMonitors.enabled }}
{{- if and .Values.coreDns.enabled .Values.coreDns.serviceMonitor.enabled .Values.kubernetesServiceMonitors.enabled }}
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
Expand Down
2 changes: 2 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1493,11 +1493,13 @@ kubeControllerManager:
coreDns:
enabled: true
service:
enabled: true
port: 9153
targetPort: 9153
# selector:
# k8s-app: kube-dns
serviceMonitor:
enabled: true
## Scrape interval. If not set, the Prometheus default scrape interval is used.
##
interval: ""
Expand Down

0 comments on commit 7215580

Please sign in to comment.