Skip to content

Commit

Permalink
[prometheus-smartctl-exporter] add support for dual stack clusters (#…
Browse files Browse the repository at this point in the history
…4609)

Signed-off-by: Ludovic Ortega <[email protected]>
  • Loading branch information
M0NsTeRRR authored Jun 18, 2024
1 parent 6f1bc9e commit f5e3955
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/prometheus-smartctl-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.9.0
version: 0.10.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-smartctl-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ metadata:
{{- include "prometheus-smartctl-exporter.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.ipDualStack.enabled }}
ipFamilies: {{ toYaml .Values.service.ipDualStack.ipFamilies | nindent 4 }}
ipFamilyPolicy: {{ .Values.service.ipDualStack.ipFamilyPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-smartctl-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,7 @@ affinity: {}
service:
type: ClusterIP
port: 80
ipDualStack:
enabled: false
ipFamilies: ["IPv6", "IPv4"]
ipFamilyPolicy: "PreferDualStack"

0 comments on commit f5e3955

Please sign in to comment.