final touches
This commit is contained in:
parent
e1da09b2cc
commit
700c242cdd
4 changed files with 6 additions and 34 deletions
|
@ -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
|
|
@ -5,7 +5,7 @@ metadata:
|
|||
data:
|
||||
logrotate.conf: |
|
||||
/openbao/logs/openbao/*.log {
|
||||
size 5k
|
||||
size 10M
|
||||
rotate 7
|
||||
compress
|
||||
missingok
|
||||
|
|
|
@ -2,8 +2,9 @@ apiVersion: batch/v1
|
|||
kind: CronJob
|
||||
metadata:
|
||||
name: logrotate-cronjob
|
||||
namespace: openbao
|
||||
spec:
|
||||
schedule: "*/2 * * * *"
|
||||
schedule: "*/10 * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
template:
|
||||
|
@ -13,7 +14,7 @@ metadata:
|
|||
image: skymatic/logrotate:latest
|
||||
securityContext:
|
||||
runAsUser: 100
|
||||
command: ["/bin/sh", "-c", "logrotate /etc/logrotate.conf && sleep infinity"]
|
||||
command: ["/bin/sh", "-c", && sleep infinity"]
|
||||
volumeMounts:
|
||||
- name: host-log-storage
|
||||
mountPath: /openbao/logs
|
||||
|
|
Reference in a new issue