EMERGING TRENDS IN SOFTWARE ENGINEERING
DEVOPS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
Service: for external or internal communication between services
|
|
NodePort: The same Node IP is always used, limited to the number of ports
|
|
ClusterIP: for inter-service communication using an internal DNS, but does not exit the cluster
|
|
LoadBalancer: uses a different IP than the nodes which can be internal or external
|
Detailed explanation-1: -Another important difference is that while LoadBalancers are provisioned automatically by Kubernetes if you’re in a supported cloud environment, External IPs are manually provisioned by you, which might mean more or less flexibility, depending on your setup.
Detailed explanation-2: -In Kubernetes, there are two types of Load Balancers: Internal Load Balancers-these enable routing across containers within the same Virtual Private Cloud while enabling service discovery and in-cluster load balancing.
Detailed explanation-3: -ClusterIP (default): Internal clients send requests to a stable internal IP address. NodePort: Clients send requests to the IP address of a node on one or more nodePort values that are specified by the Service. LoadBalancer: Clients send requests to the IP address of a network load balancer. More items