And the one more option which I would like to show you in terms of creation of the service is a load
balancer.
Let's create a load balancer service.
And for that first, let's delete existing service k delete SVC service k eight as.
Hello.
Service was removed.
Get SBC.
There was no more such service.
And let's create a service of type.
Load balancer.
Okay.
Expose deployment gate as web.
Hello.
Here, let's add type.
Load balancer.
What's called case notation again.
And let's add fourth option and its value will be 3000.
Same as before.
Let's create such service.
Service was created k get as we see now I see that there is service of type load balancer here with
cluster IP, but external IP here is pending and you will see here pending if you are using mini cube.
But when you deploy your applications somewhere in the cloud using one of the cloud providers like Amazon,
Google Cloud, etc. here you will see load balancer IP address assigned automatically.
But in our case, using mini cube is behavior is similar to node port and here we will still be able
to connect to our deployment using IP address of the node and if I enter now mini cube.
Service.
Gay AIDS web.
Hello.
I lost a connection which is made to IP address of the node and here was again random port which was
generated here.
Here was this random port.
All right, let's continue and let's keep this service and this deployment in place.
Recap that we have single service here, which we created before.
It is k eight as a web.
Hello.
And this type now is load balancer and there is a single deployment k get deployed and this name is
K eight as web.
Hello.
And now this deployment has four different ports available for use.
We could read the details about this deployment.
K describe deployment.
Kate s Webb.
Hello.
And here are details of this deployment.
By the way, at the end here I see logs related to scaling of replica set.
Initially quantity of the replicas was one and later we scaled it to four.
If you want, you could try to scale it to any other number if you want to do so above.
I see that this deployment has a name gate as well.
Hello.
Namespace is default labels annotations selector replicas desired for updated for.
Available for.