Skip to content

Support a dedicated PVC for logs (separate from pgData) #1678

Open

Description

@yoav-katz

Proposal

K8SPG-851 (and the shared tech design in K8SPXC-485 / K8SPSMDB-297) adds persistent logging so logs survive a Pod restart, but in the current implementation logs are written to the same PVC as the instance data (e.g. pgBackRest logs to the pgData volume). There's no option to give logs their own PVC.

Add an optional dedicated logs volume claim spec, following the same pattern already used for WAL
a new LogVolumeClaimSpec that, when set, mounts a separate PVC for Patroni/Postgres/pgBackRest logs instead of writing them to pgData. When unset, behavior is unchanged.

Use-Case

  1. As a user, I don't want runaway log growth to risk filling my Postgres data volume and causing an outage.
  2. As a user, I want to choose a cheaper/different storage class for logs than for my Postgres data.
  3. As a user, I want log volume size to scale independently of data volume size.

Is this a feature you are interested in implementing yourself?

Yes

Anything else?

No response

Activity

  1. egegunes commented on Jul 13, 2026

    @egegunes
    Contributor
  2. yoav-katz commented on Jul 13, 2026

    @yoav-katz
    ContributorAuthor

    Hi @egegunes, thank you!

    This builds directly on the log-path changes in #1675 (K8SPG-851), which is still open. What's the usual convention here for dependent work - do you base the branch on the open PR and open it as a draft, or wait until it's merged to main first?

  3. egegunes commented on Jul 14, 2026

    @egegunes
    Contributor

    @yoav-katz we usually base the new branch on open PR and open it as a draft to get early feedback. I won't be notified for draft PRs though, please mention me directly.

  4. yoav-katz commented on Aug 17, 2026

    @yoav-katz
    ContributorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions