Skip to main content

Kubelings ☸️

CI License: Apache-2.0 Python: 3.10+ Code style: ruff Type checker: pyright Playground

An interactive, client-side WebAssembly learning platform and comprehensive reference manual for Kubernetes.


⚡ Interactive WebAssembly Playground

Kubelings runs 100% in your browser using Pyodide WebAssembly and Monaco Editor (VS Code in the browser):

┌────────────────────────────────────────────────────────────────────────┐
│                          Web Browser Tab                               │
│  ┌───────────────────────┐             ┌─────────────────────────────┐ │
│  │     Monaco Editor     │  YAML Edit  │  Web Worker (Pyodide Wasm)  │ │
│  │  (VS Code in Browser) ├────────────►│  • PyYAML Manifest Parser   │ │
│  └───────────────────────┘             │  • 26 Schema Validators     │ │
│                                        │  • Progressive Hint Engine  │ │
│  ┌───────────────────────┐             └──────────────┬──────────────┘ │
│  │   Interactive xterm   │◄───────────────────────────┘                │
│  │    Terminal Output    │         Instant Test & Validation Result    │
│  └───────────────────────┘         (< 1ms in WebAssembly)              │
└────────────────────────────────────────────────────────────────────────┘

📚 Curriculum Structure (26 Chapters & 114 Exercises)

Core Workloads & Storage

  • 01. Pods & Core Workloads (pods01–pods06): Pod specs, multi-container pods, initContainers, ports
  • 02. Controllers & Replication (ctrl01–ctrl06): Deployments, ReplicaSets, StatefulSets, DaemonSets, Jobs, CronJobs
  • 03. Configuration & Secrets (config01–config05): ConfigMaps, Secrets, projected volumes, envFrom
  • 04. Storage & Persistent Volumes (storage01–storage05): PVs, PVCs, StorageClasses, access modes, volumeMounts

Networking & Traffic Routing

  • 05. Services & Networking (net01–net05): ClusterIP, NodePort, LoadBalancer, Headless services, Endpoints
  • 06. Ingress & Gateway API (ingress01–ingress04): Ingress controllers, path rules, TLS termination, annotations
  • 21. Gateway API Deep Dive (gateway01–gateway04): GatewayClass, Gateways, HTTPRoute, canary splits, ReferenceGrant
  • 09. Network Policies (netpol01–netpol04): Default deny, ingress/egress CIDR blocks, port rules

Scheduling, Security & Scaling

  • 07. Scheduling & Advanced Placement (sched01–sched05): nodeSelector, node/pod affinity, taints, tolerations, topology spread
  • 08. Security, RBAC & ServiceAccounts (rbac01–rbac05): Roles, ClusterRoles, RoleBindings, SecurityContext, PSS/PSA
  • 10. Health Probes & Lifecycle (health01–health04): Liveness, readiness, startup probes, termination grace periods
  • 11. Autoscaling (HPA, VPA, KEDA) (autoscale01–autoscale04): Horizontal Pod Autoscaler v2, VPA, event-driven KEDA
  • 18. Admission Webhooks (webhook01–webhook04): Mutating, validating webhooks, sidecar injection, CRD conversion

CRDs, Troubleshooting & Packaging

  • 12. Custom Resources & Operators (crd01–crd04): OpenAPI v3 schemas, subresources, reconciliation loops
  • 13. Production Troubleshooting (troubleshoot01–troubleshoot05): CrashLoopBackOff, ImagePullBackOff, Pending pods, ephemeral debug
  • 19. Package Management with Helm (helm01–helm04): Chart.yaml, Go templates, _helpers.tpl, values schemas, subcharts
  • 20. Declarative Customization with Kustomize (kustomize01–kustomize04): Bases, overlays, generators, strategic merge patches

Modern Cloud Native Ecosystem

  • 14. GitOps with ArgoCD (gitops01–gitops04): Applications, ApplicationSets, sync policies, Argo Rollouts
  • 15. Service Mesh & Cilium eBPF (mesh01–mesh04): L7 routing, mTLS, FQDN egress, Hubble observability
  • 16. Policy as Code (Kyverno & OPA) (policy01–policy04): ClusterPolicies, mutating/generating rules, Gatekeeper constraints
  • 17. Multi-Tenancy & Virtual Clusters (tenant01–tenant04): HNC anchors, tenant quotas, vcluster control planes
  • 22. Infrastructure as Data with Crossplane (crossplane01–crossplane04): XRDs, Compositions, Managed Resources, claims
  • 23. Kernel Security with eBPF Tetragon (tetragon01–tetragon04): sys_execve tracing, credential monitoring, kernel Sigkill
  • 24. Distributed AI Orchestration with KubeRay (ray01–ray04): RayCluster, RayJob batch tuning, RayService serving
  • 25. Batch AI Scheduling (Kueue & Volcano) (kueue01–volcano02): ClusterQueue cohorts, gang scheduling, fair-share
  • 26. Hardware Acceleration & DRA (accel01–accel04): NVIDIA MIG, Apple Silicon GPU, DRA, vLLM serving

🛠️ Local Development & Contributing

Setup

# Clone repository
git clone https://github.com/dnf0/kubelings.git
cd kubelings

# Create virtual environment and install dev dependencies
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"

Running Tests and Linting

# Run test suite
pytest

# Run linter and formatting
ruff check .
ruff format --check .

# Run type checks
pyright

# Build documentation locally
mkdocs serve

🌐 The *lings Ecosystem

If you enjoy the interactive learning model of Kubelings, explore the other platforms in our suite:

  • 🏗️ Terralings – Master Terraform and OpenTofu through interactive infrastructure-as-code exercises.
  • 🇪🇸 Spanglings – Developer-grade CLI & interactive TUI for learning Spanish (B1–C1).
  • ⚡ Raylings – Learn distributed AI, Ray Core actors, and scalable clusters through hands-on Python exercises.

📄 License

Kubelings is open-source software licensed under the Apache License 2.0.

Metadata

Release files for kubelings 0.19.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kubelings 0.19.0
File Size Uploaded
kubelings-0.19.0.tar.gz 836.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kubelings 0.19.0
File Interpreter ABI Platform
kubelings-0.19.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / kubelings-0.19.0.tar.gz

Download URL kubelings-0.19.0.tar.gz
Size 836.7 kB
Tags Source
SHA-256 checksum
How to use checksums
fa4f763a16ddd28514ad2ae010083d60c0e01b9edf157e77cd7eaeea3ed978e2
BLAKE2b-256 checksum
How to use checksums
24ad7b5a39bd785f5e135c58c9094e921d935672d40522cd72347c7f15c05c24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / kubelings-0.19.0-py3-none-any.whl

Download URL kubelings-0.19.0-py3-none-any.whl
Size 247.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3cc793d0c81ca3ea5f14c3c9b9310fef8df8442095e80569e75e386ac8515981
BLAKE2b-256 checksum
How to use checksums
84c34f2c071ee06f38cb0f40da78cc1b909af4fc59779299efb1e6b63a3e0ea5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

This release

0.19.0 This release

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.10

2 release files

0.9.9

2 release files

0.9.8

2 release files

0.9.7

2 release files

0.9.6

2 release files

0.9.5

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.2

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page