From 8348638c7aaaac7dd006249c543df1ef8c248d3a Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Mon, 4 Mar 2024 19:09:34 +0000 Subject: [PATCH] fix: mount pve secrets to exporter --- .../kube-prometheus-stack/chart/values.yaml | 2 +- .../monitoring/proxmox-exporter/chart/values.yaml | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/argo/cluster/monitoring/kube-prometheus-stack/chart/values.yaml b/argo/cluster/monitoring/kube-prometheus-stack/chart/values.yaml index 29c0cdbc..5ea7020a 100644 --- a/argo/cluster/monitoring/kube-prometheus-stack/chart/values.yaml +++ b/argo/cluster/monitoring/kube-prometheus-stack/chart/values.yaml @@ -243,7 +243,7 @@ prometheus: - source_labels: [__param_target] target_label: instance - target_label: __address__ - replacement: pve-exporter.svc:9221 + replacement: pve-exporter.monitoring.svc:9221 storageSpec: volumeClaimTemplate: diff --git a/argo/cluster/monitoring/proxmox-exporter/chart/values.yaml b/argo/cluster/monitoring/proxmox-exporter/chart/values.yaml index 054bb750..4dab2af4 100644 --- a/argo/cluster/monitoring/proxmox-exporter/chart/values.yaml +++ b/argo/cluster/monitoring/proxmox-exporter/chart/values.yaml @@ -14,3 +14,17 @@ generic: probes: enabled: false + + secrets: + enabled: true + key: pve-exporter-config + + volumes: + - name: pve-config + secret: + secretName: proxmox-exporter + + volumeMounts: + - mountPath: /etc/prometheus + name: pve-config + readOnly: true