Hi all i got error "kubectl create -f pod.yaml error: error parsing pod.yaml: er . . .

Piyush:
Hi all i got error "kubectl create -f pod.yaml
error: error parsing pod.yaml: error converting YAML to JSON: yaml: line 9: could not find expected ‘:’ in yaml file apiVersion: v1…I have created directory /var/www/html
kind: Pod
metadata:
name: pod-pvc
spec:
containers:
- name: myfrontend
image:nginx
volumeMounts:
- mountPath: “/var/www/html”
name: mypd
volumes:
- name: mypd
persistentVolumneClaim:
claimName: testpvc

Shwetha:
It appears that the mountPath and name are at different levels although they both need to children (at same level) of volumeMounts.

Tej Singh Rana:
Give space after image:

Aneek Bera:
two things : space after image, claimName should have a correct indentation.

Tallulah Carlisle:
I noticed that persistentVolumeClaim is also spelt wrong