Kubernetes CoreAI in Kubernetes Core (self-study)
2 lessons · about 40 minutes of reading · free
This page is the public course outline. Lessons, labs, tools and exams open after you sign in to your free account.
Sign in and start
In short
Two lessons on AI in Kubernetes Core: AI for kubectl and YAML: kubectl-ai, K8sGPT, and verifying every answer; and running AI workloads on Kubernetes: GPUs, model servers and resource requests. A self-study course: cohort programmes may set it as homework rather than teach it live.
Before you start: Kubernetes Core courses c5 and c6.
What you'll learn
- kubectl-ai acts with confirmation; K8sGPT analyses and explains
- --explain sends data to the model; --anonymize masks names
- Read-only kubeconfig for diagnosis, scoped roles for changes
- Validate AI YAML: dry-run=server, kubeconform, kubectl diff
- GPUs appear as nvidia.com/gpu via a device plugin; Pods request them in limits
- Taint GPU nodes; tolerations and selectors for AI Pods; quotas per namespace
- Startup probes, memory and storage for model loading; cache weights
- Scale on queue or latency, not CPU; watch cost per request
Lessons
1. AI for kubectl and YAML: kubectl-ai, K8sGPT, and verifying every answer
Use natural-language assistants and analysers on Kubernetes without losing control: what kubectl-ai and K8sGPT do, what data they send to a model, how to confirm changes, and how to validate AI-written YAML with server-side dry runs and schema checks.
Sign in to open the lesson
2. Running AI workloads on Kubernetes: GPUs, model servers and resource requests
Understand what changes when a cluster runs AI: GPU nodes exposed through device plugins, Pods requesting nvidia.com/gpu, taints and tolerations to keep other work off expensive nodes, model servers that need memory and startup time, and autoscaling on the right signals.
Sign in to open the lesson
Common questions
Do these tools work offline?
Both can use local models (for example through Ollama), which keeps data in your network.
Can I test this without a GPU?
Yes: patch a node's capacity with a fake extended resource on kind to practise scheduling, taints and quotas.