Summary
In this chapter, you learned how to expose your workloads in Kubernetes to other cluster resources and external traffic.
The first part of the chapter went over services and the multiple types that can be assigned. The three major service types are ClusterIP
, NodePort
, and LoadBalancer
. Remember that the selection of the type of service will configure how your application is exposed.
In the second part, we introduced two load balancer types, layer 4 and layer 7, each having a unique functionality for exposing workloads. You will often use a ClusterIP
service along with an ingress controller to provide access to services that use layer 7. Some applications may require additional communication, not provided by a layer 7 load balancer. These applications may require a layer 4 load balancer to expose their services externally. In the load balancing section, we demonstrated the installation and use of MetalLB, a popular, open-source, layer 4 load balancer.
We closed...