final touches

This commit is contained in:
miwr 2025-04-23 11:24:03 +02:00
parent e1da09b2cc
commit 700c242cdd
4 changed files with 6 additions and 34 deletions

View file

@ -1,29 +0,0 @@
# apiVersion: argoproj.io/v1alpha1
# kind: Application
# metadata:
# name: openbao-logging-setup
# namespace: argocd
# labels:
# env: dev
# finalizers:
# - resources-finalizer.argocd.argoproj.io
# spec:
# project: default
# source:
# repoURL: https://{{{ .Env.DOMAIN_GITEA }}}/giteaAdmin/edfbuilder
# targetRevision: HEAD
# path: "stacks/ref-implementation/openbao-logging"
# destination:
# server: "https://kubernetes.default.svc"
# namespace: openbao
# syncPolicy:
# syncOptions:
# - CreateNamespace=true
# automated:
# selfHeal: true
# retry:
# limit: -1
# backoff:
# duration: 15s
# factor: 1
# maxDuration: 15s

View file

@ -5,7 +5,7 @@ metadata:
data: data:
logrotate.conf: | logrotate.conf: |
/openbao/logs/openbao/*.log { /openbao/logs/openbao/*.log {
size 5k size 10M
rotate 7 rotate 7
compress compress
missingok missingok

View file

@ -2,8 +2,9 @@ apiVersion: batch/v1
kind: CronJob kind: CronJob
metadata: metadata:
name: logrotate-cronjob name: logrotate-cronjob
spec: namespace: openbao
schedule: "*/2 * * * *" spec:
schedule: "*/10 * * * *"
jobTemplate: jobTemplate:
spec: spec:
template: template:
@ -12,8 +13,8 @@ metadata:
- name: logrotate - name: logrotate
image: skymatic/logrotate:latest image: skymatic/logrotate:latest
securityContext: securityContext:
runAsUser: 100 runAsUser: 100
command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf && sleep infinity"] command: ["/bin/sh", "-c", && sleep infinity"]
volumeMounts: volumeMounts:
- name: host-log-storage - name: host-log-storage
mountPath: /openbao/logs mountPath: /openbao/logs