mirror of
https://github.com/helm/charts.git
synced 2026-08-23 14:27:18 +00:00
[stable/prometheus-node-exporter]Add support for nodePort (#9754)
* [stable/prometheus-node-exporter]Add support for nodePort Signed-off-by: Roger Makram <roger.makram@intelerad.com> * bump version to 1.0.0 since its stable needed to bump anyways as this isn't really a patch update. Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
e5ca17fce6
commit
611f050e87
@@ -2,7 +2,7 @@ apiVersion: v1
|
||||
appVersion: "0.17.0"
|
||||
description: A Helm chart for prometheus node-exporter
|
||||
name: prometheus-node-exporter
|
||||
version: 0.6.2
|
||||
version: 1.0.0
|
||||
home: https://github.com/prometheus/node_exporter/
|
||||
sources:
|
||||
- https://github.com/prometheus/node_exporter/
|
||||
|
||||
@@ -50,6 +50,7 @@ The following table lists the configurable parameters of the Node Exporter chart
|
||||
| `service.type` | Service type | `ClusterIP` | |
|
||||
| `service.port` | The service port | `9100` | |
|
||||
| `service.targetPort` | The target port of the container | `9100` | |
|
||||
| `service.nodePort` | The node port of the service | | |
|
||||
| `service.annotations` | Kubernetes service annotations | `{prometheus.io/scrape: "true"}` | |
|
||||
| `serviceAccount.create` | Specifies whether a service account should be created. | `true` | |
|
||||
| `serviceAccount.name` | Service account to be used. If not set and `serviceAccount.create` is `true`, a name is generated using the fullname template | | |
|
||||
|
||||
@@ -11,6 +11,9 @@ spec:
|
||||
type: {{ .Values.service.type }}
|
||||
ports:
|
||||
- port: {{ .Values.service.port }}
|
||||
{{- if ( and (eq .Values.service.type "NodePort" ) (not (empty .Values.service.nodePort)) ) }}
|
||||
nodePort: {{ .Values.service.nodePort }}
|
||||
{{- end }}
|
||||
targetPort: {{ .Values.service.targetPort }}
|
||||
protocol: TCP
|
||||
name: metrics
|
||||
|
||||
@@ -10,6 +10,7 @@ service:
|
||||
type: ClusterIP
|
||||
port: 9100
|
||||
targetPort: 9100
|
||||
nodePort:
|
||||
annotations:
|
||||
prometheus.io/scrape: "true"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user