<p>the screenshots are the code from vs code YML file and CMD error iam getting while am trying to apply the yml file<a href="https://i.stack.imgur.com/Gv2g4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gv2g4.png" alt="enter image description here" /></a></p>

Frankline Kiplangat
<p>Your indentation of service wrong after <code>---</code> here full YAML block for reference</p>
<pre><code>apiVersion: v1
kind: Service
metadata:
  name: order
spec:
  selector:
    app: order
  ports:
    - protocol: TCP
      port: 8080
      targetPort: 8081
  type: ClusterIP
</code></pre>
<p>Reference document : <a href="https://cloud.google.com/kubernetes-engine/docs/concepts/service#services_of_type_clusterip" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/concepts/service#services_of_type_clusterip</a></p>
