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

Support specifying additional containers for OpenTelemetryCollector podspec #1684

Closed
diurnalist opened this issue Apr 27, 2023 · 2 comments · Fixed by #1870
Closed

Support specifying additional containers for OpenTelemetryCollector podspec #1684

diurnalist opened this issue Apr 27, 2023 · 2 comments · Fixed by #1870
Assignees
Labels
area:collector Issues for deploying collector

Comments

@diurnalist
Copy link

diurnalist commented Apr 27, 2023

The primary motivation for this request is to add additional sidecars to the otel-collector pods that are controlled by the operator.

One use-case is for if you want to tell the collector to export to a sidecar that acts as an authenticated proxy (in case the ability to specify static headers in the otel-collector otlp export config is insufficient.) I'm sure there are other use cases that would apply in the future.

The Prometheus operator has support for a containers field in the spec, which allows adding or even overriding base container definitions. I'm not sure we have to go as far as that, but having some sort of additionalContainers would be nice. For completeness, initContainers support may also be helpful for supporting different flavors of deployment environment.

@initharrington
Copy link

I came here from open-telemetry/opentelemetry-helm-charts#650

I am trying to use file_storage extension and the operator.

I get a permission issue on start up:

2023-05-16T14:30:51.451Z	info	extensions/extensions.go:55	Stopping extensions...
2023-05-16T14:30:51.451Z	info	service/service.go:180	Shutdown complete.
Error: cannot start pipelines: open /var/lib/storage/otc/exporter_sumologic__logs: permission denied
2023/05/16 14:30:51 collector server run finished with error: cannot start pipelines: open /var/lib/storage/otc/exporter_sumologic__logs: permission denied

I cannot follow the initContainer workaround using the operator.

@jaronoff97 jaronoff97 self-assigned this Jun 26, 2023
@jaronoff97 jaronoff97 added the area:collector Issues for deploying collector label Jun 26, 2023
@diurnalist
Copy link
Author

#1870 only adds support for init containers, not additional containers that run alongside the main pod container.

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

Successfully merging a pull request may close this issue.

3 participants