Closed sfc-gh-aivanou closed 1 year ago
@sfc-gh-aivanou Can you run this same pod configuration with an image like busybox
and do some interactive testing to ensure the container has the correct permissions to access the file? Nothing jumps out at me as obviously wrong, but the setup here is slightly complex.
Hi @sfc-gh-aivanou . Did you solve this problem?
oh, I actually stopped using it, I am just using logging
instead. Will try to debug it further tomorrow, and report back.
I ran into a similar permission issue as well. One issue worth noting is that the official otel collector docker container is built using FROM scratch
, which means that there's not a writable directory by default. This means that you either need to create a custom container or you need to create a writable volume to store the file(s) that are exported.
@atingchen it might make sense to add a warning to the README about that. If you're interested, I can put up a PR tomorrow
I ran into a similar permission issue as well. One issue worth noting is that the official otel collector docker container is built using
FROM scratch
, which means that there's not a writable directory by default. This means that you either need to create a custom container or you need to create a writable volume to store the file(s) that are exported. @atingchen it might make sense to add a warning to the README about that. If you're interested, I can put up a PR tomorrow
I am glad to see a PR.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
@ghost Any progress?
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers
. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
This issue has been closed as inactive because it has been stale for 120 days with no activity.
Describe the bug When running
fileexporter
on k8s, I am getting the following error:The
/data
is mounted from the host fs, with the following configuration:Container is executed in privileged mode.
Steps to reproduce
My k8s resources:
What did you expect to see? The pod should have access to
metrics.json
fileWhat did you see instead? The pod does not have access to
metrics.json