What is wrong with this template?

I am following Cloud Guru K8S course and have issues with the template they provided. I can’t see what’s wrong.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: blue-deployment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: bluegreen-test
      color: blue
  template:
    metadata:
      labels:
        app: bluegreen-test
        color: blue
    spec:
      containers:
      - name: nginx
        image: linuxacademycontent/ckad-nginx:blue
        ports:
        - containerPort: 80

kubectl apply -f my-deployment.yml
error: error parsing blue-deployment.yml: error converting YAML to JSON: yaml: line 4: found character that cannot start any token

Hi Jedrek:

YAML doesn’t allow tabs for indentation, only spaces…
Can you check if your editor of choice is inserting tabs to indent?

Best regards,

Xavi