Set up and Configure a Cloud Environment in Google Cloud: Challenge Lab

1.Create development VPC manually

2.Create production VPC using Deployment Manager

cd dm
edit prod-network.yaml
gcloud deployment-manager deployments create griffin-prod --config prod-network.yaml

3.Create bastion host

4.Create and configure Cloud SQL Instance

GRANT ALL PRIVILEGES ON wordpress.* TO "wp_user"@"%" IDENTIFIED BY "stormwind_rules";

5.Create Kubernetes cluster

6.Prepare the Kubernetes cluster

cd ~/wp-k8s
edit wp-env.yaml
gcloud iam service-accounts keys create key.json \

kubectl create secret generic cloudsql-instance-credentials \
--from-file key.json

7.Create a WordPress deployment

cd ~/wp-k8s
edit wp-deployment.yaml
kubectl create -f wp-deployment.yaml
kubectl create -f wp-service.yaml

8.Enable monitoring

9: Provide access for an additional engineer

Congratulations! Done with the challenge lab.



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store