Service
The official definition on services says that “a Service is a method for exposing a network application that is running as one or more Pods in your cluster.” Service is basically a static IP address or permanent IP address that can be attached to the Pod. That means that “my app” will have its own Service and database Pod will have its own Service.
Role of Service
The Role of Service is that the life cycles of Service and the Pod are not connected so even if the pod dies the Service and its IP address will stay so we don’t have to change that endpoints every time the Pod dies.
Now we want our application to be accessible through a browser and for this we would have to create an external service. External service is a service that opens the communication from external sources. But we would not want our database to be open to the public requests (because of security reasons). So for that we would create an internal service – this is a type of a service that you specify when creating one.
Example of Internal Service:
http://db-service-ip:port
Example of External Service:
http://my-app-service-ip:port
however this URL of the external service is not very practical, it is good for test purposes but not for the end product so usually you will want your URL to look like this if you want to talk to your application with a secure protocol and a domain name –
https://my-app.com
And for that we use Ingress.
Fundamental Kubernetes Components and their role in Container Orchestration
Kubernetes or K8s is an open-sourced container orchestration technology that is used for automating the manual processes of deploying, managing and scaling applications by the help of containers. Kubernetes was originally developed by engineers at Google and In 2015, it was donated to CNCF (Cloud Native Computing Foundation)
To understand Kubernetes, one must understand its basic components and its building blocks. In this article, we will be discussing the most fundamental components of Kubernetes as well as what are they used for.
Kubernetes has tons of components but most of the time we are going to be working with just a handful of them. Following is the list of all the important components of Kubernetes along with their roles in Kubernetes.