Service
Services in Kubernetes helps in loose coupling between various pods in our cluster, it helps in enabling applications to be available for users and allow communication between different sections of pods
We have to use Labels & Selectors to select what pods will be part of the service
There are different types of services in Kubernetes that we can make available on a cluster
- Cluster IP
- Node Port
- Load Balancer
Cluster IP
Here we create a virtual IP which we can provide to our services for communication
Cluster IP
Link to original
Node Port
In this case we expose a port on the node and forward the traffic to a cluster IP which will take care of the rest, in this manner no matter what node you send a request to the traffic will be forwarded to the respected node.
Port Values
Node Port Values can only be a valid range from 30,000 - 32,767
Node Port
Link to original