<p>I'm new to Kubernetes. I try to scale my pods. First I started 3 pods:</p>

<pre><code>./cluster/kubectl.sh run my-nginx --image=nginx --replicas=3 --port=80
</code></pre>

<p>There were starting 3 pods. First I tried to scale up/down by using a replicationcontroller but this did not exist. It seems to be a replicaSet now.</p>

<pre><code>./cluster/kubectl.sh get rs
NAME                  DESIRED   CURRENT   AGE
my-nginx-2494149703   3         3         9h
</code></pre>

<p>I tried to change the amount of replicas described in my replicaset:</p>

<pre><code>./cluster/kubectl.sh scale --replicas=5 rs/my-nginx-2494149703
replicaset "my-nginx-2494149703" scaled
</code></pre>

<p>But I still see my 3 original pods</p>

<pre><code>./cluster/kubectl.sh get pods
NAME                        READY     STATUS    RESTARTS   AGE
my-nginx-2494149703-04xrd   1/1       Running   0          9h
my-nginx-2494149703-h3krk   1/1       Running   0          9h
my-nginx-2494149703-hnayu   1/1       Running   0          9h
</code></pre>

<p>I would expect to see 5 pods. </p>

<pre><code>./cluster/kubectl.sh describe rs/my-nginx-2494149703
Name:       my-nginx-2494149703
Namespace:  default
Image(s):   nginx
Selector:   pod-template-hash=2494149703,run=my-nginx
Labels:     pod-template-hash=2494149703
        run=my-nginx
Replicas:   3 current / 3 desired
Pods Status:    3 Running / 0 Waiting / 0 Succeeded / 0 Failed
</code></pre>

<p>Why isn't it scaling up? Do I also have to change something in the deployment?</p>

<p>I see something like this when I describe my rs after scaling up:
(Here I try to scale from one running pod to 3 running pods). But it remains one running pod. The other 2 are started and killed immediatly</p>

<pre><code>  34s       34s     1   {replicaset-controller }            Normal      SuccessfulCreate    Created pod: my-nginx-1908062973-lylsz
  34s       34s     1   {replicaset-controller }            Normal      SuccessfulCreate    Created pod: my-nginx-1908062973-5rv8u
  34s       34s     1   {replicaset-controller }            Normal      SuccessfulDelete    Deleted pod: my-nginx-1908062973-lylsz
  34s       34s     1   {replicaset-controller }            Normal      SuccessfulDelete    Deleted pod: my-nginx-1908062973-5rv8u
</code></pre>

<p>This is working for me</p>
<pre><code>kubectl scale --replicas=&lt;expected_replica_num&gt; deployment &lt;deployment_label_name&gt; -n &lt;namespace&gt;
</code></pre>
<p>Example</p>
<pre><code># kubectl scale --replicas=3 deployment xyz -n my_namespace
</code></pre>
