Kubernetes Lab Guide

Kubernetes Curriculum · Kubernetes Study Log

Choose a lab

Start on your Mac with a disposable kind cluster if a compatible container runtime is already available. minikube is an alternative if its drivers/add-ons better suit your setup. Follow the current kind quick start or minikube start guide for installation and supported versions.

Record available machine resources before adding observability or multiple nodes. Begin with one node; introduce multiple disposable workers for placement, disruption, and drain exercises. Do not treat a local simulation as proof of cloud provisioning or production resilience.

Environment record

Fill this in when creating the lab:

ItemYour value
Date
Machine and CPU architecture
Runtime and version
kind/minikube version
Cluster Kubernetes version
kubectl version
Current context
Study namespacek8s-study
CNI and NetworkPolicy support
StorageClass and provisioner
Metrics pipeline
External routing controller
Documentation version

These are recording fields, not evidence that anything has been installed.

First local session

After installing the tools, the following is a proposed kind workflow. Commands are provided for study and have not been executed in this vault:

kind create cluster --name k8s-study
kubectl config current-context
kubectl cluster-info
kubectl get nodes -o wide
kubectl create namespace k8s-study
kubectl -n k8s-study get pods

Use a small sample image and manifests from the current Kubernetes Basics tutorial. Record the image reference and platform compatibility. Apply the Deployment and Service into the study namespace, wait for readiness, and use port-forwarding for initial local access.

Useful observations to collect:

kubectl -n k8s-study get deploy,rs,pods,svc
kubectl -n k8s-study get events --sort-by=.metadata.creationTimestamp
kubectl -n k8s-study describe pods

Check the current context before every modifying command. Keep kubeconfig, tokens, real secrets, and private certificates outside study commits.

Requirements for later labs

ExerciseDependency to verify
NetworkPolicyA CNI that actually enforces the selected policy features
HPAAppropriate metrics API, resource requests where needed, and bounded load
PVC persistenceA working provisioner and StorageClass; know reclaim behavior
Ingress/GatewayCompatible controller, installed APIs, and local exposure configuration
Scheduling/drainMultiple disposable nodes and suitable resource capacity
VPASeparate add-on; begin with recommendations before automatic updates
Cluster autoscalingProvider integration or a conceptual simulation; not demonstrated by a fixed local node set
Trace analysisInstrumented application and a compatible collector/backend

Exercise record template

Copy into the relevant topic’s Notes section:

  • Goal and prerequisite:
  • Context, namespace, and versions:
  • Manifest or command:
  • Expected behavior:
  • Observed output or evidence:
  • Deliberate failure and diagnosis:
  • Explanation in my own words:
  • Cleanup:
  • Recall answer and remaining question:

Cleanup

Only after confirming the lab cluster identity and that no needed data remains:

kind delete cluster --name k8s-study

For minikube use that tool’s documented profile-specific cleanup instead. If you later create cloud resources, record their names, cost boundaries, and deletion verification in the session log.