From 33b452ae7d121c160f233d239d4b446dd1e45644 Mon Sep 17 00:00:00 2001 From: Konstantin Renner Date: Tue, 12 May 2026 08:25:40 +0200 Subject: [PATCH] monitoring(pve-exporter): mount emptyDir at /tmp for Python tempfile readOnlyRootFilesystem=true leaves no writable directory under /tmp, and pve_exporter's Python startup fails with FileNotFoundError from tempfile._get_default_tempdir. Mount a small emptyDir at /tmp. Co-Authored-By: Claude Opus 4.7 (1M context) --- kubernetes/apps/monitoring/pve-exporter-deployment.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/kubernetes/apps/monitoring/pve-exporter-deployment.yaml b/kubernetes/apps/monitoring/pve-exporter-deployment.yaml index d57aa1d1..c073c089 100644 --- a/kubernetes/apps/monitoring/pve-exporter-deployment.yaml +++ b/kubernetes/apps/monitoring/pve-exporter-deployment.yaml @@ -52,10 +52,15 @@ spec: - name: config mountPath: /etc/pve-exporter readOnly: true + # Python needs a writable temp dir; the rootfs is read-only. + - name: tmp + mountPath: /tmp volumes: - name: config secret: secretName: pve-exporter-config + - name: tmp + emptyDir: {} --- apiVersion: v1 kind: Service