GithubHelp home page GithubHelp logo

qwick-labs--cloud-architect-challenge's Introduction

Qwick-Labs--Cloud-Architect-Challenge

Qwicklabs Cloud Architect Challenge Solution

#For Task 1: #Create Production Environment Create Prod network using Jumphost Login to jumphost via SSH button or cloudshell gcloud compute ssh kraken-jumphost --internal-ip --zone us-east1-b cd /work/dm sed -i s/SET_REGION/us-east1/g prod-network.yaml gcloud deployment-manager deployments create \ prod-network --config=prod-network.yaml

#Creating the production kubernetes cluster and launch the application 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/k8s for F in $(ls *.yaml); do kubectl create -f $F; done

Task 2: Configure the admin host #Create kraken-admin gcloud config set compute/zone us-east1-b gcloud compute instances create kraken-admin --network-interface="subnet=kraken-mgmt-subnet" --network-interface="subnet=kraken-prod-subnet" Create alert: Open monitoring Create an alert Configure the policy to email your email when jumphost is cpu utilization is above 50% for 1 min

Task 3: Verify the Spinnaker deployment Use cloudshell and run gcloud config set compute/zone us-east1-b gcloud container clusters get-credentials spinnaker-tutorial DECK_POD=$(kubectl get pods --namespace default \ -l "cluster=spin-deck" -o jsonpath="{.items[0].metadata.name}") kubectl port-forward --namespace default $DECK_POD 8080:9000 >> /dev/null Go to cloudshell webpreview and go to applications->sample Open pipelines and manually run the pipeline if it has not already running. Approve the deployment to production. Check the production frontend endpoint (use http, not the default https) Back in cloudshell run these commands to push a change 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

qwick-labs--cloud-architect-challenge's People

Contributors

shabeehshakkir avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.