Hi Guys,
I am new in kubernetes. I am trying to create one pod. But it shows me the below error.
apiVersion: v1
kind: Pod
metadata:
name: httpd
labels:
name: httpd
spec:
containers:
- name: httpd-con
image=apache-webser-php
volumeMounts:
- name: pvc-vol
mountPath: /var/www/html
volumes:
- name: pvc-vol
persistentVolumeClaim:
claimName: pvc-volume
$ kubectl apply -f pod_pvc.yml
error: error parsing pod_pvc.yml: error converting YAML to JSON: yaml: line 11: could not find expected ':'