From 765420961046a6fc7fe4c823b45302f056098f45 Mon Sep 17 00:00:00 2001 From: zhangzujian Date: Tue, 9 Jul 2024 07:13:25 +0000 Subject: [PATCH] logrotate: set file size limit to 100M Signed-off-by: zhangzujian --- dist/images/Dockerfile | 2 +- dist/images/logrotate/kubeovn | 1 + dist/images/logrotate/openvswitch | 1 + dist/images/logrotate/ovn | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/images/Dockerfile b/dist/images/Dockerfile index c22d33a42a1..6527513377e 100644 --- a/dist/images/Dockerfile +++ b/dist/images/Dockerfile @@ -6,7 +6,7 @@ FROM kubeovn/kube-ovn-base:$BASE_TAG COPY *.sh /kube-ovn/ COPY kubectl-ko /kube-ovn/kubectl-ko COPY 01-kube-ovn.conflist /kube-ovn/01-kube-ovn.conflist -COPY logrotate/* /etc/logrotate.d/ +COPY --chmod=0644 logrotate/* /etc/logrotate.d/ COPY grace_stop_ovn_controller /usr/share/ovn/scripts/grace_stop_ovn_controller WORKDIR /kube-ovn diff --git a/dist/images/logrotate/kubeovn b/dist/images/logrotate/kubeovn index 0139f49589c..f8ba64cac7d 100644 --- a/dist/images/logrotate/kubeovn +++ b/dist/images/logrotate/kubeovn @@ -9,6 +9,7 @@ daily copytruncate rotate 7 + size 100M compress sharedscripts missingok diff --git a/dist/images/logrotate/openvswitch b/dist/images/logrotate/openvswitch index 705cfddd936..16660df7bc9 100644 --- a/dist/images/logrotate/openvswitch +++ b/dist/images/logrotate/openvswitch @@ -8,6 +8,7 @@ /var/log/openvswitch/*.log { daily rotate 7 + size 100M compress sharedscripts missingok diff --git a/dist/images/logrotate/ovn b/dist/images/logrotate/ovn index 799b165d3b4..fe731384618 100644 --- a/dist/images/logrotate/ovn +++ b/dist/images/logrotate/ovn @@ -8,6 +8,7 @@ /var/log/ovn/*.log { daily rotate 7 + size 100M compress sharedscripts missingok