Hi Guys,
I am trying to create one persistent volume in kubernetes. But it shows me the below error.
$ kubectl create -f pv.yml
* spec.accessModes: Required value: at least 1 access mode is required
I have written one yml file as shown below.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pv1
labels:
name: pv1
spec:
resources:
requests:
storage: 2Gi