Hi all I am stuck with this question in the lightning lab…Do I need to create a storage class for this question ?
Hello, @Edmund Kueh
We just discussed this here:
Let me know if you’re still having an issue.
@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 …
But without information how did you create SC?
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
No, we don’t have to create if it’s not specified in the question.
> 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.
Also have a look at the pvc name defined in the deployment
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…