logrotate-priviledges
This commit is contained in:
parent
631be775f5
commit
bc6ed363e2
1 changed files with 4 additions and 4 deletions
|
@ -1,21 +1,21 @@
|
|||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: logrotate-priveledges
|
||||
name: logrotate-priviledges
|
||||
namespace: openbao
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ologrotate-priveledges
|
||||
app: logrotate-priviledges
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: logrotate-priveledges
|
||||
app: logrotate-priviledges
|
||||
spec:
|
||||
initContainers:
|
||||
- name: creator
|
||||
image: busybox
|
||||
command: ["/bin/sh", "-c", "useradd -u 100 logrotate && tail -f /dev/null", "chown logrotate:logrotate /var/lib/logrotate.status"]
|
||||
command: ["/bin/sh", "-c", "useradd -u 100 logrotate && tail -f /dev/null", "chown logrotate:logrotate /var/lib"]
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
containers:
|
||||
|
|
Loading…
Reference in a new issue