$ show vj2201/CKA-PREP-2025-v2
This repository is a collection of hands-on practice labs for the Certified Kubernetes Administrator (CKA) exam. It is not a software application or data pipeline but a study resource consisting of bash scripts and Kubernetes YAML manifests. Each lab (Question-*) contains a LabSetUp.bash that creates a realistic cluster scenario, a Questions.bash describing the task, and a SolutionNotes.bash with step-by-step solutions. The scripts/run-question.sh orchestrates setup and display. The code is straightforward and functional, with no complex architecture or reusable components beyond the lab context. It relies on a running Kubernetes cluster (e.g., Killercoda) and standard tools like kubectl and helm. The repo is actively maintained (last commit dated 2026-05-12, though this may be a data anomaly) and has low technical drift, using recent Kubernetes versions and practices.
The LLM identified 3 files worth highlighting for reuse:
A simple bash script that automates running a lab: it sources the LabSetUp.bash, prints the question, and optionally points to the solution. It demonstrates a clean pattern for organizing and executing a series of independent lab setups, though it is tightly coupled to the repo's directory structure.
This setup script creates a PersistentVolume, PVC, and MariaDB deployment, then simulates accidental deletion of the deployment and PVC, and resets the PV's claimRef for reuse. It demonstrates a realistic troubleshooting scenario and a pattern for resetting Kubernetes resources to a clean state, which could be adapted for other stateful workload labs.
This script simulates a broken kube-apiserver by changing the etcd client port in the static pod manifest, then checks logs and verifies the API is down. It shows a practical method for creating a controlled failure scenario for debugging practice, leveraging direct manipulation of Kubernetes static pod manifests.