Now let's keep this window open here and let's increase quantity of the bolts in our deployment.
Let's scale our deployment.
I'll open up new tab in the term application.
You could open a new terminal window if you're on windows.
I'll use key combination command in order to open new tab here and here in the new tab.
If I enter key, I will say error command not found because alias works only in this tab.
That's why let's create alias once again.
Alias K equals sign kub still.
By the way, you could omit double quotes here if command consists only of single word.
So let me remove those double quotes like that alias was created.
And now let's k get.
And here I see.
Same name of the port, which I saw here in the answer from the web server.
Let's now scale this deployment.
Recap.
That name of our deployment is.
Gay et se web.
Hello.
Here was the name of the deployment and now it currently has just single board.
Let's scale it.
Gay scale deployment.
Gates.
Webb Hello.
And I would like to scale deployment to, let's say, four replicas.
Let's go ahead.
Deployment was scaled.
Let's now get ports.
K get ports.
Now, there were four ports.
One is still being created.
Let's check back again.
And now all four ports are running.
All of them belong to the same deployment.
Cate as Webb.
Hello.
And each boat, of course, has its own unique IP address.
Let's get details about boats.
Get boats this all white.
And here I see different IP addresses of each boat.
And of course, they differ from the cluster IP, which was created for specific service.
Let's list services, get SVC.
And here as before we see cluster IP for k eight as web hello service and each of those ports is now
available via this cluster IP and Kubernetes will decide which port to choose for each particular request.
Let's now go back to this step where we are inside of the Kubernetes node and try to make connections
to this cluster IP and this port again.
Let's call your terminal here and see your URL.
Now I see response from this port with such name.
If I repeat command, I see response from other port.
Let's repeat command once again.
Once again.
And so on.
I see that now.
A lot is balanced across different ports because here I see responses from different ports.
Different names appear here in the responses.
Different ports serve different requests.
And here are different names of the ports.
That's how distribution of the Lord works in action.
And now using such customarily built Docker image, we were able to prove that.