Add example fallback logrotate configuration

Though logs are likely to be managed by log aggregation tooling such as
fluentd, it is still sometimes useful to have additional logration rules
in places as a backup.  This demonstrates that capability.

Change-Id: I62faf85cd1abc04d6be6129d788932814850f4a5
This commit is contained in:
Mark Burnett 2017-11-16 13:59:03 -06:00
parent 39270cb6cc
commit e418dff11a
2 changed files with 34 additions and 0 deletions

View File

@ -12,6 +12,23 @@ data:
tar_url: https://dl.k8s.io/v1.8.0/kubernetes-node-linux-amd64.tar.gz
tar_path: kubernetes/node/bin/kubelet
mode: 0555
- path: /etc/logrotate.d/json-logrotate
mode: 0444
content: |-
/var/lib/docker/containers/*/*-json.log
{
compress
copytruncate
create 0644 root root
daily
dateext
dateformat -%Y%m%d-%s
maxsize 10M
missingok
notifempty
su root root
rotate 1
}
images:
coredns: coredns/coredns:0.9.9
helm:

View File

@ -12,6 +12,23 @@ data:
tar_url: https://dl.k8s.io/v1.8.0/kubernetes-node-linux-amd64.tar.gz
tar_path: kubernetes/node/bin/kubelet
mode: 0555
- path: /etc/logrotate.d/json-logrotate
mode: 0444
content: |-
/var/lib/docker/containers/*/*-json.log
{
compress
copytruncate
create 0644 root root
daily
dateext
dateformat -%Y%m%d-%s
maxsize 10M
missingok
notifempty
su root root
rotate 1
}
images:
coredns: coredns/coredns:0.9.9
helm: