title: Correct way to scale/restart an application down/up in kubernetes (replicaset, deployments and pod deletion)?
body: <p>I usually restart my applications by:</p>
  
  <pre><code>kubectl scale deployment my-app --replicas=0
  </code></pre>
  
  <p>Followed by:</p>
  
  <pre><code>kubectl scale deployment my-app --replicas=1
  </code></pre>
  
  <p>which works fine. I also have another running application but when I look at its replicaset I see:</p>
  
  <pre><code>$ kubectl get rs
  NAME                                        DESIRED   CURRENT   READY     AGE
  another-app                                 2         2         2         2d
  </code></pre>
  
  <p>So to restart that correctly I would of course need to:</p>
  
  <pre><code>kubectl scale deployment another-app --replicas=0
  kubectl scale deployment another-app --replicas=2
  </code></pre>
  
  <p>But is there a better way to do this so I don't have to manually look at the repliasets before scaling/restarting my application (that might have <code>replicas &gt; 1</code>)?</p>