nerdexam
Linux_Foundation

CKA · Question #57

First, create a new StorageClass named local-path for an existing provisioner named rancher.io/local-path. Set the volume binding mode to WaitForFirstConsumer. Not setting the volume binding mode or…

Task Summary You need to: SSH into cka000046 Create a StorageClass named local-path using the provisioner rancher.io/local-path Set the volume binding mode to WaitForFirstConsumer Make this StorageClass the default ssh cka000046 cat <<EOF > local-path-sc.yaml apiVersion…

Submitted by anjalisingh· May 4, 2026Storage

Question

First, create a new StorageClass named local-path for an existing provisioner named rancher.io/local-path. Set the volume binding mode to WaitForFirstConsumer. Not setting the volume binding mode or setting it to anything other than WaitForFirstConsumer may result in a reduced score. Next, configure the StorageClass local-path as the default StorageClass.

Explanation

Task Summary You need to: SSH into cka000046 Create a StorageClass named local-path using the provisioner rancher.io/local-path Set the volume binding mode to WaitForFirstConsumer Make this StorageClass the default

ssh cka000046 cat <<EOF > local-path-sc.yaml 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 EOF kubectl apply -f local-path-sc.yaml kubectl get storageclass

Topics

#StorageClass#Provisioner#Volume Binding Mode#Default StorageClass

Community Discussion

No community discussion yet for this question.

Full CKA Practice