Hi, Can anybody help me to correct yaml file ? getting error while creating dep . . .

Saurabh Sharma:
Hi, Can anybody help me to correct yaml file ?

getting error while creating deployment.

controlplane $ kubectl create -f deployment-definition-3.yaml
error: error parsing deployment-definition-3.yaml: error converting YAML to JSON: yaml: line 10: found character that cannot start any token
controlplane $ ^M

apiVersion: apps/v1
kind: Deployment
metadata:
name: httpd-frontend1
labels:
app: frontend
spec:
selector:
matchLabels:
app: frontend
replicas: 3
template:
metadata:
name: httpd:2.4-alpine
labels:
app: frontend
spec:
- containers:
- name: httpd:2.4-alpine
image: httpd:2.4-alpine

Rupali Kadam:
Please check alignment.

Saurabh Sharma:
thanks but … Already checked many times

Marco Tony:
Check if you used tabs

Saurabh Sharma:
Thanks working fine … after using visual studio code for writing yaml … problem was in indentation and name of pod