<p>I have been breaking my head trying to understand what the issue is, it shows the following error message: </p>

<blockquote>
  <p>error parsing feedback.yaml: error converting YAML to JSON:
  yaml: line 10: mapping values are not allowed in this context</p>
</blockquote>

<pre><code>apiVersion: v1
kind: Service
metadata:
   name: feedback
   labels:
     run: feedback
spec:
   ports:
   – port: 80
     targetPort: 3000
     protocol: TCP
   type: NodePort
   selector:
     run: feedback

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
   name: feedback
spec:
   replicas: 1
   template:
     metadata:
       labels:
         run: feedback
   spec:
     containers:
     – name: feedback
       image: username/feedback
       ports:
       – containerPort: 8888
---
apiVersion: v1
kind: Service
metadata:
   name: mongo
   labels:
     run: mongo
spec:
   ports:
   – port: 27017
     targetPort: 27017
     protocol: TCP
   selector:
     run: mongo

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
   name: mongo
spec:
   template:
     metadata:
       labels:
         run: mongo
     spec:
       containers:
       – name: mongo
         image: mongo
         ports:
         – containerPort: 27017
</code></pre>

<p>I have checked it using a yaml validator and also checked the spacing, am I missing something?</p>

Debjani
<p>This was a weird one. Turns out your hyphens were the wrong type :) all your instances of - were actually – (see the difference? one's longer).</p>

<p>Here's a working file:</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: feedback
  labels:
    run: feedback
spec:
  ports:
    - port: 80
      targetPort: 3000
      protocol: TCP
  type: NodePort
  selector:
    run: feedback

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: feedback
spec:
  replicas: 1
  template:
    metadata:
      labels:
        run: feedback
  spec:
    containers:
      - name: feedback
        image: username/feedback
        ports:
          – containerPort: 8888
---
apiVersion: v1
kind: Service
metadata:
  name: mongo
  labels:
    run: mongo
spec:
  ports:
    - port: 27017
      targetPort: 27017
      protocol: TCP
  selector:
    run: mongo

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: mongo
spec:
  template:
    metadata:
      labels:
        run: mongo
    spec:
      containers:
        - name: mongo
          image: mongo
          ports:
            - containerPort: 27017
</code></pre>

<p>Side note: this is definitely not node.js – please tag as kubernetes</p>
