opentelemetry-operator icon indicating copy to clipboard operation
opentelemetry-operator copied to clipboard

How do you configure opentelemetry collectors to use a storageclass for pvcs it creates

Open jacobwalters opened this issue 2 years ago • 7 comments

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.

jacobwalters avatar May 26 '22 20:05 jacobwalters

Hey @jacobwalters, can you clarify: are you are using the opentelemetry-collector chart or opentelemetry-operator chart?

TylerHelmuth avatar May 26 '22 21:05 TylerHelmuth

@TylerHelmuth, Im deploying the opentelemetry-collector chart https://github.com/open-telemetry/opentelemetry-helm-charts/releases/tag/opentelemetry-collector-0.17.0

jacobwalters avatar May 27 '22 14:05 jacobwalters

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?

TylerHelmuth avatar May 27 '22 14:05 TylerHelmuth

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

jacobwalters avatar May 27 '22 14:05 jacobwalters

This issue is with the OpenTelemetryCollector custom resource, managed by the operator. The issue should move to the operator repo.

Aneurysm9 avatar May 27 '22 15:05 Aneurysm9

@jacobwalters , did you try using this: https://github.com/open-telemetry/opentelemetry-operator/blob/main/docs/api.md#opentelemetrycollectorspecvolumeclaimtemplatesindexspec ?

yuriolisa avatar Jun 08 '22 11:06 yuriolisa

@jacobwalters Is this still an open question? Can you close the issue, if your question is answered? Thanks

VineethReddy02 avatar Aug 30 '22 01:08 VineethReddy02

@jaronoff97, I believe we could close this issue, right?

yuriolisa avatar May 22 '23 07:05 yuriolisa