Skip to content

Commit

Permalink
Allow selecting the service's ClusterIP
Browse files Browse the repository at this point in the history
This is mostly useful to be able to set it to "None", creating a
headless service that can be scraped using DNS discovery
(dns_sd_configs).
  • Loading branch information
remram44 committed Aug 14, 2024
1 parent 6d499c6 commit 578e7d7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deployment/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ metadata:
{{- end }}
spec:
type: {{ .Values.service.type }}
{{- if eq .Values.service.type "ClusterIP" }}
clusterIP: {{ .Values.service.clusterIP | quote }}
{{- end }}
ports:
- name: "metrics"
port: {{ .Values.service.port }}
Expand Down
1 change: 1 addition & 0 deletions deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ service:
# When enabled, the helm chart will create service
enable: true
type: ClusterIP
clusterIP: ""
port: 9400
address: ":9400"
# Annotations to add to the service
Expand Down

0 comments on commit 578e7d7

Please sign in to comment.