Set Up and Configure a Cloud Environment in Google Cloud
Task 1: Create development VPC manually
gcloud compute networks create griffin-dev-vpc --subnet-mode customgcloud compute networks subnets create griffin-dev-wp --network=griffin-dev-vpc --region us-east1 --range=192.168.16.0/20gcloud compute networks subnets create griffin-dev-mgmt --network=griffin-dev-vpc --region us-east1 --range=192.168.32.0/20Task 2: Create production VPC using Deployment Manager
gsutil cp -r gs://cloud-training/gsp321/dm .cd dmsed -i s/SET_REGION/us-east1/g prod-network.yamlgcloud deployment-manager deployments create prod-network \
--config=prod-network.yamlTask 3: Create bastion host
cd ..gcloud compute instances create bastion --network-interface=network=griffin-dev-vpc,subnet=griffin-dev-mgmt --network-interface=network=griffin-prod-vpc,subnet=griffin-prod-mgmt --tags=ssh --zone=us-east1-bgcloud compute firewall-rules create fw-ssh-dev --source-ranges=0.0.0.0/0 --target-tags ssh --allow=tcp:22 --network=griffin-dev-vpcgcloud compute firewall-rules create fw-ssh-prod --source-ranges=0.0.0.0/0 --target-tags ssh --allow=tcp:22 --network=griffin-prod-vpcTask 4: Create and configure Cloud SQL Instance
gcloud sql instances create griffin-dev-db --root-password password --region=us-east1Task 5: Create Kubernetes cluster
Task 6: Prepare the Kubernetes cluster
Task 7: Create a WordPress deployment
Task 8: Enable monitoring
Go to OPERATIONS > Monitoring
a. Wait for the workspace creation to complete
Go to Uptime checks > CREATE UPTIME CHECKS
Now enter the info as below:
Task 9: Provide access for an additional engineer
Go to IAM & Admin > ADD
Enter the second username and give him Project > Editor access in Role
thub.com/gdsc-pdeu
LinkedIn: https://linkedin.com/company/developer-student-clubs-pdeu
Instagram: https://www.instagram.com/dsc.pdeu/
GDSC Lead - Jay Gohil:
Website: https://jay-gohil.me/
LinkedIn: https://www.linkedin.com/in/jay--gohil/
GitHub: https://github.com/gohil-jay
Instagram: https://www.instagram.com/_jay.gohil/
GCP Facilitator - Jay Patel:
Website: http://pateljay.me/
LinkedIn: https://www.linkedin.com/in/--jaypatel--/
GitHub: https://github.com/jaypatel31
Instagram: https://www.instagram.com/jaypatel98196/
Last updated
Was this helpful?