Skip to content

Question-1 MariaDB-Persistent volume #10

Description

@JuhaniUri

Hi!

There’s an issue with the solution: you’re missing volumeName: mariadb-pv in the PVC configuration. Without specifying volumeName, the PVC may not bind to the correct existing PV.

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: mariadb
  namespace: mariadb
spec:
  volumeName: mariadb-pv
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 250Mi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions