elastic / elastic/beats

Run filebeat in k8s failed, container error

Open
#43,375 3 comments 0 reactions 0 assignees View on GitHub
needs_team Stalled
Dominant language
Go
Stars
12.7k
Forks
5k
Avg merge
2d 2h
Merged PRs (30d)
364

Description

It seems that /tmp/filebeat.yaml is a directory, so featbeat program can not read the config. But when I change the mountPath as bellow picture, the container error log show that some errors about file permission. thanks for you help, the following is the error log, filebeat configMap and deployment file:

note:
①the reason I copy filebeat.yaml to '/tmp' is that /etc/filebeat.yaml 's permission is 777 , filebeat need 644;
②filebeat run in pod as a sidecar container with main container higress-gateway.

error log:

![Image](https://github.com/user-attachments/assets/284a0920-cf8c-4e0e-8aab-bc7eed202df6)

filebeat configMap:

![Image](https://github.com/user-attachments/assets/48877410-add5-4bd6-8ec7-24c7a11a8561)

Deployment file:

![Image](https://github.com/user-attachments/assets/c0fda043-e837-4f97-831e-d00d2114133a)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.