CKA EXAM QS-11 2025
- Ingress now
- Oct 20
- 1 min read
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
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:




Comments