From 6acd284b83908526b651d539fef9b890e24983f2 Mon Sep 17 00:00:00 2001 From: miwr Date: Mon, 31 Mar 2025 10:03:59 +0200 Subject: [PATCH] - name: logrotate image: alpine:latest command: ["/bin/sh", "-c", "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 60; done"] securityContext: runAsUser: 100 volumeMounts: - name: host-log-storage mountPath: /openbao/logs - name: logrotate-config mountPath: /etc/logrotate.conf subPath: logrotate.conf --- .../ref-implementation/openbao/values.yaml | 27 ++++++++++++++----- 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/template/stacks/ref-implementation/openbao/values.yaml b/template/stacks/ref-implementation/openbao/values.yaml index 4c53da3..becbe06 100644 --- a/template/stacks/ref-implementation/openbao/values.yaml +++ b/template/stacks/ref-implementation/openbao/values.yaml @@ -6,13 +6,24 @@ server: - containerPort: 12345 securityContext: runAsUser: 100 - volumeMounts: - - name: log-storage - mountPath: /openbao/logs + volumeMounts: - name: alloy-data mountPath: /var/lib/alloy - name: config-volume mountPath: /etc/alloy + - name: host-log-storage + mountPath: /openbao/logs + - name: logrotate + image: alpine:latest + command: ["/bin/sh", "-c", "while true; do /usr/sbin/logrotate /etc/logrotate.conf; sleep 60; done"] + securityContext: + runAsUser: 100 + volumeMounts: + - name: host-log-storage + mountPath: /openbao/logs + - name: logrotate-config + mountPath: /etc/logrotate.conf + subPath: logrotate.conf volumes: - name: log-storage emptyDir: {} @@ -20,11 +31,15 @@ server: emptyDir: {} - name: config-volume configMap: - name: sidecar-container-alloy-config + name: sidecar-container-alloy-config + - name: host-log-storage + hostPath: + path: /var/log + type: Directory volumeMounts: - - mountPath: /var/log - name: log-storage + - mountPath: /openbao/logs + name: host-log-storage readOnly: false postStart: