Skip to content

urbinaalex17/mstakx_k8_assessment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prerequisites

All the scripts were designed to be executed from within the Google Cloud Shell

Once there, you can clone the entire repository as follow:

git clone https://github.com/urbinaalex17/mstakx_k8_assessment.git

It's important to have one Billing Acount activated, otherwise all the proccess will fail.

Customizing the project's name, cluster's name and region

Please update the following variables in the mstakx.config file, located in the scripts folder, prior to its execution, otherwise the creation is likely to fail due to Google maintains unique project IDs.

Variable used to create a project within Google Cloud Platform. Project IDs must start with a lowercase letter and can have lowercase ASCII letters, digits or hyphens. Project IDs must be between 6 and 30 characters.

PROJECT_ID="mstakx-k8s-assessment"

Variable used in the creation of the cluster, this is the cluster's name that will be set on the Kubernetes Engine page.

CLUSTER_NAME="mstakx"

Variable used in the creation of the cluster, this property will set the closest region for the United Kingdom in this case europe-west2. Please refer to Regions and Zones for further information.

REGION="europe-west2"

CPU Load test for the Horizontal Pod Autoscaler

If the creation of the project and cluster went right, you will need to open up 3 terminal sessions more. Make sure to disable Tmux integration.

DNS Settings

The script will tell you the proper entries you need to create in your hosts file in order to reach staging-guestbook.mstakx.io and guestbook.mstakx.io pages.

Using the wrapper script

Once you had been checked out the previous sections, now you are able to execute the all-steps.sh script, located in the scripts folder.

Cleaning up

To delete the project and cluster execute the cleanup.sh script, located in the scripts folder.

Documentation

Details are documented in the README.md

About

Kubernetes Test - 22nd Oct'18

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages