Skip to content

Commit

Permalink
Allow selecting the service's ClusterIP (#375)
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).

Signed-off-by: Remi Rampin <remi@rampin.org>
  • Loading branch information
remram44 authored Oct 30, 2024
1 parent 4cc1d19 commit 0a543e1
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 0a543e1

Please sign in to comment.