Skip to content
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

readOnlyFilesystem not supported by init image #824

Open
saefty opened this issue May 21, 2024 · 1 comment
Open

readOnlyFilesystem not supported by init image #824

saefty opened this issue May 21, 2024 · 1 comment

Comments

@saefty
Copy link

saefty commented May 21, 2024

Bug Report

When using the init image with custom s3 configuration files it is not possible anymore to start fluent bit in a readOnlyFilesystem environment using ECS Fargate.

https://github.com/aws/aws-for-fluent-bit/blob/mainline/init/fluent_bit_init_process.go writes various files into the file system.

It would be possible to mount volumns when the fluent_bit_init_process would clearly define a working directory which will be used to write files.

When we mount /init/ as a volumn this will wipe the folder leading to missing files.
When we only mount /init/fluent-bit-init-s3-files/ receive errors like:

time="2024-05-21T15:42:17Z" level=fatal msg="[FluentBit Init Process] Cannot create the file: /init/invoke_fluent_bit.sh\n"
grafik

To Reproduce

  • ECS Fargate with readOnlyFilesystem

Expected behavior

Screenshots

Your Environment

  • Version used: init-2.32.2.20240425
  • Configuration:
  • Environment name and version (e.g. Kubernetes? What version?): ECS Fargate 1.4
  • Server type and version: -
  • Operating System and version: -
  • Filters and plugins: -
@saefty
Copy link
Author

saefty commented May 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant