This is my first try in kubernetes. Trying to install minios storage i am finding error in yaml file
apiVersion: v1
kind: PersistentVolume
metadata:
name: pv-name-1
spec:
capacity:
storage: 1Ti
volumeMode: Filesystem
accessModes:
- ReadWriteOnce
persistentVolumeReclaimPolicy: Retain
storage-class: local-storage
local:
path: /mnt/d/minio
nodeAffinity:
required:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- docker-desktop
error: error parsing pvc-1.yaml: error converting YAML to JSON: yaml: line 8: mapping values are not allowed in this context
I