Hi Team,
Kindly assist why this question is marked as False. Thanks!
Question:
Solve this question on: ssh cluster1-controlplane
There is a persistent volume named apple-pv-cka04-str. Create a persistent volume claim named apple-pvc-cka04-str and request a 40Mi of storage from apple-pv-cka04-str PV.
The access mode should be ReadWriteOnce and storage class should be manual.
Answer:
cluster1-controlplane ~ ➜ k get pvc apple-pv-cka04-str -o yaml
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
annotations:
pv.kubernetes.io/bind-completed: "yes"
creationTimestamp: "2025-04-29T21:51:45Z"
finalizers:
- kubernetes.io/pvc-protection
name: apple-pv-cka04-str
namespace: default
resourceVersion: "13297"
uid: 18cf423e-af0f-4020-901d-7646506e4120
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 40Mi
storageClassName: manual
volumeMode: Filesystem
volumeName: apple-pv-cka04-str
status:
accessModes:
- ReadWriteOnce
capacity:
storage: 125Mi
phase: Bound
luster1-controlplane ~ ➜ k get pvc
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS VOLUMEATTRIBUTESCLASS AGE
apple-pv-cka04-str Bound apple-pv-cka04-str 125Mi RWO manual <unset> 21m
orange-pvc-cka07-str Bound orange-pv-cka07-str 150Mi RWO orange-stc-cka07-str <unset> 105m