new changes
This commit is contained in:
parent
1abbd9b646
commit
20a6113403
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ metadata:
|
||||||
name: logrotate-cronjob
|
name: logrotate-cronjob
|
||||||
namespace: openbao
|
namespace: openbao
|
||||||
spec:
|
spec:
|
||||||
schedule: "*/5 * * * *"
|
schedule: "*/2 * * * *"
|
||||||
jobTemplate:
|
jobTemplate:
|
||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
|
@ -14,7 +14,7 @@ spec:
|
||||||
image: skymatic/logrotate:latest
|
image: skymatic/logrotate:latest
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 100
|
runAsUser: 100
|
||||||
command: ["/bin/sh", "-c", && sleep 10"]
|
command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf && sleep 10"]
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: host-log-storage
|
- name: host-log-storage
|
||||||
mountPath: /openbao/logs
|
mountPath: /openbao/logs
|
||||||
|
|
Loading…
Reference in a new issue