diff --git a/stable/prometheus-node-exporter/Chart.yaml b/stable/prometheus-node-exporter/Chart.yaml index a77f85f47a..2f891c9da6 100644 --- a/stable/prometheus-node-exporter/Chart.yaml +++ b/stable/prometheus-node-exporter/Chart.yaml @@ -1,8 +1,8 @@ apiVersion: v1 -appVersion: "0.15.2" +appVersion: "0.16.0" description: A Helm chart for prometheus node-exporter name: prometheus-node-exporter -version: 0.3.0 +version: 0.4.0 home: https://github.com/prometheus/node_exporter/ sources: - https://github.com/prometheus/node_exporter/ diff --git a/stable/prometheus-node-exporter/README.md b/stable/prometheus-node-exporter/README.md index ac31317811..b6b712aed8 100644 --- a/stable/prometheus-node-exporter/README.md +++ b/stable/prometheus-node-exporter/README.md @@ -39,7 +39,7 @@ The following table lists the configurable parameters of the Node Exporter chart | Parameter | Description | Default | | | --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- | --- | | `image.repository` | Image repository | `quay.io/prometheus/node-exporter` | | -| `image.tag` | Image tag | `v0.15.2` | | +| `image.tag` | Image tag | `v0.16.0` | | | `image.pullPolicy` | Image pull policy | `IfNotPresent` | | | `extraArgs` | Additional container arguments | `[]` | | | `podLabels` | Additional labels to be added to pods | {} | | @@ -49,6 +49,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.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 | | | | `serviceAccount.imagePullSecrets` | Specify image pull secrets | `[]` | | diff --git a/stable/prometheus-node-exporter/templates/_helpers.tpl b/stable/prometheus-node-exporter/templates/_helpers.tpl index c9c9e086d8..4f0e2dfe91 100644 --- a/stable/prometheus-node-exporter/templates/_helpers.tpl +++ b/stable/prometheus-node-exporter/templates/_helpers.tpl @@ -52,4 +52,4 @@ Create the name of the service account to use {{- else -}} {{ default "default" .Values.serviceAccount.name }} {{- end -}} -{{- end -}} \ No newline at end of file +{{- end -}} diff --git a/stable/prometheus-node-exporter/templates/service.yaml b/stable/prometheus-node-exporter/templates/service.yaml index 8d272956be..3bb47956dc 100644 --- a/stable/prometheus-node-exporter/templates/service.yaml +++ b/stable/prometheus-node-exporter/templates/service.yaml @@ -2,6 +2,10 @@ apiVersion: v1 kind: Service metadata: name: {{ template "prometheus-node-exporter.fullname" . }} +{{- if .Values.service.annotations }} + annotations: +{{ toYaml .Values.service.annotations | indent 4 }} +{{- end }} labels: {{ include "prometheus-node-exporter.labels" . | indent 4 }} spec: type: {{ .Values.service.type }} diff --git a/stable/prometheus-node-exporter/values.yaml b/stable/prometheus-node-exporter/values.yaml index 18a6693c7c..effe0b42da 100644 --- a/stable/prometheus-node-exporter/values.yaml +++ b/stable/prometheus-node-exporter/values.yaml @@ -3,13 +3,15 @@ # Declare variables to be passed into your templates. image: repository: quay.io/prometheus/node-exporter - tag: v0.15.2 + tag: v0.16.0 pullPolicy: IfNotPresent service: type: ClusterIP port: 9100 targetPort: 9100 + annotations: + prometheus.io/scrape: "true" resources: {} # We usually recommend not to specify default resources and to leave this as a conscious