serhii
serhii

Reputation: 128

Replace GCE fluentd-cloud-logging with my own container

We are using kubernetes provided by "Google Container Engine" with enabled "Cloud Logging" feature. But we need to configure fluentd for our application (add more information about application what runs in container).

I can't find any information how I can add my configs to logging agent provided by google and any way to replace it with my owned container.

Does exists any way how I can do this?

Thanks!

Upvotes: 2

Views: 720

Answers (1)

Robert Bailey
Robert Bailey

Reputation: 18200

There isn't an easy way to customize the fluentd configuration in Google Container Engine (and if you try to customize it, your changes will be lost if a node gets replaced by the instance group manager or during a node upgrade).

If you want to run a custom fluentd configuration, you should disable cloud logging on your cluster and then run your own fluentd container on each node with the configuration that you need for your application.

Until Daemon Sets are available, the easiest way to run one pod per host is to assign the pod a host port and then create a replication controller with more replicas than you have hosts.

Upvotes: 3

Related Questions