[Q&A] Cannot override fluentd config via k8s ConfigMap #4647
Replies: 1 comment 1 reply
-
It might be |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is a problem?
Following the instructions here, I'm trying to apply the 3 lines of code so that fluentd knows to apply the CRI parser to my logs instead of the default Docker parser. It says to use a ConfigMap to override the
/fluentd/etc/tail_container_parse.conf
file within the container, which is pretty straightforward. I'm also using the provided DaemonSet configuration for Graylog as a starting point.The Fluentd repo provided an article on how to use your own custom config via ConfigMap, which says your ConfigMap should be mounted in
/fluentd/etc/[filename.conf]
, so here is my DaemonSet manifest using that technique:However, this fails with the following error:
StackExchange says to resolve this I need to mount it as a directory with the filename itself as the value in the
subPath
argument, so I tried that:...and the Pod fails because there is no
/fluent/etc/fluent.conf
file anymore, indicating the entire/fluent/etc/
folder has been overwritten by my volume mount, which makes sense.So how am I supposed to override the config files in
/fluent/etc
if I can't mount the file itself and I can't mount the folder??Describe the configuration of Fluentd
No response
Describe the logs of Fluentd
No response
Environment
Beta Was this translation helpful? Give feedback.
All reactions