Kubernetes Operator Builder

Build or operate a Kubernetes operator: define custom resources, write reconciliation logic, validate behavior.

AI Agents / Developmentai-agentsdevelopment
by AgentVoltv1.0.0Published 1y ago1 install
Free to sign up · every skill included with AgentVolt Pro

Before & after

Same prompt, same agent — the only difference is the skill.

PromptDeploy our app to Kubernetes with a clean operator pattern
Beforegeneric AI agent
Kubernetes is powerful but complex. You'll want to think about how to structure your application deployment—things like pods, services, ingress, and volumes. Using operators can help automate repetitive tasks and make your cluster more manageable. You could start by writing a basic deployment manifest, testing it locally with Minikube, then gradually add more sophistication. The key is to understand your application's needs and how they map to Kubernetes resources. There are many tools and frameworks that can help, so it might be worth exploring what's available. Let me know if you'd like help thinking through your specific architecture.
Afterwith Kubernetes Operator Builder
KUBERNETES OPERATOR DEPLOYMENT

CUSTOM RESOURCE DEFINITION (CRD)
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
  name: appdeployments.mycompany.io
spec:
  group: mycompany.io
  names:
    kind: AppDeployment
  scope: Namespaced
  versions:
  - name: v1
    served: true
    storage: true
    schema:
      openAPIV3Schema:
        properties:
          spec:
            properties:
              replicas: {type: integer}
              image: {type: string}
              env: {type: array}

OPERATOR WORKFLOW (Pseudo-code)
1. Watch AppDeployment resources in cluster
2. On create: generate Deployment, Service, PVC manifests
3. On update: reconcile desired state (scale replicas, update image)
4. On delete: cascade cleanup (keep PVC for data safety)
5. Health probe: restart pods on 3 failed liveness checks

DEPLOYMENT CHECKLIST
✓ Operator container: published to registry.mycompany.com:latest
✓ RBAC: operator SA has get/list/watch/patch on Deployments, Services, PVCs
✓ Leader election: enabled (single operator instance safe)
✓ Finalizers: protect PVC deletion (manual approval required)
✓ Webhooks: validate AppDeployment spec (image must be tagged, replicas 1-10)

EXAMPLE: Create instance
kubectl apply -f - <<EOF
apiVersion: mycompany.io/v1
kind: AppDeployment
metadata:
  name: myapp
spec:
  replicas: 3
  image: myregistry.com/myapp:v1.2.0
  env:
  - name: DB_HOST
    value: postgres.default.svc.cluster.local
EOF

Status: Operator creates 3 pods, 1 service, routes traffic automatically

About this skill


name: skills-kubernetes-operator description: Use when Structured Claude skill that gives Claude a repeatable workflow for skills kubernetes operator.

Skills Kubernetes Operator

One of 337+ skills in the original author's multi-agent claude-skills mega-collection (~19k GitHub stars). Packages the Skills Kubernetes Operator workflow with its own instructions and validation so outputs stay consistent.

What you get

  • Public GitHub repo (alirezarezvani/claude-skills)
  • the skills-kubernetes-operator skill folder with SKILL.md. Part of a 337-skill / 30-agent / 70-command install.

Customize your output

  • Fork the repo and adapt the skill's instructions and references to your workflow.

Example output

Activates automatically when your request matches Skills Kubernetes Operator; chains with the other skills, agents, and commands in the collection.

Best for

Creators, builders, and teams using Claude Code.

SKILL.md preview

SKILL.md
---
name: skills-kubernetes-operator
description: Use this skill when the user needs a repeatable Kubernetes operator workflow for managing cluster resources, reconciliation logic, or custom resource definitions.
version: 1.0.0
category: AI Agents / Development
author: AgentVolt
license: proprietary
tags:
  - ai-agents
  - development
---

# Skills Kubernetes Operator

Packages a repeatable workflow for building or operating a Kubernetes operator — defining custom resources, writing reconciliation logic, and validating behavior against real cluster state.

## When to use

… (sign up to view the full skill)
Sign up to view, copy, and install the full skill

More ai & agents skills

View all AI & Agents skills →