Skip to content

Missing Subpath on Volume Mount Cases Error in Postgres #1

@rossworth

Description

@rossworth

Postgres was in a crash loop as initdb expected a blank directory but instead the directory contained lost+found.

Resolved by adding sub path to the postgres volume mount.

      volumeMounts:
        - name: data
          mountPath: /var/lib/postgresql/data
          subPath: data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions