Skip to content

Commit

Permalink
feat(node-exporter): permit to customize clusterIP
Browse files Browse the repository at this point in the history
It permits to disable clusterIP which is not required to fetch metrics. On cluster with very huge node number always moving, it create a loadbalancer on each node using much memory and CPU due to watches from the service proxy
  • Loading branch information
nerzhul authored Jun 7, 2024
1 parent 472073d commit 698cb04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/prometheus-node-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ spec:
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
type: {{ .Values.service.type }}
{{- if eq .Values.service.type "ClusterIP" }}
clusterIP: "{{ .Values.service.clusterIP }}"
{{- end }}
ports:
- port: {{ .Values.service.port }}
{{- if ( and (eq .Values.service.type "NodePort" ) (not (empty .Values.service.nodePort)) ) }}
Expand Down
1 change: 1 addition & 0 deletions charts/prometheus-node-exporter/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ kubeRBACProxy:
service:
enabled: true
type: ClusterIP
clusterIP: ""
port: 9100
targetPort: 9100
nodePort:
Expand Down

0 comments on commit 698cb04

Please sign in to comment.