Kubernetes

Describe in high level what happens when you run kubctl expose deployment remo --type=LoadBalancer --port 8080

Difficulty: unrated

Source: bregman-arie/devops-exercises by Arie Bregman

Answer

  1. Kubectl sends a request to Kubernetes API to create a Service object
  2. Kubernetes asks the cloud provider (e.g. AWS, GCP, Azure) to provision a load balancer
  3. The newly created load balancer forwards incoming traffic to relevant worker node(s) which forwards the traffic to the relevant containers