Skip to content

Commit 5cd7ce1

Browse files
author
robot
committed
robot: project prometheus-node-exporter chart upgrades from 4.6.0 to 4.49.2
Signed-off-by: robot <[email protected]>
1 parent ff527eb commit 5cd7ce1

24 files changed

+946
-182
lines changed

charts/prometheus-node-exporter/config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export USE_OPENSOURCE_CHART=false
44
export REPO_URL=https://prometheus-community.github.io/helm-charts
55
export REPO_NAME=prometheus-node-exporter
66
export CHART_NAME=prometheus-node-exporter
7-
export VERSION=4.6.0
7+
export VERSION=4.49.2
88

99
# pr, issue, none
1010
export UPGRADE_METHOD=pr
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
annotations:
2+
artifacthub.io/license: Apache-2.0
3+
artifacthub.io/links: |
4+
- name: Chart Source
5+
url: https://github.com/prometheus-community/helm-charts
16
apiVersion: v2
2-
appVersion: 1.3.1
7+
appVersion: 1.10.2
38
description: A Helm chart for prometheus node-exporter
49
home: https://github.com/prometheus/node_exporter/
510
keywords:
@@ -9,14 +14,19 @@ keywords:
914
maintainers:
1015
1116
name: gianrubio
17+
url: https://github.com/gianrubio
1218
1319
name: zanhsieh
20+
url: https://github.com/zanhsieh
21+
22+
name: zeritti
23+
url: https://github.com/zeritti
1424
name: prometheus-node-exporter
1525
sources:
1626
- https://github.com/prometheus/node_exporter/
1727
type: application
18-
version: 4.6.0
28+
version: 4.49.2
1929
dependencies:
2030
- name: prometheus-node-exporter
21-
version: "4.6.0"
31+
version: "4.49.2"
2232
repository: "https://prometheus-community.github.io/helm-charts"
Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
# Prometheus `Node Exporter`
1+
# Prometheus Node Exporter
22

33
Prometheus exporter for hardware and OS metrics exposed by *NIX kernels, written in Go with pluggable metric collectors.
44

5-
This chart bootstraps a prometheus [`Node Exporter`](http://github.com/prometheus/node_exporter) daemonset on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
5+
This chart bootstraps a Prometheus [Node Exporter](http://github.com/prometheus/node_exporter) daemonset on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
66

7-
## Get Repository Info
7+
## Usage
88

9-
```console
10-
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
11-
helm repo update
12-
```
9+
The chart is distributed as an [OCI Artifact](https://helm.sh/docs/topics/registries/) as well as via a traditional [Helm Repository](https://helm.sh/docs/topics/chart_repository/).
10+
11+
- OCI Artifact: `oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter`
12+
- Helm Repository: `https://prometheus-community.github.io/helm-charts` with chart `prometheus-node-exporter`
1313

14-
_See [`helm repo`](https://helm.sh/docs/helm/helm_repo/) for command documentation._
14+
The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository.
1515

16-
## Install Chart
16+
### Install Chart
1717

1818
```console
19-
helm install [RELEASE_NAME] prometheus-community/prometheus-node-exporter
19+
helm install [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter
2020
```
2121

2222
_See [configuration](#configuring) below._
2323

2424
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
2525

26-
## Uninstall Chart
26+
### Uninstall Chart
2727

2828
```console
2929
helm uninstall [RELEASE_NAME]
@@ -33,15 +33,15 @@ This removes all the Kubernetes components associated with the chart and deletes
3333

3434
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
3535

36-
## Upgrading Chart
36+
### Upgrading Chart
3737

3838
```console
39-
helm upgrade [RELEASE_NAME] [CHART] --install
39+
helm upgrade [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter --install
4040
```
4141

4242
_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._
4343

44-
### 3.x to 4.x
44+
#### 3.x to 4.x
4545

4646
Starting from version 4.0.0, the `node exporter` chart is using the [Kubernetes recommended labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/). Therefore you have to delete the daemonset before you upgrade.
4747

@@ -50,9 +50,9 @@ kubectl delete daemonset -l app=prometheus-node-exporter
5050
helm upgrade -i prometheus-node-exporter prometheus-community/prometheus-node-exporter
5151
```
5252

53-
If you use your own custom [ServiceMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitor) or [PodMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#podmonitor), please ensure to upgrade their `selector` fields accordingly to the new labels.
53+
If you use your own custom [ServiceMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor) or [PodMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#podmonitor), please ensure to upgrade their `selector` fields accordingly to the new labels.
5454

55-
### From 2.x to 3.x
55+
#### From 2.x to 3.x
5656

5757
Change the following:
5858

@@ -73,5 +73,24 @@ hostRootFsMount:
7373
See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands:
7474
7575
```console
76-
helm show values prometheus-community/prometheus-node-exporter
76+
helm show values oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter
7777
```
78+
79+
### kube-rbac-proxy
80+
81+
You can enable `prometheus-node-exporter` endpoint protection using `kube-rbac-proxy`. By setting `kubeRBACProxy.enabled: true`, this chart will deploy a RBAC proxy container protecting the node-exporter endpoint.
82+
To authorize access, authenticate your requests (via a `ServiceAccount` for example) with a `ClusterRole` attached such as:
83+
84+
```yaml
85+
apiVersion: rbac.authorization.k8s.io/v1
86+
kind: ClusterRole
87+
metadata:
88+
name: prometheus-node-exporter-read
89+
rules:
90+
- apiGroups: [ "" ]
91+
resources: ["services/node-exporter-prometheus-node-exporter"]
92+
verbs:
93+
- get
94+
```
95+
96+
See [kube-rbac-proxy examples](https://github.com/brancz/kube-rbac-proxy/tree/master/examples/resource-attributes) for more details.

charts/prometheus-node-exporter/prometheus-node-exporter/charts/prometheus-node-exporter/.helmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@
1919
.project
2020
.idea/
2121
*.tmproj
22+
23+
ci/
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
1+
annotations:
2+
artifacthub.io/license: Apache-2.0
3+
artifacthub.io/links: |
4+
- name: Chart Source
5+
url: https://github.com/prometheus-community/helm-charts
16
apiVersion: v2
2-
appVersion: 1.3.1
7+
appVersion: 1.10.2
38
description: A Helm chart for prometheus node-exporter
49
home: https://github.com/prometheus/node_exporter/
510
keywords:
@@ -9,10 +14,15 @@ keywords:
914
maintainers:
1015
1116
name: gianrubio
17+
url: https://github.com/gianrubio
1218
1319
name: zanhsieh
20+
url: https://github.com/zanhsieh
21+
22+
name: zeritti
23+
url: https://github.com/zeritti
1424
name: prometheus-node-exporter
1525
sources:
1626
- https://github.com/prometheus/node_exporter/
1727
type: application
18-
version: 4.6.0
28+
version: 4.49.2
Lines changed: 36 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
# Prometheus `Node Exporter`
1+
# Prometheus Node Exporter
22

33
Prometheus exporter for hardware and OS metrics exposed by *NIX kernels, written in Go with pluggable metric collectors.
44

5-
This chart bootstraps a prometheus [`Node Exporter`](http://github.com/prometheus/node_exporter) daemonset on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
5+
This chart bootstraps a Prometheus [Node Exporter](http://github.com/prometheus/node_exporter) daemonset on a [Kubernetes](http://kubernetes.io) cluster using the [Helm](https://helm.sh) package manager.
66

7-
## Get Repository Info
7+
## Usage
88

9-
```console
10-
helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
11-
helm repo update
12-
```
9+
The chart is distributed as an [OCI Artifact](https://helm.sh/docs/topics/registries/) as well as via a traditional [Helm Repository](https://helm.sh/docs/topics/chart_repository/).
10+
11+
- OCI Artifact: `oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter`
12+
- Helm Repository: `https://prometheus-community.github.io/helm-charts` with chart `prometheus-node-exporter`
1313

14-
_See [`helm repo`](https://helm.sh/docs/helm/helm_repo/) for command documentation._
14+
The installation instructions use the OCI registry. Refer to the [`helm repo`]([`helm repo`](https://helm.sh/docs/helm/helm_repo/)) command documentation for information on installing charts via the traditional repository.
1515

16-
## Install Chart
16+
### Install Chart
1717

1818
```console
19-
helm install [RELEASE_NAME] prometheus-community/prometheus-node-exporter
19+
helm install [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter
2020
```
2121

2222
_See [configuration](#configuring) below._
2323

2424
_See [helm install](https://helm.sh/docs/helm/helm_install/) for command documentation._
2525

26-
## Uninstall Chart
26+
### Uninstall Chart
2727

2828
```console
2929
helm uninstall [RELEASE_NAME]
@@ -33,15 +33,15 @@ This removes all the Kubernetes components associated with the chart and deletes
3333

3434
_See [helm uninstall](https://helm.sh/docs/helm/helm_uninstall/) for command documentation._
3535

36-
## Upgrading Chart
36+
### Upgrading Chart
3737

3838
```console
39-
helm upgrade [RELEASE_NAME] [CHART] --install
39+
helm upgrade [RELEASE_NAME] oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter --install
4040
```
4141

4242
_See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._
4343

44-
### 3.x to 4.x
44+
#### 3.x to 4.x
4545

4646
Starting from version 4.0.0, the `node exporter` chart is using the [Kubernetes recommended labels](https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/). Therefore you have to delete the daemonset before you upgrade.
4747

@@ -50,9 +50,9 @@ kubectl delete daemonset -l app=prometheus-node-exporter
5050
helm upgrade -i prometheus-node-exporter prometheus-community/prometheus-node-exporter
5151
```
5252

53-
If you use your own custom [ServiceMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#servicemonitor) or [PodMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#podmonitor), please ensure to upgrade their `selector` fields accordingly to the new labels.
53+
If you use your own custom [ServiceMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#servicemonitor) or [PodMonitor](https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api-reference/api.md#podmonitor), please ensure to upgrade their `selector` fields accordingly to the new labels.
5454

55-
### From 2.x to 3.x
55+
#### From 2.x to 3.x
5656

5757
Change the following:
5858

@@ -73,5 +73,24 @@ hostRootFsMount:
7373
See [Customizing the Chart Before Installing](https://helm.sh/docs/intro/using_helm/#customizing-the-chart-before-installing). To see all configurable options with detailed comments, visit the chart's [values.yaml](./values.yaml), or run these configuration commands:
7474
7575
```console
76-
helm show values prometheus-community/prometheus-node-exporter
76+
helm show values oci://ghcr.io/prometheus-community/charts/prometheus-node-exporter
7777
```
78+
79+
### kube-rbac-proxy
80+
81+
You can enable `prometheus-node-exporter` endpoint protection using `kube-rbac-proxy`. By setting `kubeRBACProxy.enabled: true`, this chart will deploy a RBAC proxy container protecting the node-exporter endpoint.
82+
To authorize access, authenticate your requests (via a `ServiceAccount` for example) with a `ClusterRole` attached such as:
83+
84+
```yaml
85+
apiVersion: rbac.authorization.k8s.io/v1
86+
kind: ClusterRole
87+
metadata:
88+
name: prometheus-node-exporter-read
89+
rules:
90+
- apiGroups: [ "" ]
91+
resources: ["services/node-exporter-prometheus-node-exporter"]
92+
verbs:
93+
- get
94+
```
95+
96+
See [kube-rbac-proxy examples](https://github.com/brancz/kube-rbac-proxy/tree/master/examples/resource-attributes) for more details.

charts/prometheus-node-exporter/prometheus-node-exporter/charts/prometheus-node-exporter/ci/port-values.yaml

Lines changed: 0 additions & 3 deletions
This file was deleted.

charts/prometheus-node-exporter/prometheus-node-exporter/charts/prometheus-node-exporter/templates/NOTES.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,17 @@
1313
echo "Visit http://127.0.0.1:9100 to use your application"
1414
kubectl port-forward --namespace {{ template "prometheus-node-exporter.namespace" . }} $POD_NAME 9100
1515
{{- end }}
16+
17+
{{- if .Values.kubeRBACProxy.enabled}}
18+
19+
kube-rbac-proxy endpoint protections is enabled:
20+
- Metrics endpoints is now HTTPS
21+
- Ensure that the client authenticates the requests (e.g. via service account) with the following role permissions:
22+
```
23+
rules:
24+
- apiGroups: [ "" ]
25+
resources: ["services/{{ template "prometheus-node-exporter.fullname" . }}"]
26+
verbs:
27+
- get
28+
```
29+
{{- end }}

0 commit comments

Comments
 (0)