PluginBench
Skill
Fail
Audit score 45

kubernetes-specialist

jeffallan/claude-skills

Deploy and manage Kubernetes workloads with secure manifests, RBAC, networking, and troubleshooting.

What is kubernetes-specialist?

Kubernetes Specialist helps you design and deploy production-ready Kubernetes workloads. Use it to create deployment manifests, configure security policies, set up networking, manage storage, troubleshoot pod issues, and optimize resource usage across single and multi-cluster environments.

  • Generate declarative YAML manifests for Deployments, StatefulSets, DaemonSets, Jobs, and CronJobs
  • Configure RBAC policies, ServiceAccounts, and least-privilege permissions
  • Design and implement NetworkPolicies for network segmentation and isolation
  • Create Helm charts for application packaging and templating
  • Troubleshoot pod crashes, resource limits, and container logs
  • Set up persistent storage with PV, PVC, and StorageClasses

How to install kubernetes-specialist

npx skills add https://github.com/jeffallan/claude-skills --skill kubernetes-specialist
Claude Code
Cursor
Windsurf
Cline

How to use kubernetes-specialist

  1. 1.Describe your workload requirements (replicas, resource needs, security constraints)
  2. 2.Provide context on networking, storage, and RBAC needs
  3. 3.Receive complete YAML manifests with ServiceAccount, Role, RoleBinding, and NetworkPolicy
  4. 4.Apply manifests using kubectl apply -f
  5. 5.Validate deployment with kubectl rollout status and kubectl get pods -w
  6. 6.Inspect logs and events if issues occur; roll back with kubectl rollout undo if needed

Use cases

Good for
  • Deploying a multi-replica application with health checks and resource limits
  • Securing a pod to run as non-root with read-only filesystem and dropped capabilities
  • Restricting network traffic between namespaces using NetworkPolicies
  • Debugging a CrashLoopBackOff by inspecting logs and events
  • Right-sizing workloads based on resource usage metrics
Who it's for
  • Platform engineers and SREs managing Kubernetes clusters
  • DevOps engineers deploying containerized applications
  • Security teams implementing least-privilege access and network policies
  • Application developers learning Kubernetes best practices
  • Infrastructure architects designing multi-cluster strategies

kubernetes-specialist FAQ

Should I use imperative kubectl commands or declarative YAML?

Always use declarative YAML manifests for production. Imperative commands are error-prone and not reproducible. Store manifests in version control.

What resource requests and limits should I set?

Set requests based on typical workload usage and limits as a safety ceiling. Start conservative (e.g., 100m CPU, 128Mi memory) and adjust based on kubectl top pods metrics. Always set both.

How do I keep secrets secure in Kubernetes?

Use Kubernetes Secrets (not ConfigMaps) and reference them via envFrom or volumeMounts. Never hardcode credentials in YAML or environment variables. Consider sealed-secrets or external secret managers for GitOps.

What is the minimum RBAC setup?

Create a dedicated ServiceAccount per application, a Role with only required permissions (get, list on specific resources), and a RoleBinding to connect them. Avoid using the default ServiceAccount.

How do I debug a pod that keeps crashing?

Run kubectl describe pod <name> to see events, kubectl logs <name> --previous for crash logs, and kubectl logs <name> for current logs. Check resource limits, health probe configuration, and image availability.

Full instructions (SKILL.md)

Source of truth, from jeffallan/claude-skills.


name: kubernetes-specialist description: Use when deploying or managing Kubernetes workloads. Invoke to create deployment manifests, configure pod security policies, set up service accounts, define network isolation rules, debug pod crashes, analyze resource limits, inspect container logs, or right-size workloads. Use for Helm charts, RBAC policies, NetworkPolicies, storage configuration, performance optimization, GitOps pipelines, and multi-cluster management. license: MIT metadata: author: https://github.com/Jeffallan version: "1.1.1" domain: infrastructure triggers: Kubernetes, K8s, kubectl, Helm, container orchestration, pod deployment, RBAC, NetworkPolicy, Ingress, StatefulSet, Operator, CRD, CustomResourceDefinition, ArgoCD, Flux, GitOps, Istio, Linkerd, service mesh, multi-cluster, cost optimization, VPA, spot instances role: specialist scope: infrastructure output-format: manifests related-skills: devops-engineer, cloud-architect, sre-engineer, terraform-engineer, security-reviewer, chaos-engineer

Kubernetes Specialist

When to Use This Skill

  • Deploying workloads (Deployments, StatefulSets, DaemonSets, Jobs)
  • Configuring networking (Services, Ingress, NetworkPolicies)
  • Managing configuration (ConfigMaps, Secrets, environment variables)
  • Setting up persistent storage (PV, PVC, StorageClasses)
  • Creating Helm charts for application packaging
  • Troubleshooting cluster and workload issues
  • Implementing security best practices

Core Workflow

  1. Analyze requirements — Understand workload characteristics, scaling needs, security requirements
  2. Design architecture — Choose workload types, networking patterns, storage solutions
  3. Implement manifests — Create declarative YAML with proper resource limits, health checks
  4. Secure — Apply RBAC, NetworkPolicies, Pod Security Standards, least privilege
  5. Validate — Run kubectl rollout status, kubectl get pods -w, and kubectl describe pod <name> to confirm health; roll back with kubectl rollout undo if needed

Reference Guide

Load detailed guidance based on context:

TopicReferenceLoad When
Workloadsreferences/workloads.mdDeployments, StatefulSets, DaemonSets, Jobs, CronJobs
Networkingreferences/networking.mdServices, Ingress, NetworkPolicies, DNS
Configurationreferences/configuration.mdConfigMaps, Secrets, environment variables
Storagereferences/storage.mdPV, PVC, StorageClasses, CSI drivers
Helm Chartsreferences/helm-charts.mdChart structure, values, templates, hooks, testing, repositories
Troubleshootingreferences/troubleshooting.mdkubectl debug, logs, events, common issues
Custom Operatorsreferences/custom-operators.mdCRD, Operator SDK, controller-runtime, reconciliation
Service Meshreferences/service-mesh.mdIstio, Linkerd, traffic management, mTLS, canary
GitOpsreferences/gitops.mdArgoCD, Flux, progressive delivery, sealed secrets
Cost Optimizationreferences/cost-optimization.mdVPA, HPA tuning, spot instances, quotas, right-sizing
Multi-Clusterreferences/multi-cluster.mdCluster API, federation, cross-cluster networking, DR

Constraints

MUST DO

  • Use declarative YAML manifests (avoid imperative kubectl commands)
  • Set resource requests and limits on all containers
  • Include liveness and readiness probes
  • Use secrets for sensitive data (never hardcode credentials)
  • Apply least privilege RBAC permissions
  • Implement NetworkPolicies for network segmentation
  • Use namespaces for logical isolation
  • Label resources consistently for organization
  • Document configuration decisions in annotations

MUST NOT DO

  • Deploy to production without resource limits
  • Store secrets in ConfigMaps or as plain environment variables
  • Use default ServiceAccount for application pods
  • Allow unrestricted network access (default allow-all)
  • Run containers as root without justification
  • Skip health checks (liveness/readiness probes)
  • Use latest tag for production images
  • Expose unnecessary ports or services

Common YAML Patterns

Deployment with resource limits, probes, and security context

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-app
  namespace: my-namespace
  labels:
    app: my-app
    version: "1.2.3"
spec:
  replicas: 3
  selector:
    matchLabels:
      app: my-app
  template:
    metadata:
      labels:
        app: my-app
        version: "1.2.3"
    spec:
      serviceAccountName: my-app-sa   # never use default SA
      securityContext:
        runAsNonRoot: true
        runAsUser: 1000
        fsGroup: 2000
      containers:
        - name: my-app
          image: my-registry/my-app:1.2.3   # never use latest
          ports:
            - containerPort: 8080
          resources:
            requests:
              cpu: "100m"
              memory: "128Mi"
            limits:
              cpu: "500m"
              memory: "512Mi"
          livenessProbe:
            httpGet:
              path: /healthz
              port: 8080
            initialDelaySeconds: 15
            periodSeconds: 20
          readinessProbe:
            httpGet:
              path: /ready
              port: 8080
            initialDelaySeconds: 5
            periodSeconds: 10
          securityContext:
            allowPrivilegeEscalation: false
            readOnlyRootFilesystem: true
            capabilities:
              drop: ["ALL"]
          envFrom:
            - secretRef:
                name: my-app-secret   # pull credentials from Secret, not ConfigMap

Minimal RBAC (least privilege)

apiVersion: v1
kind: ServiceAccount
metadata:
  name: my-app-sa
  namespace: my-namespace
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  name: my-app-role
  namespace: my-namespace
rules:
  - apiGroups: [""]
    resources: ["configmaps"]
    verbs: ["get", "list"]   # grant only what is needed
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: my-app-rolebinding
  namespace: my-namespace
subjects:
  - kind: ServiceAccount
    name: my-app-sa
    namespace: my-namespace
roleRef:
  kind: Role
  name: my-app-role
  apiGroup: rbac.authorization.k8s.io

NetworkPolicy (default-deny + explicit allow)

# Deny all ingress and egress by default
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: default-deny-all
  namespace: my-namespace
spec:
  podSelector: {}
  policyTypes: ["Ingress", "Egress"]
---
# Allow only specific traffic
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
  name: allow-my-app
  namespace: my-namespace
spec:
  podSelector:
    matchLabels:
      app: my-app
  policyTypes: ["Ingress"]
  ingress:
    - from:
        - podSelector:
            matchLabels:
              app: frontend
      ports:
        - protocol: TCP
          port: 8080

Validation Commands

After deploying, verify health and security posture:

# Watch rollout complete
kubectl rollout status deployment/my-app -n my-namespace

# Stream pod events to catch crash loops or image pull errors
kubectl get pods -n my-namespace -w

# Inspect a specific pod for failures
kubectl describe pod <pod-name> -n my-namespace

# Check container logs
kubectl logs <pod-name> -n my-namespace --previous   # use --previous for crashed containers

# Verify resource usage vs. limits
kubectl top pods -n my-namespace

# Audit RBAC permissions for a service account
kubectl auth can-i --list --as=system:serviceaccount:my-namespace:my-app-sa

# Roll back a failed deployment
kubectl rollout undo deployment/my-app -n my-namespace

Output Templates

When implementing Kubernetes resources, provide:

  1. Complete YAML manifests with proper structure
  2. RBAC configuration if needed (ServiceAccount, Role, RoleBinding)
  3. NetworkPolicy for network isolation
  4. Brief explanation of design decisions and security considerations

Documentation

Related skills

More from jeffallan/claude-skills and the wider catalog.

LA

laravel-specialist

jeffallan/claude-skills

Build Laravel 10+ applications with Eloquent models, Sanctum auth, queues, APIs, and Livewire components.

17k installsAudited
GO

golang-pro

jeffallan/claude-skills

Senior Go developer for concurrent systems, microservices, and production-grade performance optimization.

15k installsAudited
FL

flutter-expert

jeffallan/claude-skills

Senior Flutter engineer for cross-platform apps with Riverpod, Bloc, GoRouter, and performance optimization.

12k installsAudited
PH

php-pro

jeffallan/claude-skills

Senior PHP developer for modern PHP 8.3+, Laravel, Symfony with strict typing, PHPStan level 9, and enterprise patterns.

12k installsAudited
DE

devops-engineer

jeffallan/claude-skills

Creates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automation, GitOps configuration, incident response runbooks, and internal developer platform tooling. Use when setting up CI/CD pipelines, containerizing applications, managing infrastructure as code, deploying to Kubernetes clusters, configuring cloud platforms, automating releases, or responding to production incidents. Invoke for pipelines, Docker, Kubernetes, GitOps, Terraform, GitHub Actions, on-call, or platform engineering.

6.8k installs
SP

spring-boot-engineer

jeffallan/claude-skills

Generates Spring Boot 3.x configurations, creates REST controllers, implements Spring Security 6 authentication flows, sets up Spring Data JPA repositories, and configures reactive WebFlux endpoints. Use when building Spring Boot 3.x applications, microservices, or reactive Java applications; invoke for Spring Data JPA, Spring Security 6, WebFlux, Spring Cloud integration, Java REST API design, or Microservices Java architecture.

6.8k installsAudited