Skip to content

Commit

Permalink
Update rancher-monitoring/rancher-node-exporter to new base 766bdf70d…
Browse files Browse the repository at this point in the history
…d19d4ddc80b0a4a7e785bf85b405c05
  • Loading branch information
joshmeranda committed Oct 6, 2023
1 parent a6be429 commit 2ff5535
Show file tree
Hide file tree
Showing 10 changed files with 50 additions and 85 deletions.
Original file line number Diff line number Diff line change
@@ -1,22 +1,26 @@
--- charts-original/Chart.yaml
+++ charts/Chart.yaml
@@ -1,3 +1,10 @@
+annotations:
+ catalog.cattle.io/hidden: "true"
+ catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.27.0-0'
+ catalog.cattle.io/os: linux
+ catalog.rancher.io/certified: rancher
+ catalog.rancher.io/namespace: cattle-monitoring-system
+ catalog.rancher.io/release-name: rancher-node-exporter
apiVersion: v2
appVersion: 1.3.1
description: A Helm chart for prometheus node-exporter
@@ -11,7 +18,7 @@
@@ -3,14 +3,8 @@
artifacthub.io/links: |
- name: Chart Source
url: https://github.com/prometheus-community/helm-charts
-apiVersion: v2
appVersion: 1.6.0
-description: A Helm chart for prometheus node-exporter
home: https://github.com/prometheus/node_exporter/
-keywords:
-- node-exporter
-- prometheus
-- exporter
maintainers:
- email: gianrubio@gmail.com
name: gianrubio
- email: zanhsieh@gmail.com
@@ -18,8 +12,6 @@
name: zanhsieh
- email: rootsandtrees@posteo.de
name: zeritti
-name: prometheus-node-exporter
+name: rancher-node-exporter
sources:
- https://github.com/prometheus/node_exporter/
type: application
-type: application
version: 4.20.0
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- charts-original/templates/NOTES.txt
+++ charts/templates/NOTES.txt
@@ -10,6 +10,6 @@
@@ -10,8 +10,8 @@
echo http://$SERVICE_IP:{{ .Values.service.port }}
{{- else if contains "ClusterIP" .Values.service.type }}
export POD_NAME=$(kubectl get pods --namespace {{ template "prometheus-node-exporter.namespace" . }} -l "app.kubernetes.io/name={{ template "prometheus-node-exporter.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
Expand All @@ -9,3 +9,5 @@
+ echo "Visit http://127.0.0.1:{{ .Values.service.port }} to use your application"
+ kubectl port-forward --namespace {{ template "prometheus-node-exporter.namespace" . }} $POD_NAME {{ .Values.service.port }}
{{- end }}

{{- if .Values.kubeRBACProxy.enabled}}
Original file line number Diff line number Diff line change
@@ -1,32 +1,11 @@
--- charts-original/templates/daemonset.yaml
+++ charts/templates/daemonset.yaml
@@ -35,7 +35,7 @@
{{- end }}
@@ -42,7 +42,7 @@
containers:
{{- $servicePort := ternary 8100 .Values.service.port .Values.kubeRBACProxy.enabled }}
- name: node-exporter
- image: {{ include "prometheus-node-exporter.image" . }}
+ image: {{ template "system_default_registry" . }}{{ include "prometheus-node-exporter.image" . }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
args:
- --path.procfs=/host/proc
@@ -177,14 +177,14 @@
dnsConfig:
{{ toYaml . | indent 8 }}
{{- end }}
+ nodeSelector: {{ include "linux-node-selector" . | nindent 8 }}
{{- if .Values.nodeSelector }}
- nodeSelector:
-{{ toYaml .Values.nodeSelector | indent 8 }}
+{{- toYaml .Values.nodeSelector | nindent 8 }}
{{- end }}
- {{- with .Values.tolerations }}
- tolerations:
-{{ toYaml . | indent 8 }}
- {{- end }}
+ tolerations: {{ include "linux-node-tolerations" . | nindent 8 }}
+{{- if .Values.tolerations }}
+{{- toYaml .Values.tolerations | nindent 8 }}
+{{- end }}
volumes:
- name: proc
hostPath:
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- charts-original/templates/endpoints.yaml
+++ charts/templates/endpoints.yaml
@@ -12,6 +12,6 @@
@@ -13,6 +13,6 @@
{{- end }}
ports:
- name: {{ .Values.service.portName }}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
--- charts-original/templates/servicemonitor.yaml
+++ charts/templates/servicemonitor.yaml
@@ -44,8 +44,18 @@
@@ -53,9 +53,19 @@
{{- with .Values.prometheus.monitor.relabelings }}
relabelings:
{{- toYaml . | nindent 8 }}
{{- end }}
- {{- with .Values.prometheus.monitor.metricRelabelings }}
- {{- end }}
- {{- with .Values.prometheus.monitor.metricRelabelings }}
+ {{- end }}
metricRelabelings:
- {{- toYaml . | nindent 8 }}
- {{- end }}
+ {{- with .Values.prometheus.monitor.metricRelabelings }}
+ {{- toYaml . | nindent 8 }}
+ {{- end }}
Expand All @@ -20,5 +21,5 @@
+ - sourceLabels: [__address__]
+ targetLabel: cluster_name
+ replacement: {{ .Values.global.cattle.clusterName }}
+ {{- end }}
{{- end }}
{{- end }}
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
--- charts-original/values.yaml
+++ charts/values.yaml
@@ -1,10 +1,17 @@
@@ -1,11 +1,12 @@
# Default values for prometheus-node-exporter.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.
+
+global:
+ cattle:
+ psp:
+ enabled: false
+ systemDefaultRegistry: ""
+
image:
- repository: quay.io/prometheus/node-exporter
- registry: quay.io
- repository: prometheus/node-exporter
+ registry: docker.io
+ repository: rancher/mirrored-prometheus-node-exporter
# Overrides the image tag whose default is {{ printf "v%s" .Chart.AppVersion }}
- tag: ""
+ tag: v1.3.1
pullPolicy: IfNotPresent
sha: ""
digest: ""

@@ -15,6 +16,9 @@
fullnameOverride: ""

@@ -13,8 +20,8 @@
global:
+ cattle:
+ systemDefaultRegistry: ""
+
# To help compatibility with other charts which use global.imagePullSecrets.
# Allow either an array of {name: pullSecret} maps (k8s-style), or an array of strings (more common helm-style).
# global:
@@ -66,8 +70,8 @@

service:
type: ClusterIP
Expand All @@ -31,7 +37,7 @@
nodePort:
portName: metrics
listenOnAllInterfaces: true
@@ -95,9 +102,6 @@
@@ -276,9 +280,6 @@
## If true, create & use RBAC resources
##
create: true
Expand All @@ -41,7 +47,7 @@
pspAnnotations: {}

# for deployments that have node_exporter deployed outside of the cluster, list
@@ -164,6 +168,8 @@
@@ -348,6 +349,8 @@
tolerations:
- effect: NoSchedule
operator: Exists
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
url: https://github.com/prometheus-community/helm-charts.git
subdirectory: charts/prometheus-node-exporter
commit: 059e3a6e6b4ba0fd8614763de0f8e24937a89a39
commit: 766bdf70dd19d4ddc80b0a4a7e785bf85b405c05
version: 103.0.0
doNotRelease: true

0 comments on commit 2ff5535

Please sign in to comment.