Production-ready, beautiful glassmorphic UI, Dockerized, and extensible practice simulator.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
kcna-playground is an enterprise-grade, open-source CNCF practice platform designed to prepare engineers for the Linux Foundation Kubernetes and Cloud Native Associate (KCNA) certification. Featuring a futuristic glassmorphic design, real-time file watching for custom question sets, full exam simulators, deep learning analytics, and Docker volume persistence, kcna-playground serves as the community-standard practice playground.
The hands-on Kubernetes playground for KCNA preparation.
- โญ Practice
- ๐งช Labs
- โธ๏ธ Kubernetes
- ๐ Cloud Native
- ๐ฏ KCNA Exam
- ๐ฏ Massive Question Bank: 1,500 built-in KCNA questions covering all 5 CNCF domains.
- โก Dynamic Ingestion: Drop custom JSON question sets into Docker volumesโno restart needed!
- ๐ Pro Practice: Timed simulator, AI prediction, review modes, and detailed score tracking.
- ๐ฎ Premium UX: Glassmorphic dashboards, 3D flapping modals, and enterprise logging.
- ๐ Read the Full Comprehensive Feature List Here!
kcna-playground/
โโโ apps/
โ โโโ backend/ # Express.js + TypeScript API & Real-Time Chokidar Volume Watcher
โ โโโ frontend/ # React 18 + Vite + TailwindCSS Custom Edition
โโโ packages/
โ โโโ shared/ # Shared TypeScript types, Zod Schema, Domain definitions
โโโ custom-data/ # Mounted Docker volume directory for custom JSON question sets
โโโ data/
โ โโโ questionSets/ # Built-in 5 question sets (300 questions each, 1,500 total)
โโโ logs/ # Enterprise rotating server logs
โโโ Dockerfile # Multi-stage production container build
โโโ docker-compose.yml # Docker Compose configuration with persistent volume mounts
โโโ README.md # Documentation
Choose one of the following methods to run KCNA Playground.
Run the latest published Docker image directly:
docker run -itd \
--name kcna-playground \
-p 5000:5000 \
-v "$(pwd)/custom-data:/app/custom-data" \
-v "$(pwd)/logs:/app/logs" \
ibraransaridocker/kcna-playground:latestThe application will be available at:
Create a docker-compose.yml file using the following command:
cat <<'EOF' > docker-compose.yml
services:
kcna-playground:
image: ibraransaridocker/kcna-playground:latest
container_name: kcna-playground
ports:
- "5000:5000"
volumes:
- ./custom-data:/app/custom-data
- ./logs:/app/logs
EOFStart the application:
docker compose up -dThe application will be available at:
To build the image locally instead of using the published image:
git clone https://github.com/meibraransari/kcna-playground.git
cd kcna-playground
docker compose build
docker compose up -d --build- Node.js >= 20.x
- npm >= 10.x
# 1. Clone repository
git clone https://github.com/meibraransari/kcna-playground.git
cd kcna-playground
# 2. Install dependencies across all workspaces
npm install
# 3. Copy environment configuration
cp .env.example .env
# 4. Generate the 5 built-in question sets (1,500 questions)
npm run generate:questions
# 5. Start in local development mode (Vite Dev Server + Backend API)
npm run dev
# 6. OR Build and run production bundle natively on Port 5000
npm run build
npm run prod- Development UI: http://localhost:5173
- Production Server & API: http://localhost:5000
One of the most powerful features of kcna-playground is the ability to add your own custom question sets without editing code or rebuilding container images.
๐ Note: You can add any exam using the same JSON format. Students can also create their own subjects and topics, then explore and practice them in the lab.
In docker-compose.yml, the host directory ./custom-data is mounted directly into /app/custom-data inside the container:
services:
kcna-playground:
build: .
ports:
- "5000:5000"
volumes:
- ./custom-data:/app/custom-data
- ./logs:/app/logs
environment:
- PORT=5000
- ENABLE_FILE_WATCHER=true
- CUSTOM_DIRECTORY=/app/custom-data-
Start the App via Docker Compose:
docker compose up -d
Your application will be live at
http://localhost:5000. -
Create a Custom Question Set File: Create a JSON file on your host machine named
myCustomSet.jsonfollowing this schema:{ "id": "questionSet-custom-devops-1", "title": "Custom Kubernetes Fundamentals & ArgoCD Set", "description": "25 High-yield practice questions for cloud native workflows", "version": "1.0.0", "questions": [ { "id": "custom-q-101", "question": "Which Kubernetes component runs controller loops to maintain the desired cluster state?", "options": [ "kube-scheduler", "kube-controller-manager", "etcd", "kubelet" ], "correctAnswer": 1, "explanation": "kube-controller-manager embeds core control loops that continuously reconcile actual state with desired state.", "difficulty": "medium", "domain": "Kubernetes Fundamentals", "topic": "Control Plane Components", "subtopic": "kube-controller-manager", "references": ["https://kubernetes.io/docs/concepts/overview/components/"], "tags": ["control-plane", "k8s-fundamentals"], "estimatedTime": 60, "version": "1.0" } ] } -
Drop the File into
./custom-data/: Copy or save your new JSON file directly into your localcustom-data/folder:cp myCustomSet.json ./custom-data/
-
Watch Real-Time Automatic Loading:
- Thanks to the container's real-time Chokidar File Watcher, the backend detects
myCustomSet.jsonwithin milliseconds. - It validates your questions against the Zod schema and makes them immediately available in the UI.
- Open the Exam Simulator or Challenge Studio in your browser, click Select Question Set, and pick
myCustomSet.json! - No container restarts or image rebuilds required!
- Thanks to the container's real-time Chokidar File Watcher, the backend detects
We welcome community contributions!
- Fork the repository (
https://github.com/meibraransari/kcna-playground). - Create a feature branch (
git checkout -b feature/amazing-feature). - Commit your changes (
git commit -m 'feat: add amazing feature'). - Push to the branch and open a Pull Request.
Distributed under the Apache License, Version 2.0. See LICENSE for more information.





