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:
parent
39270cb6cc
commit
e418dff11a
@ -12,6 +12,23 @@ data:
|
|||||||
tar_url: https://dl.k8s.io/v1.8.0/kubernetes-node-linux-amd64.tar.gz
|
tar_url: https://dl.k8s.io/v1.8.0/kubernetes-node-linux-amd64.tar.gz
|
||||||
tar_path: kubernetes/node/bin/kubelet
|
tar_path: kubernetes/node/bin/kubelet
|
||||||
mode: 0555
|
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:
|
images:
|
||||||
coredns: coredns/coredns:0.9.9
|
coredns: coredns/coredns:0.9.9
|
||||||
helm:
|
helm:
|
||||||
|
@ -12,6 +12,23 @@ data:
|
|||||||
tar_url: https://dl.k8s.io/v1.8.0/kubernetes-node-linux-amd64.tar.gz
|
tar_url: https://dl.k8s.io/v1.8.0/kubernetes-node-linux-amd64.tar.gz
|
||||||
tar_path: kubernetes/node/bin/kubelet
|
tar_path: kubernetes/node/bin/kubelet
|
||||||
mode: 0555
|
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:
|
images:
|
||||||
coredns: coredns/coredns:0.9.9
|
coredns: coredns/coredns:0.9.9
|
||||||
helm:
|
helm:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user