securityContext:

runAsUser: 0
This commit is contained in:
miwr 2025-03-31 15:04:11 +02:00
parent ba9452e03c
commit 8eae08aaa9

View file

@ -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: