ds renewed
This commit is contained in:
parent
cee7ba8ff3
commit
32f084fcb6
1 changed files with 20 additions and 1 deletions
|
@ -12,7 +12,7 @@ spec:
|
|||
labels:
|
||||
app: openbao-logging-dir
|
||||
spec:
|
||||
containers:
|
||||
initContainers:
|
||||
- name: creator
|
||||
image: busybox
|
||||
command: ["/bin/sh", "-c"]
|
||||
|
@ -26,6 +26,25 @@ spec:
|
|||
volumeMounts:
|
||||
- name: host-log
|
||||
mountPath: /var/log
|
||||
containers:
|
||||
- name: running-container
|
||||
image: busybox
|
||||
command: ["sleep", "2"]
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
- name: creator
|
||||
image: busybox
|
||||
command: ["/bin/sh", "-c"]
|
||||
args:
|
||||
- |
|
||||
set -e
|
||||
mkdir -p /var/log/openbao
|
||||
chown 100:100 /var/log/openbao
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
volumeMounts:
|
||||
- name: host-log
|
||||
mountPath: /var/log
|
||||
volumes:
|
||||
- name: host-log
|
||||
hostPath:
|
||||
|
|
Loading…
Reference in a new issue