-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make the fluentd conf configurable from configMap #174
Comments
In my
and for the volume:
*I have added the fluentd version |
will fail in k8s, because of:
if [ -z ${FLUENT_ELASTICSEARCH_USER} ] ; then
sed -i '/FLUENT_ELASTICSEARCH_USER/d' /fluentd/etc/${FLUENTD_CONF}
fi
if [ -z ${FLUENT_ELASTICSEARCH_PASSWORD} ] ; then
sed -i '/FLUENT_ELASTICSEARCH_PASSWORD/d' /fluentd/etc/${FLUENTD_CONF}
fi
the issue is still open for k8s |
@tuchodi I'm sorry, but I'm not specified that I used the |
@vpistis
it will fail unless you are providing |
correct! ...and last but not least, I use fluentd with |
Hmm... Does anyone know what is the best way to apply configMap with elasticsearch image? |
I used a config map with init container that copies the config files from a config map to an empty dir volume, this way it doesn't fail with the write permissions error
|
tried the above recommendation but it fails with:
Any idea of what I'm doing wrong ? using same fluentd-kubernetes-daemonset:elasticsearch image and trying to configure fluentd via a configMap. passing the following args in the init container:
|
Check this out #173 |
I have FLUENT_UID set to "0". Removed it and now I get:
|
it seems that it was expecting fluent.conf to be present. renamed it in my configmap and now works fine. |
can you elaborate on what you did @hkailantzis |
hey @kurktchiev. just used the example above posted by "itayariel", but in my case, had to name the config as "fluent.conf" inside my configMap. : e.g.
|
wouldn't it be an option to keep the configuration for eg. elasticsearch in the container - where the sed command will work - but move the other configs in a folder like
and reference it than via
which is a mount from the config maps? |
@itayariel & @hkailantzis Even I have created configmap(fluent.conf) on kube-system namespace as well. <Created a file "fluentd.config" with fluentd configuration, and executed "kubectl create configmap fluent.conf --from-file=fluentd.config --namespace=kube-system > Normal Scheduled 2m44s default-scheduler Successfully assigned kube-system/fluentd-5gcgr to |
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
I'm running into the same issue as @Madhansudhan . I don't quite understand why. |
This issue has been automatically marked as stale because it has been open 90 days with no activity. Remove stale label or comment or this issue will be closed in 30 days |
This issue was automatically closed because of stale in 30 days |
We can have the config files retrieved from configMap ,Instead of baking the fluentd conf files inside the docker image. This would eneble user to give custom configurations.
The text was updated successfully, but these errors were encountered: