Logstash filter plugin .gem file install on kubernetes Can't file local file

Im trying to install a custom .gem filter plugin using kubernetes StatefulSet. The gem file is in /tmp directory. pod log is showing ERROR: File not found for: file:///tmp/logstash-filter-kubernetes-0.3.1.gem, message: Can't file local file /tmp/logstash-filter-kubernetes-0.3.1.gem

Below is StatefulSet code snippet.

image: "grafana/logstash-output-loki:1.0.1"
        imagePullPolicy: "IfNotPresent"
            - '/bin/sh'
            - '-c'
            - 'logstash-plugin install --no-verify file:///tmp/logstash-filter-kubernetes-0.3.1.gem && logstash -f /usr/share/logstash/pipeline/logstash.conf'

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.