Coder Social home page Coder Social logo

Comments (11)

rdpa avatar rdpa commented on August 15, 2024 8

Seeing this same issue, my (hopefully temporary) hack workaround was to add

            - name: FLUENT_ELASTICSEARCH_USER
              value: none
            - name: FLUENT_ELASTICSEARCH_PASSWORD
              value: none

to the container env section of the daemonset manifest.

from fluentd-kubernetes-daemonset.

jpke avatar jpke commented on August 15, 2024 1

@kfox1111, there is a pr in for the helm chart to do that helm/charts#5210

from fluentd-kubernetes-daemonset.

aonz avatar aonz commented on August 15, 2024 1

We got a similar problem when we tried to install multiple daemonsets (we are testing our a few log management systems like loggly and logz.io).

The error (when installing the 2nd daemonset) was sed: cannot rename /fluentd/etc/<id>: Device or resource busy which should be from the sed command on entrypoint.sh.

It seems like that only Elasticsearch image that needs these 2 parameters, would it be possible to remove them for the other images?

from fluentd-kubernetes-daemonset.

pierrebeaucamp avatar pierrebeaucamp commented on August 15, 2024

Further, shouldn't the two conditionals in entrypoint.sh us -n instead of -z?

from fluentd-kubernetes-daemonset.

Itfly avatar Itfly commented on August 15, 2024

@nrmitchi should add "-p /fluentd/plugins" under command to add the plugins

from fluentd-kubernetes-daemonset.

nrmitchi avatar nrmitchi commented on August 15, 2024

Good call; I'll probably switch to @rdpa 's solution which seems slightly more clean until it's fixed

from fluentd-kubernetes-daemonset.

kfox1111 avatar kfox1111 commented on August 15, 2024

You can use an init container to copy the configmap's data to an emptydir. I pull this trick all the time when I want to tweak the configmap in the pod during deployment.

from fluentd-kubernetes-daemonset.

repeatedly avatar repeatedly commented on August 15, 2024

Which approach is better for fixing this issue?
Modify entrypoint.sh or update daemonset yaml prototype with jpke's patch way?

from fluentd-kubernetes-daemonset.

whereisaaron avatar whereisaaron commented on August 15, 2024

Here is an example workaround the AWS EKS Workshop website suggests, using an init container similar to the helm chart approach.

https://eksworkshop.com/logging/deploy/

https://eksworkshop.com/logging/deploy.files/fluentd.yml

      # Because the image's entrypoint requires to write on /fluentd/etc but we mount configmap there which is read-only,
      # this initContainers workaround or other is needed.
      # See https://github.com/fluent/fluentd-kubernetes-daemonset/issues/90
      initContainers:
      - name: copy-fluentd-config
        image: busybox
        command: ['sh', '-c', 'cp /config-volume/..data/* /fluentd/etc']
        volumeMounts:
        - name: config-volume
          mountPath: /config-volume
        - name: fluentdconf
          mountPath: /fluentd/etc

from fluentd-kubernetes-daemonset.

github-actions avatar github-actions commented on August 15, 2024

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

from fluentd-kubernetes-daemonset.

github-actions avatar github-actions commented on August 15, 2024

This issue was automatically closed because of stale in 30 days

from fluentd-kubernetes-daemonset.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.