<pre><code>kubectl create -f redis.yaml
Error from server (BadRequest): error when creating "redis.yaml": Service in version "v1" cannot be handled as a Service: v1.Service.Spec: v1.ServiceSpec.Selector: ReadString: expects " or n, but found t, error found in #10 byte of ...|service":true}}}
|..., bigger context ...|79,"protocol":"TCP"}],"selector":{"redisservice":true}}}
|...
</code></pre>

<p>What does this error mean?</p>

<pre><code>apiVersion: v1
kind: Service
metadata:
  name: redis
spec:
  selector:
    redis-service: yes
  ports:
  - protocol: TCP
    port: 6379
  - protocol: TCP
    port: 26379
  - protocol: TCP
    port: 16379
</code></pre>

Chris Stryczynski
<p>Yaml <code>yes</code> values evaluate to a boolean. So should  be quoted...</p>

<pre><code>redis-service: "yes"
</code></pre>
