This script sets up the load balancer on the Google Cloud. The script reads environment variables so that it knows how many instances are to be serving the load balancer. The script first creates the HTTP based health check that checks the nginx endpoint created previously. A firewall rule is created to allow the HTTP health check to work. A target pool is created and then populated with the master node instances. A forwarding rule is then created so that traffic to the public address is passed to the target pool. A connection check is made from the local machine (i.e. outside of the Google Cloud) to the Kubernetes public address.