From 8eae08aaa9990394181c465c2694f1aa24ed6ef3 Mon Sep 17 00:00:00 2001 From: miwr Date: Mon, 31 Mar 2025 15:04:11 +0200 Subject: [PATCH] securityContext: runAsUser: 0 --- .../openbao-logging/create-logging-directory.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml b/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml index d46c6c5..6f9c4d8 100644 --- a/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml +++ b/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml @@ -23,6 +23,7 @@ spec: chown 100:100 /var/log/openbao echo "logrotate:x:100:100::/home/logrotate:/bin/sh" >> /etc/passwd echo "logrotate:x:100:" >> /etc/group + mkdir -p /home/logrotate chown 100:100 /var/lib securityContext: runAsUser: 0 @@ -33,6 +34,8 @@ spec: - name: running-container image: busybox command: ["sleep", "infinity"] + securityContext: + runAsUser: 0 volumes: - name: host-log hostPath: