Skip to content

Instantly share code, notes, and snippets.

@chilampoon
chilampoon / http_load_balancer_setup_gcp.sh
Created July 14, 2021 20:51
Set up an HTTP load balancer with a managed instance group of 2 nginx web servers on Google Cloud Platform (Qwiklab)
# setup
gcloud auth list
gcloud config set compute/zone us-east1-b
gcloud config set compute/region us-east1
# create an instance template
cat << EOF > startup.sh
#! /bin/bash
apt-get update
apt-get install -y nginx