<p>I'm trying to update a service using :</p>

<pre><code>kubectl update service my-service \
    --patch='{ "apiVersion":"v1", "spec": { "selector": { "build":"2"} } }'
</code></pre>

<p>I receive the following Error :
<code>Error from server: service "\"apiVersion\":\"v1\"," not found</code></p>

<p>I have tried the following :</p>

<ul>
<li>moving the service name to the end</li>
<li>Removing the apiVersion</li>
</ul>

<hr>

<p>Maybe the kubectl update is not available for service ?</p>

<hr>

<p>For now I was making my updates by simply stoping and restarting my service. But sometime, the corresponding forwarding-port changes. So it seems to not be the good choice ...</p>

<hr>

<p>PS:</p>

<ul>
<li>v0.19</li>
<li>api_v1</li>
</ul>

<p>I am not sure if patch is 100% working yet, but if you are going to do this, you at least need to put apiVersion inside metadata, like so:</p>

<p>--patch='{ metadata:{ "apiVersion":"v1" }, "spec": { "selector": { "build":"2"} } }'</p>
