From 0619a824e4f2f732ef5a4b9d753e7a8328e05507 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Wed, 26 Jun 2024 15:59:03 +1000 Subject: [PATCH] run docker with user root --- kubernetes/infrastructure/prometheus/app/deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/kubernetes/infrastructure/prometheus/app/deployment.yaml b/kubernetes/infrastructure/prometheus/app/deployment.yaml index a23eefc..0e1e19a 100644 --- a/kubernetes/infrastructure/prometheus/app/deployment.yaml +++ b/kubernetes/infrastructure/prometheus/app/deployment.yaml @@ -15,6 +15,9 @@ spec: labels: app: prometheus spec: + securityContext: + runAsUser: 0 + runAsGroup: 0 containers: - name: prometheus image: prom/prometheus:v2.53.0