Accessing Apps from Outside the Cluster
Explore how to access applications running in Kubernetes from outside the cluster using NodePort and LoadBalancer services. Understand the flow of external traffic to pods via cluster nodes and key limitations of these exposure methods, enabling you to manage external access effectively.
We'll cover the following...
We'll cover the following...
NodePort Services
NodePort Services build on top of ClusterIP Services by adding a dedicated port on every cluster node that external clients can use. We call this dedicated port the NodePort.
The following YAML shows a NodePort Service called skippy.
Posting this to the cluster will create a ClusterIP Service with the usual internally routable IP and DNS name. It will also create port 30050 on every cluster node and map it back to the ClusterIP. ...