title: How a shared service can be updated by a deployment?
body: <p>In the Kubernetes docs, in the <a href="https://kubernetes.io/docs/concepts/configuration/overview/#using-labels" rel="nofollow noreferrer">Using Labels</a> section it says:</p>
  <blockquote>
  <p>A Service can be made to span multiple Deployments by omitting release-specific labels from its selector. When you need to update a running service without downtime, use a Deployment.</p>
  </blockquote>
  <p>I don't understand how this can be achieved by a Deployment? When we want to update a service shouldn't it happen separately (on its own), separate from any Deployments? Like:</p>
  <pre class="lang-sh prettyprint-override"><code>kubectl apply -f service.yaml
  
  </code></pre>