opentelemetry-operator
opentelemetry-operator copied to clipboard
How do you configure opentelemetry collectors to use a storageclass for pvcs it creates
I am creating an opentelemetry collector to scrape prometheus metrics in statefulset mode. I am seeing that the operator creates a pvc that the collector pod is going to use. It is creating the pvc with the storageclass "gp2". In our environment we have a custom storageclass. How do I configure the operator or collector to create the pvcs using a different storageclass than gp2.
Hey @jacobwalters, can you clarify: are you are using the opentelemetry-collector chart or opentelemetry-operator chart?
@TylerHelmuth, Im deploying the opentelemetry-collector chart https://github.com/open-telemetry/opentelemetry-helm-charts/releases/tag/opentelemetry-collector-0.17.0
I am seeing that the operator creates a pvc that the collector pod is going to use
Are you referring to the opentelemetry operator here?
Im referring to the controller. The controller creating the collector pod is creating a pvc for the collector pod to use, I would like to modify the controller so it creates a pvc with our storageclasses
This issue is with the OpenTelemetryCollector
custom resource, managed by the operator. The issue should move to the operator repo.
@jacobwalters , did you try using this: https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#opentelemetrycollectorspecvolumeclaimtemplatesindexspec ?
@jacobwalters Is this still an open question? Can you close the issue, if your question is answered? Thanks
@jaronoff97, I believe we could close this issue, right?