FoundationDB / fdb-kubernetes-operator

A kubernetes operator for FoundationDB
Apache License 2.0
240 stars 83 forks source link

Feature request: send logs to stdout for kubernetes consumption #810

Closed funkypenguin closed 2 years ago

funkypenguin commented 3 years ago

Hey guys!

Would it be possible to configure the fdb pods (spawned by the operator) to output logs to stdout, as well as to the filesystem? For us, this'd mean we could capture the log output in our logging platform (graylog / loki), rather than having to look in the pod's filesystem to find the logs :)

Cheers! D

johscheuer commented 3 years ago

Since FoundationDB itself doesn't support to log to stdout/stderr (or both) see https://apple.github.io/foundationdb/configuration.html#foundationdb-conf there is nothing that the operator could configure. One way to workaround this is by adding an additional sidecar that streams (e.g. tail) the logs to stdout, that would be part of the ProcessSettings.

johscheuer commented 2 years ago

Closing this one. The workaround for this is just running a sidecar with a tail command.