GCP Classroom Series – 12/Mar/2021

Creating Windows Instances in GCE

  • We cannot create windows instances if you dont subscribe to paid plan.
  • Even after subscribing to this, your free plan will still continue
  • To activate the full plan do the following Preview Preview
  • Only after you activate this you would be able to create windows instances.
  • We will be creating windows instances once we finish all the other services.

Exploring instance templates and instance groups

  • Lets navigate to instance templates Preview Preview Preview Preview Preview Preview
  • Now lets try to create an instance group Preview Preview Preview Preview Preview Preview Preview Preview
  • When the application load increased we have 3 different public ips we need a way to configure one entrypoint into instance group Preview

Exercise:

  1. Create an instance template with ubuntu 18 machine and machine type f1-micro
  2. In the start up scripts add the following bash
#!/bin/bash
sudo apt update
sudo apt install apache2 -y
sudo apt install php libapache2-mod-php php-mysql php-cli -y
echo '<?php phpinfo(); ?>' | sudo tee -a /var/www/html/info.php
  1. Now create a instance group with minimum instances as 1 and maximum instances as 3

Next Steps

  • Understanding underlying concepts around instance templates, instance groups, auto scaling, auto healing , health checks and load balancing

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About learningthoughtsadmin