Tuesday, 28 July 2020

Kubernetes: Services

Services make deployments accessible from the outside world by providing a single IP and Port combination.

 

A service defines a logical set of Pods and a policy by which we access the Pods.

 

How the service target Pods to expose?

Service use selector to target the Pods to expose

 

Will one service provide access to multiple deployments?

Yes, Services are independent of deployments. One service can provide access to multiple deployments. Services watch deployments, if the deployment matches to the service selector, then service exposes this deployment.

 

Service Types

ClusterIP: It is the default service type. Used to provide internal access.

 

NodePort: It allocates Specific Node port for the communication with Pod.

 

LoadBalancer: This service type is implemented in Public Cloud.

 

ExternalName: It will work on DNS names.

 

ServiceWithoutSelector: Used for direct connection based on IP/Port.

 



Previous                                                    Next                                                    Home

No comments:

Post a Comment