Mode Gelap

Recent in Fashion

Best Seller Books

Deploy and Manage Cloud Environments with Google Cloud: Challenge Lab - GSP314

Deploy and Manage Cloud Environments with Google Cloud: Challenge Lab


  1. Setup the Admin instance
  2. Verify the Spinnaker deployment
  • Use the project VPCs.
  • Naming is normally a team-resource, e.g. an instance could be named kraken-webserver1.
  • Allocate cost-effective resource sizes. Projects are monitored and excessive resource use will result in the containing project’s termination (and possibly yours), so beware. This is the guidance the monitoring team is willing to share; unless directed, use n1-standard-1.

1.Create the production environment

The first step is to create a production environment.

  • Click the SSH button to access the jumphost instance.
  • In the SSH window, go to the cd /work/dm directory.
  • Use an editor to open the configuration file prod-network.yaml, and replace SET_REGION to us-east1
sed -i s/SET_REGION/us-east1/g prod-network.yaml

gcloud deployment-manager deployments create prod-network --config=prod-network.yaml
gcloud config set compute/zone us-east1-b

gcloud container clusters create kraken-prod \
--num-nodes 2 \
--network kraken-prod-vpc \
--subnetwork kraken-prod-subnet
gcloud container clusters get-credentials kraken-prod


cd /work/k8sfor F in $(ls *.yaml); do kubectl create -f $F; done

2.Setup the Admin instance

In this step Create kraken-admin and Monitoring workspace.

gcloud config set compute/zone us-east1-bgcloud compute instances create kraken-admin
 --network-interface="subnet=kraken-mgmt-subnet" --network-interface="subnet=kraken-prod-subnet"
  • Click Create Policy.
  • Click Add Condition, and then set up the Metrics with the following parameters:
  • Then add an email in the Notification setting.

3.Verify the Spinnaker deployment

In this step the lab manual suggests you use Cloud Shell and kubectl to port forward the spin-deck pod from port 9000 to 8080.

  • Go to spin-deck.
  • Click Port Forward.
  • Cloud Shell will open with the port forwarding command.
  • Click on the web preview icon on cloud shell open port 8080.
gcloud config set compute/zone us-east1-b

gcloud source repos clone sample-app

cd sample-app

touch a

git config --global user.email "$(gcloud config get-value account)"

git config --global user.name "Student"

git commit -a -m "change"

git tag v1.0.1

git push --tags

Congratulations! Done with the challenge lab.

Subscribe Our Newsletter

avatar
"By speaking behind my back, it means that you respect my existence enough not to act in front of my face."

Related Posts

1 Komentar

Article Top Ads

Parallax Ads

Article Center Ads

Article Bottom Ads