Now let's try to scale this deployment and increase quantity of the ports inside of the deployment.
Now there is just a single port for that we could utilize following Command Hub City shortly.
In our case scale, we would like to scale deployment.
Right here.
Deployment.
Name of the deployment in our case is that deployment.
And afterwards, let's specify quantity of the replicas we would like to have in this deployment right
now.
Now there are just a single replica.
In order to specify desired quantity of the replicas, we could add here.
Option replicas and after equal sign, specify quantity of the replicas.
Let's say we want to scale to five replicas.
Let's enter five here and let's scale our deployment.
Deployment was scaled and now let's enter command k get put.
And I see that there are four new containers which are currently being created.
Here was one put second, third and fourth port, and this boat is still running.
In a moment, you should see that all five posts will be running.
Here they are.
We just scaled our deployment to five different replicas.
And now there are five different ports running right now inside of our Kubernetes cluster.
And notice how easy it is.
We did not create those ports manually.
Kubernetes scaled this deployment automatically for us.
Notice that all those sports have the same prefix.
It is name of the replica set all those sports belong to and those parts are different for different
pots.
And again, all pots are running.
Let's also read the about those sports which will include IP addresses.
Let's add here.
Option dash.
Oh white.
And I will see that each board has different IP address here, here, here, here or here.
And all those ports were created just on single node mini queue because again, we have just single
node cluster.
If you were running multiple nodes, of course load would be distributed across different nodes and
you would see that both were assigned to different nodes.
All right.
Now, let's try to scale down quantity of the replicas in this deployment from five to, let's say,
three.
Let's go back to this command K scale deployment, engine X deployment.
And here, let's specify quantity of the replicas as three like that deployment was scaled.
Let's get ports and I see that now there are only three ports up and running.
Two ports were removed.