Skip to content

Instantly share code, notes, and snippets.

View hazzyeer's full-sized avatar
👋

Hamza Y. hazzyeer

👋
View GitHub Profile
@hazzyeer
hazzyeer / http_load_balancer_setup_gcp.sh
Created October 17, 2023 19:34 — forked from chilampoon/http_load_balancer_setup_gcp.sh
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