Build a Website on Google Cloud

gcloud config set compute/zone us-central1-a

Task 1

Download the monolith code

git clone https://github.com/googlecodelabs/monolith-to-microservices.git
cd monolith-to-microservices
./setup.sh

Build your container

gcloud services enable cloudbuild.googleapis.com
cd ~/monolith-to-microservices/monolith
gcloud builds submit --tag gcr.io/${GOOGLE_CLOUD_PROJECT}/fancytest:1.0.0 .

Task 2

Create a Kubernetes cluster

gcloud services enable container.googleapis.com
gcloud container clusters create fancy-cluster --num-nodes 3

Deploy the application

Task 3

Create a containerized version of orders and product Microservices

Task 4

Deploy the new microservices

Orders

Products

Task 5

Create a containerized version of the Frontend microservice

Task 6

Deploy the Frontend microservice

Last updated

Was this helpful?