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
Browse files Browse the repository at this point in the history
  • Loading branch information
feiskyer committed Dec 25, 2017
1 parent c471c6b commit 3ce8244
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions parts/k8s/kubernetesmastercustomscript.sh
Expand Up @@ -295,6 +295,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 3ce8244

Please sign in to comment.