k8s-controller
CommunityBuild reliable Kubernetes reconcilers
System Documentation
What problem does it solve?
Kubernetes controllers often fail in production due to non-idempotent reconciliation, broken finalizer lifecycles, incorrect RBAC, missed watch events, or inefficient workqueue patterns. This skill helps you design and review controller-runtime and Kubebuilder operators that behave correctly under deletes, conflicts, retries, and high event volume.
Core Features & Use Cases
- Production-grade reconciliation patterns: level-based reconciliation, NotFound handling, and strict idempotency guidance.
- Correct deletion behavior: finalizer setup, cleanup flow, and safe finalizer removal timing.
- Controller-runtime setup and watch correctness: predicates, MaxConcurrentReconciles, and safe secondary resource requeue mapping without fragile API calls.
- Error handling and retries: selecting the right requeue mechanism and handling optimistic concurrency with RetryOnConflict patterns.
- RBAC/CRD design best practices: kubebuilder marker examples for status subresources, finalizers intent, and validation/print columns.
- Performance and testing strategy: avoid blocking I/O in Reconcile, reduce API load via selectors/indexing, and test with fake clients + kind-based functional verification.
Quick Start
Use the k8s-controller skill when you are implementing or reviewing a Kubernetes controller and want to apply reliable reconcile, finalizer, RBAC, and watch patterns.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: k8s-controller Download link: https://github.com/pokgak/agent-skills/archive/main.zip#k8s-controller Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.