- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Core Tech
Building a Basic Kubernetes Cluster
In this hands-on lab, you'll build a basic Kubernetes cluster from the ground up using `kubeadm`, then deploy and expose a web application, and verify it's running correctly. You'll move beyond single-container Docker workflows and get practical, guided experience with core Kubernetes cluster administration tasks, without the complexity of multi-node or production-grade architectures.
Lab Info
Table of Contents
-
Challenge
Access the terminal and verify the cluster prerequisites
- Retrieve lab credentials and connect to the control plane node.
- Confirm the node's automated setup and installed tooling.
-
Challenge
Initialize the Kubernetes cluster with kubeadm
- Use kubeadm to create the control plane.
- Configure kubectl access with the generated kubeconfig.
-
Challenge
Configure cluster networking and make the node schedulable
- Apply the Flannel CNI plugin.
- Remove the control-plane taint to allow scheduling.
-
Challenge
Deploy a web server application to the cluster
- Create and scale an nginx Deployment.
- Review the Deployment's generated configuration.
-
Challenge
Expose and verify access to the application
- Expose the Deployment with a NodePort service.
- Verify access from the control plane node.
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.