When we deployed the voting app, we published the frontend web interface via a Kubernetes service type; that is, we used a Load Balancer. In this section, we'll look at the various ways in which we can expose applications outside the Kubernetes cluster:
- Kubernetes service type – Cluster IP: This is used when you want to assign a Kubernetes internal IP to the service and the service is supposed to only be reachable inside the Kubernetes network and usually only communicates with other pods. In our voting app example, we're deploying the backend of Redis as a Cluster IP since the backend datastore should only be reachable inside the Kubernetes network.
- Kubernetes service type – NodePort: Specifying NodePort requires you to specify a port number for the AKS agent nodes that will be mapped to the...