CKA EXAM QS-7 2025
- Ingress now
- Oct 20
- 1 min read
Question 7:
1-First create a new StorageClasss named local-path for an existing provisioner named rancher.io/local-path.
2-Set volume binding mode to: WaitFroFirstCustomer
3-Not setting the volume binding mode or setting it to anything other than WaitFroFirstCustomer may result in a reduced score.
4-Next configure the StorageClass local-path as the default StorageClass.
5-Do not modify any existing Deployment or PersistentVolumeClaims. Failure to do so may result in a reduced score.
============================================================
NOTE:
https://kubernetes.io/docs/concepts/storage/storage-classes/ ( edit what is exact requirement, what they are ask in the QS)
============================================================

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: local-path
annotations:
storageclass.kubernetes.io/is-default-class: "true"
provisioner: rancher.io/local-path
volumeBindingMode: WaitForFirstConsumer
Then deploy you manifiest:
#kubectl create -f storageclass.yaml
#kubectl get sc # to verify




Thank you