IPCEICIS-2952 #31
1 changed files with 3 additions and 0 deletions
|
@ -23,6 +23,7 @@ spec:
|
||||||
chown 100:100 /var/log/openbao
|
chown 100:100 /var/log/openbao
|
||||||
echo "logrotate:x:100:100::/home/logrotate:/bin/sh" >> /etc/passwd
|
echo "logrotate:x:100:100::/home/logrotate:/bin/sh" >> /etc/passwd
|
||||||
echo "logrotate:x:100:" >> /etc/group
|
echo "logrotate:x:100:" >> /etc/group
|
||||||
|
mkdir -p /home/logrotate
|
||||||
chown 100:100 /var/lib
|
chown 100:100 /var/lib
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
|
@ -33,6 +34,8 @@ spec:
|
||||||
- name: running-container
|
- name: running-container
|
||||||
image: busybox
|
image: busybox
|
||||||
command: ["sleep", "infinity"]
|
command: ["sleep", "infinity"]
|
||||||
|
securityContext:
|
||||||
|
runAsUser: 0
|
||||||
volumes:
|
volumes:
|
||||||
- name: host-log
|
- name: host-log
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|
Reference in a new issue