Hey Community,
I’m doing this practice test: Certified Kubernetes Application Developer (CKAD) | KodeKloud
here I created a pv with below manifest
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-log
spec:
capacity:
storage: 100Mi
accessModes:
- ReadWriteMany
persistentVolumeReclaimPolicy: Retain
hostPath:
path: “/pv/log”
and created pvc with below manifest
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: claim-log-1
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 50Mi
but pvc is in pending state, when I describe pvc
k describe pvc claim-log-1
Name: claim-log-1
Namespace: default
StorageClass:
Status: Pending
Volume:
Labels:
Annotations:
Finalizers: [kubernetes.io/pvc-protection]
Capacity:
Access Modes:
VolumeMode: Filesystem
Used By:
Events:
Type Reason Age From Message
Normal FailedBinding 7s (x2 over 12s) persistentvolume-controller no persistent volumes available for this claim and no storage class is set
as I’m not using SC here I’m directly creating pv and pvc