title: Im getting the error got "map", expected "string" on kubernetes service yaml
body: <p>I´m getting the error</p>
  <blockquote>
  <p>got &quot;map&quot;, expected &quot;string&quot;,</p>
  </blockquote>
  <p>when I try to apply a service.yaml via..</p>
  <blockquote>
  <p>kubectl apply -f service.yaml</p>
  </blockquote>
  <p>Here is my service.yaml</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>apiVersion: v1
  kind: Service
  metadata:
    name: gettime
    labels:
      app: jexxa
  spec:
    selector:
      matchLabels:
        app: jexxa
      type: LoadBalancer
      ports:
      - port: 7000
        targetPort: 7000</code></pre>
  </div>
  </div>
  </p>
  <p>and here the whole error message :</p>
  <blockquote>
  <p>error: error validating &quot;service.yaml&quot;: error validating data: &gt;io.k8s.api.core.v1.ServiceSpec.selector: got &quot;map&quot;, expected &quot;string&quot;, &gt;ValidationError(Service.spec.selector.ports): invalid type for &gt;io.k8s.api.core.v1.ServiceSpec.selector: got &quot;array&quot;, expected &quot;string&quot;]; if you choose to ignore &gt;these errors, turn validation off with --validate=false</p>
  </blockquote>
  <p>I also tried it with <code>--validate=false</code> but it didnt work..</p>