<p>I have following YAML I am creating two pods in one YAML file.</p>
<pre><code>  apiVersion: v1
    kind: Pod
    metadata:
       name: test
       labels:
          app: test
    spec:
       containers:
         - name: test
           image: test:latest
           command: [&quot;sleep&quot;]
           args: [&quot;infinity&quot;]

    kind: Pod
    metadata:
       name: testing1
       labels:
          app: testing1
    spec:
       containers:
         - name: testing1
           image: testing1:latest
           command: [&quot;sleep&quot;]
           args: [&quot;infinity&quot;]
</code></pre>
<p>I am retrieving the following error. I checked the code on lint too, but I am unable to solve it.</p>
<pre><code>error parsing pipeline.YAML: error converting YAML to JSON: line 27 could not find expected ':;
</code></pre>
<p>Help is highly appreciated. Thanks</p>

Mazia
<p>Try this:</p>
<pre><code>apiVersion: v1
kind: Pod
metadata:
   name: test
   labels:
      app: test
spec:
   containers:
   - name: test
     image: test:latest
     command: [&quot;sleep&quot;]
     args: [&quot;infinity&quot;]
---
apiVersion: v1
kind: Pod
metadata:
   name: testing1
   labels:
      app: testing1
spec:
   containers:
   - name: testing1
     image: testing1:latest
     command: [&quot;sleep&quot;]
     args: [&quot;infinity&quot;]
</code></pre>
<p>There was an indentation error under containers section and you have to separate the pod definition by <code>--- </code> and also you had to add the apiVersion.</p>
