Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Support systemd OSs #19

Closed
flah00 opened this issue Apr 6, 2017 · 9 comments
Closed

Support systemd OSs #19

flah00 opened this issue Apr 6, 2017 · 9 comments
Assignees

Comments

@flah00
Copy link
Contributor

flah00 commented Apr 6, 2017

I'm running kubernetes on CoreOS, none of the paths in sources.kubernetes or sources.docker exist on my system. I've been told that there's a systemd plugin for fluent. How can this be folded into the current image? Should we create a new env var, should it try to be smart?

@frankreno
Copy link
Contributor

@flah00 : right now we only use the tail plugin. Do the logs not exist on the file system at all? Perhaps they are in a different path, in which case, you would just need to update the configuration and mounts to the appropriate path.

@flah00
Copy link
Contributor Author

flah00 commented Apr 6, 2017

@frankreno The logs exist, but systemd uses a binary log format, so the resulting files aren't readable by the tail.

@flah00
Copy link
Contributor Author

flah00 commented Apr 6, 2017

The plugin, for systemd, depends on libsystemd. Alpine doesn't offer any support for systemd. It seems like the fluent folks have settled on building two images, one debian and one alpine, to work around this problem. How does this project feel about that route?

@nhoughto
Copy link

This is a problem for all new GKE users as google is deprecating their debian based node image and moving to COS which uses systemd. What is the status of your poc @flah00 ?

@flah00
Copy link
Contributor Author

flah00 commented Jun 29, 2017

I've got a working poc, which the sumo folks need to review.

@nhoughto
Copy link

Yep seems to work, i've got it deployed and both systemd and file mode are going for me. Thanks for your work.

@flah00 flah00 closed this as completed Jul 17, 2017
@philipbjorge
Copy link
Contributor

@nhoughto -- Do you have 2 daemonsets deployed to get both file logs and systemd logs?

@nhoughto
Copy link

nhoughto commented Aug 1, 2017 via email

@philipbjorge
Copy link
Contributor

@nhoughto -- Not sure. It seems like on our kops nodes, the kubelet logs are going to journald, so was wondering if you had to handle something similar.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants