set -e
          useradd -u 100 logrotate
          chown logrotate:logrotate /var/lib
          tail -f /dev/null
This commit is contained in:
miwr 2025-03-31 13:45:05 +02:00
parent bc6ed363e2
commit 5a802be864

View file

@ -15,7 +15,13 @@ spec:
initContainers: initContainers:
- name: creator - name: creator
image: busybox image: busybox
command: ["/bin/sh", "-c", "useradd -u 100 logrotate && tail -f /dev/null", "chown logrotate:logrotate /var/lib"] command: ["/bin/sh", "-c"]
args:
- |
set -e
useradd -u 100 logrotate
chown logrotate:logrotate /var/lib
tail -f /dev/null
securityContext: securityContext:
runAsUser: 0 runAsUser: 0
containers: containers: