Kubernetes Networking
medium

Questão de Kubernetes Networking #019e3a4f

Enunciado da Questão
Kubernetes Networking
#cloud-controller-manager
#loadbalancer
#kubernetes
Médio

Scenario: You have a Kubernetes cluster hosted in a public cloud provider. When trying to create a Service of type LoadBalancer, the external-ip is stuck in the "Pending" state. Which Kubernetes component is failing in this scenario?

A

Cloud Controller Manager

Correta
B

Load Balancer Manager

C

Cloud Architecture Manager

D

Cloud Load Balancer Manager

Explicação Oficial / Explicações da Comunidade

The Cloud Controller Manager is the Kubernetes component responsible for integrating with cloud provider APIs to manage resources like load balancers, nodes, and routes. When a Service of type LoadBalancer is created, the Cloud Controller Manager communicates with the cloud provider's API to provision an external load balancer and assign an external IP. If the external IP remains in "Pending" state, it indicates that the Cloud Controller Manager is either not running, misconfigured, or unable to reach the cloud provider's API.

How it Works:

  • The Cloud Controller Manager runs as a set of controllers that interact with the cloud provider's infrastructure.
  • For a LoadBalancer Service, the service-controller within the Cloud Controller Manager requests a new load balancer from the cloud provider.
  • The cloud provider provisions the load balancer and returns its external IP, which is then assigned to the Service.
  • If the Cloud Controller Manager fails (e.g., due to missing credentials, network issues, or incorrect configuration), the external IP remains "Pending" indefinitely.

Why the correct answer is right:
The Cloud Controller Manager is the only component that handles cloud-specific load balancer provisioning. Without it, the cluster cannot obtain an external IP from the cloud provider.

Why the incorrect options are wrong:

  • "Load Balancer Manager" is not a standard Kubernetes component. Kubernetes does not have a component with this name.
  • "Cloud Architecture Manager" is not a real Kubernetes component. It does not exist in the Kubernetes architecture.
  • "Cloud Load Balancer Manager" is also not a standard component. The correct component is the Cloud Controller Manager, which encompasses load balancer management among other cloud-specific tasks.