Configuring public access to the application
We will now look at how we can expose our services to the outside world and make them available on public endpoints. The services we have created thus far are of the NodePort
type, which means they are exposed on the IP address of the Node they are running on, using a port generated by the Service. The IP address of each Node is a private IP address on our VPC. To expose our services securely to the outside world, we need to have three things in place. First, we need a public static IP address so that we can map our hostname in our DNS to that address. Next, we need an SSL certificate so that we can use HTTPS. Finally, we need a method that will let us route traffic from the public IP address/hostname to our services. This method is called Ingress.
We create the public static IP address called banking-ip
as we did when setting up the Google HTTP(s) load balancer for our virtual machine infrastructure. Please ensure that the A (address...