
Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Create a Docker image and store the Dockerfile
/ 25
Test the created Docker image
/ 25
Push the Docker image in the Google Container Repository
/ 25
Create and expose a deployment in Kubernetes
/ 25
In a challenge lab you’re given a scenario and a set of tasks. Instead of following step-by-step instructions, you will use the skills learned from the labs in the course to figure out how to complete the tasks on your own! An automated scoring system (shown on this page) will provide feedback on whether you have completed your tasks correctly.
When you take a challenge lab, you will not be taught new Google Cloud concepts. You are expected to extend your learned skills, like changing default values and reading and researching error messages to fix your own mistakes.
To score 100% you must successfully complete all tasks within the time period!
This lab is recommended for students who have enrolled in the Deploy Kubernetes Applications on Google Cloud skill badge course. Are you ready for the challenge?
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
You have just completed training on containers and their creation and management and now you need to demonstrate to the Jooli Inc. development team your new skills. You have to help with some of their initial work on a new project around an application environment utilizing Kubernetes. Some of the work was already done for you, but other parts require your expert skills.
You are expected to create container images, store the images in a repository, and expose a deployment in Kubernetes. Your know that Kurt, your supervisor, will ask you to complete these tasks:
As soon as you sit down at your desk and open your new laptop you receive the following request to complete these tasks. Good luck!
valkyrie-app
source code into the ~/valkyrie-app
directory. You can use the following command:The app source code is in valkyrie-app/source
.
valkyrie-app/Dockerfile
and add the configuration below:Use valkyrie-app/Dockerfile
to create a Docker image called
Once you have created the Docker image, and before clicking Check my progress, run the following command to perform the local check of your work:
After you get a successful response from the local marking you can check your progress.
Click Check my progress to verify the objective.
&
to the end of the command to cause the container to run in the background.When your container is running you will see the page by Web Preview.
After you get a successful response from the local marking you can check your progress.
Click Check my progress to verify the objective.
Create a repository named
Before you can push or pull images, configure Docker to use the Google Cloud CLI to authenticate requests to Artifact Registry. You will need to set up authentication to Docker repositories. You can use the following command.
Re-tag the container to be able push it to the repository. The format should resemble the following: LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY/IMAGE
.
Push the Docker image to the Artifact Registry.
Click Check my progress to verify the objective.
Kurt created the deployment.yaml
and service.yaml
to deploy your new container image to a Kubernetes cluster (called valkyrie-dev). The two files are in valkyrie-app/k8s
.
Get the Kubernetes credentials using
Before you create the deployments, Make sure you check and replace some placeholder values in the deployment.yaml
file and the format should be LOCATION-docker.pkg.dev/PROJECT-ID/REPOSITORY/IMAGE
.
Create the deployments from the deployment.yaml
and service.yaml
files.
From the Navigation Menu, select Kubernetes Engine > Gateways, Services & Ingress. Click on the load balancer IP Address of the valkyrie-dev
service to verify your services are up and running.
Click Check my progress to verify the objective.
Congratulations! In this lab you verified your skills on creating Docker container images, storing them in Artifact Registry, and using the stored image to create and expose a deployment in Kubernetes.
This self-paced lab is part of the Deploy Kubernetes Applications on Google Cloud skill badge course. Completing this skill badge course earns you the badge above, to recognize your achievement. Share your badge on your resume and social platforms, and announce your accomplishment using #GoogleCloudBadge.
This skill badge course is part of Google's Cloud Hybrid and Multi-Cloud Cloud Architect learning path. If you have already completed the other skill badge course in this learning path, search the Google Cloud Skills Boost catalog for 20+ other skill badge course in which you can enroll.
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated February 05, 2025
Lab Last Tested February 05, 2025
Copyright 2025 Google LLC All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We will notify you via email when it becomes available
Great!
We will contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one