percona-postgresql-operator icon indicating copy to clipboard operation
percona-postgresql-operator copied to clipboard

Adding a custom volume to sidecars and instances?

Open gregory112 opened this issue 6 months ago • 2 comments

Proposal

Under the cr.yml reference, there is no options to add another volume to sidecars or instances, for example to add a shared emptyDir volume for logs ingestion?

Use-Case

Postgres typically logs into file defined in log_destination setting under postgresql.conf. This can be ingested using means such as fluentbit or promtail to be sent to OpenTelemetry collectors.

Is this a feature you are interested in implementing yourself?

Yes

Anything else?

No response

gregory112 avatar Jun 20 '25 09:06 gregory112

So we are planning on having persistent logs in the operator, and to support this, we are thinking of introducing separate pvs to store them, related task: https://perconadev.atlassian.net/browse/K8SPG-851.

This solution could also be used to introduce additional pvcs and volumes.

gkech avatar Sep 26 '25 09:09 gkech

@gregory112 And I have created the task to add all needed features for sidecars https://perconadev.atlassian.net/browse/K8SPG-864

hors avatar Sep 26 '25 10:09 hors