title: kubectl - How to restart a deployment (or all deployment)
body: <p>We have an AKS cluster and sometimes we end up with an issue where a deployment needs a restart (e.g. cached data has been updated and we want to refresh it or there is corrupt cache data we want to refresh).</p>
  <p>I've been using the approach of scaling the deployment to 0 and then scaling it back up using the commands below:</p>
  <pre><code>kubectl scale deployments/&lt;deploymentName&gt; --replicas=0
  kubectl scale deployments/&lt;deploymentName&gt; --replicas=1
  </code></pre>
  <p>This does what I expect it to do, but it feels hacky and it means we're not running any deployments while this process is taking place.</p>
  <p>What's a better approach to doing this? For either a specific deployment and for all the deployments?</p>