Bird
0
0

A user wrote this PVC YAML but it fails to bind:

medium📝 Troubleshoot Q7 of 15
Kubernetes - Persistent Storage
A user wrote this PVC YAML but it fails to bind:
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: test-pvc
spec:
  accessModes:
    - ReadWriteMany
  resources:
    requests:
      storage: 10Gi

What is the most probable error?
ANo PersistentVolume supports ReadWriteMany access mode
BThe storage size 10Gi is too small
CThe PVC is missing a storageClassName field
DThe metadata.name is invalid
Step-by-Step Solution
Solution:
  1. Step 1: Check access mode compatibility

    ReadWriteMany is less commonly supported; if no PV supports it, PVC cannot bind.
  2. Step 2: Validate other fields

    Storage size 10Gi is reasonable; storageClassName is optional; metadata.name is valid.
  3. Final Answer:

    No PersistentVolume supports ReadWriteMany access mode -> Option A
  4. Quick Check:

    PVC bind failure often due to unsupported access mode [OK]
Quick Trick: Check PV supports requested access mode before binding [OK]
Common Mistakes:
  • Assuming storage size too small causes bind failure
  • Thinking storageClassName is always required
  • Misreading metadata.name as invalid

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes