Describe in high level what happens when you run kubctl expose deployment remo --type=LoadBalancer --port 8080
Answer
- Kubectl sends a request to Kubernetes API to create a Service object
- Kubernetes asks the cloud provider (e.g. AWS, GCP, Azure) to provision a load balancer
- The newly created load balancer forwards incoming traffic to relevant worker node(s) which forwards the traffic to the relevant containers