top of page
Search

CKA EXAM QS-7 2025

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)

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


ree


apiVersion: storage.k8s.io/v1

kind: StorageClass

metadata:

name: local-path

annotations:

storageclass.kubernetes.io/is-default-class: "true"

volumeBindingMode: WaitForFirstConsumer


Then deploy you manifiest:

#kubectl create -f storageclass.yaml

#kubectl get sc # to verify


 
 
 

1 Comment

Rated 0 out of 5 stars.
No ratings yet

Add a rating
RR
Oct 20
Rated 5 out of 5 stars.

Thank you

Like
bottom of page