Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

configure apache to log to stdout/stderr #7375

Merged
merged 3 commits into from
Sep 6, 2019

Conversation

paulczar
Copy link
Contributor

@paulczar paulczar commented Sep 4, 2019

Apache is configured by default to log to /var/log... which fills up real quick with logs from kubernetes health checks and regular traffic, eventually the pod runs out of space. This modifies the config to log to stdout/stderr instead inline with docker/kubernetes best practices and should help protect the filesystem of the containers/pods.

Signed-off-by: Paul Czarkowski username.taken@gmail.com

@spinnakerbot
Copy link
Contributor

The following commits need their title changed:

  • 31e5a5d: configure apache to log to stdout/stderr

Please format your commit title into the form:

<type>(<scope>): <subject>, e.g. fix(kubernetes): address NPE in status check

This allows us to easily generate changelogs & determine semantic version numbers when cutting releases. You can read more about commit conventions here.

@@ -44,6 +44,10 @@ mv spinnaker.conf /etc/apache2/sites-available

a2ensite spinnaker

# Disable default site

a2dissite 000-default
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we're not using the default, so its good hygiene to disable it.

@@ -1,5 +1,7 @@
apt-get update
apt-get install apache2 -y
rm -rf /var/lib/apt/lists/*
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a bit of space to save by cleaning up the apt cache.

Reports of deck failing with a full /var led me to finding
that apache is not configured as per docker best practices
to log to stdout/stderr.  This addresses that.

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
@ezimanyi
Copy link
Contributor

ezimanyi commented Sep 4, 2019

@Jammy-Louie : I'm not sure I'm the best person to look at this PR...is there someone more familiar with deck you could ask?

@ezimanyi ezimanyi removed their request for review September 4, 2019 23:57
@Jammy-Louie Jammy-Louie merged commit 7e7c2cc into spinnaker:master Sep 6, 2019
@paulczar paulczar deleted the apache-to-stdout branch September 19, 2019 19:49
yunzhangit pushed a commit to yunzhangit/deck that referenced this pull request Mar 28, 2021
Reports of deck failing with a full /var led me to finding
that apache is not configured as per docker best practices
to log to stdout/stderr.  This addresses that.

Signed-off-by: Paul Czarkowski <username.taken@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants