Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Use logfile; fix DaemonSet example#3

Open
mrtyler wants to merge 2 commits into
wikiwi:masterfrom
mrtyler:gpii-3394-logfile
Open

Use logfile; fix DaemonSet example#3
mrtyler wants to merge 2 commits into
wikiwi:masterfrom
mrtyler:gpii-3394-logfile

Conversation

@mrtyler

@mrtyler mrtyler commented Dec 11, 2018

Copy link
Copy Markdown

syslog is not generally available inside a container, so use Logfile to write to the expected logfile directly.

I tried using stdout instead, but it didn't work -- no logs in kubectl logs or in Stackdriver. I think this is because run-agent.sh is the container's entrypoint, not the collectd daemon.

The good news is run-agent.sh tails /var/log/collectd.log, so as-is we do see logs in kubectl logs and in Stackdriver.

This also makes a whitespace-only, documentation-only change that causes the example DaemonSet to break :).

(See also gpii-ops#1 though I will delete that fork soon.)

syslog is not generally available inside a container.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant