Learn production-grade Kubernetes patterns, access control, scaling, and debugging workflows.
Copy the install command and let the AI configure it · recommended for beginners
Please install the "kubernetes-patterns" skill from askskill: 1. Download https://raw.githubusercontent.com/affaan-m/ECC/main/skills/kubernetes-patterns/SKILL.md 2. Save it as ~/.claude/skills/kubernetes-patterns/SKILL.md 3. Reload skills and tell me it's ready
Design a Kubernetes deployment setup for a Node.js web service, including Deployment, Service, ConfigMap, Secret, liveness/readiness probes, and resource requests/limits. Explain the purpose of each configuration.
A reference Kubernetes YAML manifest set with explanations for the key configuration choices.
I need least-privilege access for a CI/CD bot account to manage Deployments and Pods in a specific namespace. Generate the Kubernetes RBAC configuration and explain why this design is safer.
ServiceAccount, Role, and RoleBinding manifests with an explanation of least-privilege design.
A Kubernetes Pod is stuck in CrashLoopBackOff. Give me a kubectl-based troubleshooting workflow covering logs, events, probes, resource limits, and configuration errors in the right order.
A structured troubleshooting workflow with useful kubectl commands to quickly identify restart causes.
Production-grade Kubernetes patterns for deploying, managing, and debugging workloads reliably.
Same as When to Activate above. This alias satisfies repo skill-format conventions. Use this skill any time you are writing, reviewing, or debugging Kubernetes YAML and workloads.
This skill provides copy-pasteable, production-grade YAML patterns and kubectl debugging commands organized by task:
Deployment with security context, rolling update strategy, all three probe types, resource limits, and environment injection from ConfigMap/Secret.failureThreshold × periodSeconds math.envFrom, file-mount, and external secrets guidance.restartPolicy.See the sections below for complete, runnable examples. Quick references:
| Task | Jump to |
|---|---|
| Full production Deployment YAML | Core Workload Patterns |
| Probe configuration | Probes |
| RBAC least-privilege setup | RBAC |
| Debug a CrashLoopBackOff | kubectl Debugging Cheatsheet |
| Autoscaling | HPA |
apiVersion: apps/v1
kind: Deployment
metadata:
name: my-app
namespace: my-namespace
labels:
app: my-app
version: "1.0.0"
spec:
replicas: 3
selector:
matchLabels:
app: my-app
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1 # Allow 1 extra pod during update
maxUnavailable: 0 # Never reduce below desired count
template:
metadata:
labels:
app: my-app
version: "1.0.0"
spec:
# Security context at pod level
securityContext:
runAsNonRoot: true
runAsUser: 1001
fsGroup: 1001
# Graceful shutdown
terminationGracePeriodSeconds: 30
containers:
- name: my-app
image: ghcr.io/org/my-app:1.0.0 # Never use :latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
protocol: TCP
# Resource requests AND limits are both required
resources:
requests:
cpu: "100m"
memory: "128Mi"
limits:
cpu: "500m"
memory: "256Mi"
# Container security context
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
# Probes (see Probes section below)
…
Conduct multi-source web research and produce cited, source-attributed reports.
Process documents with OCR, conversion, extraction, redaction, signing, and form filling.
Design security and risk controls for autonomous trading agents with transaction authority
Build polished React and Next.js animations with reusable production-ready patterns.
Verify Laravel projects with environment checks, tests, security scans, and release readiness.
Create, configure, and refine Hookify rules and syntax patterns.
Manage Kubernetes, Istio, and Helm operations securely with natural language.
Get grounded Kubernetes and Helm guidance based on official best practices.
Generate Kubernetes manifests and run common cluster operations from one tool.
Explore Kubernetes metrics, logs, traces, and service graphs to diagnose issues.
Safely inspect Kubernetes clusters with read-only queries, triage, logs, and inventory.
Operate Kubernetes, monitor SLOs, and run Prometheus queries in natural language.