Hi all I am stuck with this question in the lightning lab..Do I need to create a . . .

Edmund Kueh:
Hi all I am stuck with this question in the lightning lab…Do I need to create a storage class for this question ?

Tej_Singh_Rana:
Hello, @Edmund Kueh
We just discussed this here:
https://kodekloud.slack.com/archives/CHMV3P9NV/p1608184127118200

Tej_Singh_Rana:
Let me know if you’re still having an issue.

Edmund Kueh:
@Tej_Singh_Rana Yes I am having issue…And I am running out of options…I have created Storage Class…I have modified the PVC in terms of storage capacity (reducing 2 Gi to 1 Gi) and access Mode (RWM to RWO)…I have also modified the pod definition file …

Tej_Singh_Rana:
But without information how did you create SC?

Edmund Kueh:
Details are not there, so I took it from the documentation :

apiVersion: <http://storage.k8s.io/v1|storage.k8s.io/v1>
kind: StorageClass
metadata:
  name: slow
provisioner: <http://kubernetes.io/gce-pd|kubernetes.io/gce-pd>
parameters:
  type: pd-standard

Tej_Singh_Rana:
No, we don’t have to create if it’s not specified in the question.

Tej_Singh_Rana:
https://kubernetes.io/docs/concepts/storage/persistent-volumes/#class
> A PV can have a class, which is specified by setting the storageClassName attribute to the name of a https://kubernetes.io/docs/concepts/storage/storage-classes/|StorageClass. A PV of a particular class can only be bound to PVCs requesting that class. A PV with no storageClassName has no class and can only be bound to PVCs that request no particular class.
Class name should be match.

Tej_Singh_Rana:

Sapan Kumar:
Also have a look at the pvc name defined in the deployment

Edmund Kueh:
Thanks all…Got it…There are several things that need to be fixed at the PVC: 1. Access Mode - Change to RWO 2. Request Size - Change to 1 Gi instead of 2 Gi 3. Edit the Deployment file instead of pod YAML file…