apiVersion: v1 kind: Pod metadata: creationTimestamp: null labels: run: . . .

Rahul:
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: sidious
name: sidious
spec:
volumes:

  • name: sidious-vol
    persistentVolumeClaim:
    claimName: sidious-pvc
    containers:
  • env:
    • name: MYSQL_ROOT_PASSWORD
      value: my-secret-pw
      image: mysql
      name: sidious
      volumeMounts:
      • name: sidious-vol
        mountPath: “/var/lib/mysql”
        resources: {}
        dnsPolicy: ClusterFirst
        restartPolicy: Always
        status: {}

For this Pod, I am getting below error
error: error parsing po.yaml: error converting YAML to JSON: yaml: line 12: found character that cannot start any token

Mayur Sharma:

persistentVolumeClaim:
          claimName: sidious-pvc

Is this copy paste, if so, try manually writing it .

Shwetha Shenoy V:
Possibly a tab character instead of space. Check that.

Balaji K:
@Mayur Sharma always do “:set paste” in vim so that it will avoid unnecessary spaces/tabs.

Tej_Singh_Rana:
You can see tab character through “:set list” if that’s not the case then remove that line and type again.
Try what Balaji K has suggested.