From 596a234192bf24ad18fe607f9b0f26aefff34c08 Mon Sep 17 00:00:00 2001 From: miwr Date: Wed, 23 Apr 2025 14:15:44 +0200 Subject: [PATCH] test --- .../create-logging-directory.yaml | 19 ------------------- .../openbao-logging/logrotate-configmap.yaml | 2 +- .../openbao-logging/logrotate-cronjob.yaml | 2 +- .../ref-implementation/openbao/values.yaml | 6 +++--- 4 files changed, 5 insertions(+), 24 deletions(-) diff --git a/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml b/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml index 06321f9..7b2aa6d 100644 --- a/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml +++ b/template/stacks/ref-implementation/openbao-logging/create-logging-directory.yaml @@ -12,26 +12,7 @@ spec: labels: app: openbao-logging-dir spec: - # 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 image: busybox command: ["/bin/sh", "-c"] diff --git a/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml b/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml index b8f9d1a..807387b 100644 --- a/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml +++ b/template/stacks/ref-implementation/openbao-logging/logrotate-configmap.yaml @@ -5,7 +5,7 @@ metadata: data: logrotate.conf: | /openbao/logs/openbao/*.log { - size 50M + size 1M rotate 7 missingok notifempty diff --git a/template/stacks/ref-implementation/openbao-logging/logrotate-cronjob.yaml b/template/stacks/ref-implementation/openbao-logging/logrotate-cronjob.yaml index c8b80c4..755d6b9 100644 --- a/template/stacks/ref-implementation/openbao-logging/logrotate-cronjob.yaml +++ b/template/stacks/ref-implementation/openbao-logging/logrotate-cronjob.yaml @@ -4,7 +4,7 @@ metadata: name: logrotate-cronjob namespace: openbao spec: - schedule: "0 * * * *" + schedule: "*/2 * * * *" jobTemplate: spec: template: diff --git a/template/stacks/ref-implementation/openbao/values.yaml b/template/stacks/ref-implementation/openbao/values.yaml index 18e79f6..b75b492 100644 --- a/template/stacks/ref-implementation/openbao/values.yaml +++ b/template/stacks/ref-implementation/openbao/values.yaml @@ -21,9 +21,9 @@ server: - name: logrotate-config-volume configMap: name: logrotate-config - - name: passwd-volume - configMap: - name: passwd-user-configmap + # - name: passwd-volume + # configMap: + # name: passwd-user-configmap - name: status emptyDir: {} - name: host-log-storage