Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Commit

Permalink
Persistent journald logs (#1956)
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer authored and jackfrancis committed Dec 29, 2017
1 parent 3598b9d commit 9c9507c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parts/k8s/kubernetesmastercustomscript.sh
Expand Up @@ -338,6 +338,10 @@ function extractKubectl(){
function ensureJournal(){
systemctl daemon-reload
systemctlEnableAndCheck systemd-journald.service
echo "Storage=persistent" >> /etc/systemd/journald.conf
echo "SystemMaxUse=1G" >> /etc/systemd/journald.conf
echo "RuntimeMaxUse=1G" >> /etc/systemd/journald.conf
echo "ForwardToSyslog=no" >> /etc/systemd/journald.conf
# only start if a reboot is not required
if ! $REBOOTREQUIRED; then
systemctl restart systemd-journald.service
Expand Down

0 comments on commit 9c9507c

Please sign in to comment.