<p>I am testing to deploy two pods one on master and on one worker node for learning purpose.</p>
<p>I have the following yaml file to deploy a pod on a cluster on Master node.</p>
<pre><code>apiVersion: v1 
kind: Pod
metadata:
name: edge-server
labels: 
    app: edge-server
spec:
 containers:
  - name:  tensor-keras
    image: tensor-keras:latest
    command: [&quot;sleep&quot;]
    args: [&quot;infinity&quot;]
    imagePullPolicy: Never
    ports:
    - containerPort: 31700
   nodeSelector:
       node_type: &quot;kmaster&quot; #also tried without quotes 
</code></pre>
<p>I have labelled the master node as node_type kmaster, I am retrieving the below error<br />
&quot;error parsing line 15 didnot find expected key&quot;</p>
<p>Thank you very much for your help</p>

abaair davis
<p>It may not like your indentation. It is kind of out of wack. You have multiple levels of indentation in one document. I see single, double, and 4-space indentation. YAML indentation is very important otherwise the wrong JSON is generated. Try this:</p>
<pre><code>apiVersion: v1 
kind: Pod
metadata:
  name: edge-server
  labels: 
    app: edge-server
spec:
  containers:
    - name:  tensor-keras
      image: tensor-keras:latest
      command: [&quot;sleep&quot;]
      args: [&quot;infinity&quot;]
      imagePullPolicy: Never
      ports:
      - containerPort: 31700
  nodeSelector:
    node_type: kmaster
</code></pre>
