Bird
0
0

What will happen if you apply this PostgreSQL operator manifest with 'storage.size' set to '10Gi'?

medium📝 Command Output Q5 of 15
Kubernetes - Operators and Custom Resources
What will happen if you apply this PostgreSQL operator manifest with 'storage.size' set to '10Gi'? apiVersion: postgres-operator.crunchydata.io/v1 kind: PostgresCluster metadata: name: pg-cluster spec: storage: size: 10Gi
AThe storage size will default to 1Gi
BA PersistentVolumeClaim of 10Gi will be created for the database
CThe operator will throw a syntax error
DThe database will run without persistent storage
Step-by-Step Solution
Solution:
  1. Step 1: Understand storage.size field

    This field defines the size of persistent storage requested for the database.
  2. Step 2: Operator creates PersistentVolumeClaim

    The operator uses this size to create a PVC to store database data persistently.
  3. Final Answer:

    A PersistentVolumeClaim of 10Gi will be created for the database -> Option B
  4. Quick Check:

    storage.size sets PVC size = 10Gi [OK]
Quick Trick: storage.size defines PVC size for database data [OK]
Common Mistakes:
  • Assuming no storage is created
  • Expecting syntax error for size format
  • Thinking default size overrides specified size

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes