- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud
Deploying and Scaling Applications on Google Kubernetes Engine
You are part of the infrastructure team at Globomantics. After a series of complicated and failed deployments, senior management has decided to modernize Globomantics' infrastructure. You have been tasked with creating a Kubernetes cluster and deploying a containerized workload as a proof of concept. In this lab, you will create a **GKE cluster**, and deploy `google-samples/hello-app:1.0` to it and make it publicly accessible. You will then scale up the application as well as perform a rolling update.
Lab Info
Table of Contents
-
Challenge
Deploy GKE Cluster in Google Cloud
Once the environment is ready, login to the cloud instance. Peform the following:
- Using the provided Compute Instance, use
gcloudto create a GKE cluster. - Make sure GKE has the following settings:
- Create 1 node
- A machine type of
e2-standard-2 - 30GB of diskspace
- Enable IP alias
- Use the
regularrelease channel - Make sure the current version is 1.33
- Check and make sure that
kubectlis working with the cluseter by list the nodes.
- Using the provided Compute Instance, use
-
Challenge
Deploy a Containerized Workload to GKE and Make It Accessible
Once the GKE cluster ready and assessable, deploy a containerized workload:
- Clone the Git repository.
- Use the manifers files to create the deployment and service.
- Verify application is working by find the External IP address and check it in the browser.
- Verify there are no errors in the logs.
-
Challenge
Manage the Containerized Workload
Now it's time to make some changes to the deployment: -Scale deployment to 3
replicas.- Verify that the deployment has been update by using
kubectlto list the pod in the deployment. - Use
rolloutto redeploy the pods in the deployment without making changes to the manifest file.
- Verify that the deployment has been update by using
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.