Back to browse
GitHub Repository

Claude Code plugin for building Kubernetes CRD operators with webhooks and Tilt fast dev loop

34 starsShell

Claude Code plugin for building Kubernetes CRD operators

by saggy4·Feb 23, 2026·1 point·0 comments

AI Analysis

●●SolidShip ItSolve My ProblemBig Brain

Automates 2-3 hours of Kubebuilder boilerplate before you write operator logic.

Strengths
  • Solves a real, repetitive pain point—CRD operator setup is tedious and error-prone.
  • Safety-first design: context guard prevents accidental kubectl on production clusters.
  • Comprehensive workflow: prereqs through quality checklist, all guided from Claude.
Weaknesses
  • Audience is narrow: only K8s operators + Claude Code adoption required (niche intersection).
  • No evidence of adoption or validation—early stage, GitHub shows 22 stars but no testimonials.
Target Audience

Kubernetes operators developers, Go developers using Claude Code

Similar To

Kubebuilder · Operator SDK · Tilt

Post Description

Hey HN,

I built this after getting tired of the Kubebuilder scaffolding ritual — initializing the project, wiring up the controller, configuring webhooks, setting up cert-manager, writing the Tiltfile for fast iteration. It's the same 2-3 hours of boilerplate every time before you write a single line of actual reconciliation logic. The plugin guides Claude Code through the entire operator lifecycle via slash commands:

/k8s:prereqs — checks and installs Go, Kubebuilder, kind, kubectl, Kustomize, Tilt

/k8s:create-cluster — spins up a kind cluster

/k8s:create-operator — guided workflow: requirements gathering, CRD design, controller, webhooks, RBAC

/k8s:dev — starts the Tilt dev loop with live reload

/k8s:verify — validates CRDs, pods, webhooks, and events

/k8s:checklist — runs a quality and safety checklist before you ship

The part I'm most happy with is the safety hook: a PreToolUse hook that blocks kubectl/helm/kustomize commands if the current context isn't a kind-* cluster. Accidental operations on production clusters while developing locally is a real footgun and this eliminates it entirely.

Install:

claude plugin marketplace add https://github.com/Sagart-cactus/claude-k8s-plugin claude plugin install k8s@sagart-devtools

GitHub: https://github.com/Sagart-cactus/claude-k8s-plugin

Built this partly as a learning exercise in Claude Code's plugin system, and partly because I'm building a larger project where this capability was needed: OptiPod (https://github.com/Sagart-cactus/optipod), a GitOps-safe Kubernetes resource rightsizing operator. Happy to answer questions about the plugin architecture, the hook system, or the operator patterns baked into the skills.

Similar Projects

Infrastructure●●Solid

Multigres Kubernetes Operator

Direct pod management instead of StatefulSets enables drain-safe rolling updates.

WizardryNiche Gem
sougou
702mo ago
Infrastructure●●Solid

Introducing Kite AI Agent: Conversational Operations for Kubernetes

Feature-rich Kite dashboard adds AI agent layer, but Kubernetes dashboards are well-served by Lens, Rancher, Kubeflow.

Niche GemSlick
xdasf
103mo ago