test to ds
This commit is contained in:
parent
9c8cdbf7a4
commit
7e2243d52d
1 changed files with 20 additions and 7 deletions
|
@ -12,7 +12,26 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: openbao-logging-dir
|
app: openbao-logging-dir
|
||||||
spec:
|
spec:
|
||||||
initContainers:
|
# initContainers:
|
||||||
|
# - 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
|
||||||
|
containers:
|
||||||
|
# - name: running-container
|
||||||
|
# image: busybox
|
||||||
|
# command: ["sleep", "infinity"]
|
||||||
|
# securityContext:
|
||||||
|
# runAsUser: 0
|
||||||
- name: creator
|
- name: creator
|
||||||
image: busybox
|
image: busybox
|
||||||
command: ["/bin/sh", "-c"]
|
command: ["/bin/sh", "-c"]
|
||||||
|
@ -26,12 +45,6 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: host-log
|
- name: host-log
|
||||||
mountPath: /var/log
|
mountPath: /var/log
|
||||||
containers:
|
|
||||||
- name: running-container
|
|
||||||
image: busybox
|
|
||||||
command: ["sleep", "infinity"]
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: host-log
|
- name: host-log
|
||||||
hostPath:
|
hostPath:
|
||||||
|
|
Loading…
Reference in a new issue