STEP 1:
Creating VPC network:
https://console.cloud.google.com/networking/networks/...
click on create VPC network
Name: hng-vpc
MTU 1460
NEW SUBNET Name: hng-subnet
Region: us-central1
IPV4
IPv4 Range :10.0.0.0/24 other information remain same, for the scope of this practice.
STEP 2
CREATING THE FIREWALL
https://console.cloud.google.com/net-security/firewall-manager/firewall-policies/list......
Click on create firewall rule
Name: hng-firewall
Network: select the name of the VPC created in stage 1
Priority: 1000
check the ingress
Tergets : all instance in the network
source IPv4 ranges : 0.0.0.0/0 this allow all Ip but can be change but for the purpose of the practice.
Specified protocol and port : TCP 80
Click on create.
STAGE 3
Create my instance using GCP
MACHINE CONFIGURATION
login : https://console.cloud.google.com/compute/instances
click on create instance
enter name: hng-stage0
Region: us-central1(iowa)
region: any
E2
OS AND STORAGE
Click on chnage
on the OS tap: select Ubuntu #for this project every other thing remain same. use need little size of everything.
NETWORKING
Click on the select network interface : select the subnet created for this project.
SECURITY
Turn on Secure Boot
click on create.
once the vm has complete
FINAL STEPS:
click on the IP in your VM and open in GCP terminal.
Reference: https://hng.tech/hire/devops-engineers
https://hng.tech/hire/cloud-engineers
run the following script: