Exposing workloads to requests
Through our experience, we’ve come to realize that there are three concepts in Kubernetes that people may find confusing: Services, Ingress controllers, and LoadBalancer Services. These are important to know in order to make your workloads accessible to the outside world. Understanding how each of these objects function and the various options you have, is crucial. So, let’s start our deep dive into each of these topics.
Understanding how Services work
As we mentioned earlier, when a workload is running in a pod, it gets assigned an IP address. However, there are situations where a pod might restart, and when that happens, it will get a new IP address. So, it’s not a good idea to directly target a pod’s workload because its IP address can change.
One of the coolest things about Kubernetes is its ability to scale your Deployments. When you scale a Deployment, Kubernetes adds more pods to handle the increased resource...