diff --git a/template/stacks/ref-implementation/openbao-logging/grant-priviledges-to-logrotate.yaml b/template/stacks/ref-implementation/openbao-logging/grant-priviledges-to-logrotate.yaml new file mode 100644 index 0000000..7db4e5b --- /dev/null +++ b/template/stacks/ref-implementation/openbao-logging/grant-priviledges-to-logrotate.yaml @@ -0,0 +1,25 @@ +apiVersion: apps/v1 +kind: DaemonSet +metadata: + name: logrotate-priveledges + namespace: openbao +spec: + selector: + matchLabels: + app: ologrotate-priveledges + template: + metadata: + labels: + app: logrotate-priveledges + 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"] + securityContext: + runAsUser: 0 + containers: + - name: running-container + image: busybox + command: ["sleep", "infinity"] + restartPolicy: Never \ No newline at end of file