j4flmao/agent-skills/kubernetes-mastery
Claude Code and agent skill by j4flmao/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when the user says 'kubernetes mastery', 'production-ready helm chart', 'helm chart best practices', 'helm template helpers', 'values schema', 'kubebuilder scaffold', 'write a kubernetes operator in go', 'chart plus operator', 'advanced helm templating'. Combines production Helm chart engineering (helpers, values.schema.json, tests, upgrade-safe templates) with a kubebuilder-based operator scaffold for teams shipping both. Do NOT use for: operator theory (cloud-native-k8s-operators), full operator lifecycle/OLM (devops-kubernetes-operators), Helm release management with helmfile/CI (helm-patterns).
Install
npx vskill@latest install j4flmao/agent-skills/kubernetes-masterySKILL.md
Kubernetes Mastery: Production Helm Charts and Operator Scaffolding
Purpose
Ship Kubernetes software that others install safely: a Helm chart whose values are validated and whose upgrades don't break, and — when day-2 automation is needed — a controller-runtime operator scaffolded with kubebuilder.
Agent Protocol
Trigger
"kubernetes mastery", "production helm chart", "helm best practices", "helm helpers", "values schema", "kubebuilder", "write an operator in go", "advanced helm templating".
Input Context
- What is being packaged; target Kubernetes and Helm versions (Helm 3; Helm 4 released Nov 2025 keeps chart API v2).
- Configurability required; whether a CRD/operator is involved.
Output Artifact
Chart files and/or operator scaffold commands + code. No file unless requested.
Response Format
Completion Criteria
- [ ]
helm lintand schema validation pass; rendered manifests validated against the target Kubernetes version. - [ ] Upgrades don't change selector labels or immutable fields.
- [ ] Operator reconciles idempotently and has envtest coverage.
Helm Chart Layout
Helpers (_helpers.tpl)
Selector labels must never include the version: spec.selector of a Deployment is immutable.
Deployment with config-change rollout
- Omit
replicaswhen an HPA manages scale, otherwise every upgrade resets it. checksum/configrestarts pods when the ConfigMap changes.- Use
required "image.repository is required" .Values.image.repositoryfor mandatory values.
Values schema (excerpt)
Chart validation pipeline
Operator Scaffold (kubebuilder)
API types with validation markers:
The reconcile loop itself (get → build desired → create/update → status conditions) is shown in skills/cloud-native/k8s-operators/SKILL.md. Generated RBAC comes from // +kubebuilder:rbac:groups=... markers above Reconcile.
Shipping an Operator with Helm
- Put CRDs in
crds/only if you accept that Helm never upgrades them; otherwise template CRDs (withhelm.sh/resource-policy: keep) or manage them separately. - Pin operator image by digest in production values.
Anti-Patterns
- Version label in selectors;
latestimage tags. - Giant
values.yamlwith no schema → silent typos (replicacount). - Using
lookupfor core logic (returns empty duringhelm template/dry-run client). - Generating secrets with
randAlphaNumon every upgrade (rotates passwords, breaks apps, and causes GitOps drift). - Deprecated API versions in templates; use
.Capabilities.APIVersions.Hasonly for genuinely optional APIs.
Checklist
- [ ] Standard helpers and
app.kubernetes.io/*labels. - [ ]
values.schema.jsoncovers required fields and enums. - [ ] kubeconform against target K8s versions in CI.
- [ ] Operator: markers for validation/status subresource, envtest, leader election on.
- [ ] Chart and app versions bumped independently (SemVer).
References
- Related skills:
skills/devops/helm-patterns/SKILL.md,skills/cloud-native/k8s-operators/SKILL.md,skills/devops/kubernetes-operators/SKILL.md.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloud-native/kubernetes-mastery/SKILL.md
Popularity
- Repository stars
- 27
- Repository forks
- 1
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/j4flmao/agent-skills/kubernetes-mastery)