<p>Is there any way to see what is going to exactly happen when I do <code>kubectl scale ...</code> before I actually run the command?</p>

<p>I would like to do something like:</p>

<pre><code>kubectl scale --dry-run --diff ...my-deployment --replicas=2
</code></pre>

<p>and see something like </p>

<pre><code>...
    name: my-deployment
...
-     replicas: 1
+     replicas: 2
...
</code></pre>

grandrew
<p>Straightforward answer is it's not possible.</p>

<p>I don't know your intention, but if you can use option <code>--current-replicas</code> in some cases.</p>

<pre><code>--current-replicas=-1: Precondition for current size. Requires that the current size of the resource match this value in order to scale.
</code></pre>
