top of page
Search

CKA EXAM QS-11 2025

Question - 11:


Create a PersistentVolumeClaim (PVC) named mariadb in the mariadb namespace with the following specifications

Access Mode: ReadWriteOnce

Size: 250mi


There is only one existing PersistentVolume

Edit the MariaDB Deployment file located at ~/mariadb-deployment.yaml to use PVC you created in the previous step.


=============================================================

Answer:

1- Nevigate kubernetes URL then then search PersistentVolumeClaim


Copy Sample manifiest file from above URL


#vim pvc.yaml

apiVersion: v1

kind: PersistentVolumeClaim

metadata:

name: mariadb

spec:

accessModes:

- ReadWriteOnce

volumeMode: Filesystem

resources:

requests:

storage: 250Mi

:wq!


#kubectl create -f pvc.yaml -n mariadb

#kubectl get pvc -n mariadb===> #it will in pending state by default


vim ~/mariadb-deployment.yaml ====>#Search claimName: "" and inside inverted comma


write pvc name u create like below


claimName: "mariadb"


#kubectl create -f mariadb-deployment.yaml -n mariadb


#kubectl get pvc -n mariadb ====> # now PVC must be in bound state.

=================================================================

Note: practice at home please deploy below on your local LAB:

#kubectl get sc #local-path sc should be created

 
 
 

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page