GCE – Contd
GCE Machine Images
- Refer Here for gce machine images
- Lets create a reusable machine image with a website using reference template Refer Here
- Installation steps
sudo apt update
sudo apt install nginx unzip -y
cd /tmp && wget https://www.free-css.com/assets/files/free-css-templates/download/page296/spering.zip
unzip spering.zip
cd spering-html/
cp -r . /var/www/html
- Now access the application using http url

- Now we need a resuable image for this application


- Now create a reusable image

- Now using reusable image create a virtual machine instance

GCE VM Templates
- Refer Here for gce vm templates
- Lets create an instance template for a vm to be created in a vpc with specific network tags and machine images


- Using this template lets create two vms

Scaling
- Scaling refers to the following
- horizontal scaling: Increasing number of servers or workloads
- vertical scaling: Increasing the size of the server
- Scale up and Scale down (Vertical scaling)
- Scale out and Scale in (Horizontal scaling)
- The ability to scale out or in is generally referred as elasticity
Instance Groups
- GCP supports Instance groups for elasticity Refer Here
- Refer Here for example






