- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Core Tech
Managing Kubernetes with Kubectl
Deploying and maintaining containerized workloads is a fundamental part of using Kubernetes. In this lab, you create a deployment using kubectl and expose it to make it publicly accessible.Then you will verify that the application is functioning correctly. After that you will update the deployment and verify that there are no errors.
Lab Info
Table of Contents
-
Challenge
Create a Deployment
Once the environment is ready, login to the cloud instance.
Peform the following:
- You will need to start Minikube.
- Then enable the repository addon.
- Clone the Git repository..
- Navigate to the Lab directory and create a docker image
'localhost:5000/globomantics-site:latest. - Creaeta a tunnel to the reigstery and push the image to it.
- Craete a deployment using the image that was created and make it accessible.
-
Challenge
Update the Application
Once the deployment is accessible:
- Checkout the broken branch.
- Rebuild and push the image.
- Preform a rollout to update the deployment.
- Setup port-forwarding and curl
localhostusing the port you setup. - List the pods and check the logs for the pod.
- Check the pod for errors.
- Perform a rollback.
- Scale the deployment up to 3 replicas.
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.