diff --git a/examples/google-internal-load-balancing/README.md b/examples/google-internal-load-balancing/README.md new file mode 100644 index 000000000..732e3eebd --- /dev/null +++ b/examples/google-internal-load-balancing/README.md @@ -0,0 +1,38 @@ +# Internal Load Balancing in Google Cloud + +This provides a template for setting up internal load balancing in Google Cloud. It directly mirrors the tutorial in the [GCP Internal Load Balancing Documentation](https://cloud.google.com/compute/docs/load-balancing/internal/). + +To run the example, you'll need to [download your credentials from Google Cloud Console](https://www.terraform.io/docs/providers/google/#credentials). A suggested path for the downloaded file is `~/.gcloud/Terraform.json`. + +Optionally update `variables.tf` to specify a default value for the `project_name` variable, and check other variables. + +After you run `terraform apply` on this configuration, it will +automatically output the internal IP address of the load balancer. + +Since the load balancer is only reachable from within the network, ssh into the standalone instance using + +``` +gcloud compute ssh --zone us-central1-b standalone-instance-1 +``` + + +Using `curl` on the IP address given, the LB should respond with a simple header: + +```html +