Skip to content

Commit

Permalink
Feat(blackbox):
Browse files Browse the repository at this point in the history
Add nodeport option to values
  • Loading branch information
yaskinny committed Oct 17, 2024
1 parent f683f27 commit 41aa555
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-blackbox-exporter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
description: Prometheus Blackbox Exporter
name: prometheus-blackbox-exporter
version: 9.0.1
version: 9.0.2
appVersion: v0.25.0
kubeVersion: ">=1.21.0-0"
home: https://github.com/prometheus/blackbox_exporter
Expand Down
6 changes: 6 additions & 0 deletions charts/prometheus-blackbox-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,17 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- if and .Values.service.nodePort ( eq .Values.service.type "NodePort" ) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
{{ if .Values.configReloader.enabled }}
- port: {{ .Values.configReloader.service.port }}
targetPort: reloader-web
protocol: TCP
name: reloader-web
{{- if and .Values.configReloader.service.nodePort ( eq .Values.service.type "NodePort" ) }}
nodePort: {{ .Values.configReloader.service.nodePort }}
{{- end }}
{{- end }}
{{- if .Values.service.externalIPs }}
externalIPs:
Expand Down
2 changes: 2 additions & 0 deletions charts/prometheus-blackbox-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ service:
labels: {}
type: ClusterIP
port: 9115
# nodePort: 32123
ipDualStack:
enabled: false
ipFamilies: ["IPv6", "IPv4"]
Expand Down Expand Up @@ -467,6 +468,7 @@ configReloader:
scheme: HTTP
service:
port: 8080
# nodePort: 32124
serviceMonitor:
selfMonitor:
additionalMetricsRelabels: {}
Expand Down

0 comments on commit 41aa555

Please sign in to comment.