Skip to content

Commit

Permalink
[prometheus-adapter] Allow configuration of ipFamilyPolicy (#3698)
Browse files Browse the repository at this point in the history
Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
  • Loading branch information
dongjiang1989 committed Aug 18, 2023
1 parent dc4bae4 commit 84e6b12
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/prometheus-adapter/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: prometheus-adapter
version: 4.3.1
version: 4.4.0
appVersion: v0.11.0
description: A Helm chart for k8s prometheus adapter
home: https://github.com/kubernetes-sigs/prometheus-adapter
Expand Down
4 changes: 4 additions & 0 deletions charts/prometheus-adapter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ metadata:
name: {{ template "k8s-prometheus-adapter.fullname" . }}
namespace: {{ include "k8s-prometheus-adapter.namespace" . }}
spec:
{{- if .Values.service.ipDualStack.enabled }}
ipFamilies: {{ toYaml .Values.service.ipDualStack.ipFamilies | nindent 4 }}
ipFamilyPolicy: {{ .Values.service.ipDualStack.ipFamilyPolicy }}
{{- end }}
ports:
- port: {{ .Values.service.port }}
protocol: TCP
Expand Down
5 changes: 4 additions & 1 deletion charts/prometheus-adapter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ service:
port: 443
type: ClusterIP
# clusterIP: 1.2.3.4

ipDualStack:
enabled: false
ipFamilies: ["IPv6", "IPv4"]
ipFamilyPolicy: "PreferDualStack"
tls:
enable: false
ca: |-
Expand Down

0 comments on commit 84e6b12

Please sign in to comment.