<p>the error:</p>
<blockquote>
<p>Error from server (BadRequest): error when creating &quot;client-node-port.yaml&quot;: Service in version &quot;v1&quot; cannot be handled as a Service: strict decoding error: unknown field &quot;spec.ports[0].ports&quot;</p>
</blockquote>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: client-node-port
spec:
  type: NodePort
  ports:
    - ports: 3050
      targetPort: 3000
      nodePort: 31515
  selector:
    component: web
</code></pre>
<p>this is the file &quot;client-node-port.yaml&quot;, I also have a file named &quot;client-pod.yaml&quot; that is <code>kind: pod</code></p>

gabriele locatelli
<p>that would be a simple typo. You defined <code>ports: 3050</code> instead of <code>port: 3050</code></p>
