Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions deployment/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ spec:
clusterIP: {{ .Values.service.clusterIP | quote }}
{{- end }}
internalTrafficPolicy: {{ .Values.service.internalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
ports:
- name: "metrics"
port: {{ .Values.service.port }}
{{- if ( and (eq .Values.service.type "NodePort" ) (not (empty .Values.service.nodePort)) ) }}
nodePort: {{ .Values.service.nodePort }}
{{- end }}
targetPort: {{ .Values.service.port }}
protocol: TCP
selector:
Expand Down
6 changes: 5 additions & 1 deletion deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@ service:
# When enabled, the helm chart will create service
enable: true
type: ClusterIP
# Accepts either "Cluster" or "Local", choose Local if you want to route internal traffic within the node only
# Accepts either "Cluster" or "Local", more detail: https://kubernetes.io/docs/reference/networking/virtual-ips/#traffic-policies
# Choose Local if you want to route internal traffic within the node only
internalTrafficPolicy: Cluster
# Choose Local if you want to route external traffic to only route to ready node-local endpoints
externalTrafficPolicy: Cluster
clusterIP: ""
port: 9400
nodePort: null
address: ":9400"
# Annotations to add to the service
annotations: {}
Expand Down