From 0614356a9279804bd975eccd5d4d65c8f39fb5fd Mon Sep 17 00:00:00 2001 From: Tyler Perkins Date: Fri, 10 Nov 2023 23:26:52 -0500 Subject: [PATCH] Add busy box init contianer for perms --- prometheus/prometheus-deployment.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/prometheus/prometheus-deployment.yaml b/prometheus/prometheus-deployment.yaml index 6be1f31..7f9cbdc 100644 --- a/prometheus/prometheus-deployment.yaml +++ b/prometheus/prometheus-deployment.yaml @@ -15,6 +15,13 @@ spec: labels: app: prometheus spec: + initContainers: + - name: prometheus-data-permission-fix + image: busybox + command: ["/bin/chmod","-R","777", "/prometheus"] + volumeMounts: + - name: prometheus-storage + mountPath: /prometheus containers: - name: prometheus image: prom/prometheus:v2.27.1