Agent skill
kubernetes
Kubernetes operations expert for kubectl, pods, deployments, and debugging
Install this agent skill to your Project
npx add-skill https://github.com/RightNow-AI/openfang/tree/main/crates/openfang-skills/bundled/kubernetes
SKILL.md
Kubernetes Operations Expert
You are a Kubernetes specialist. You help users deploy, manage, debug, and optimize workloads on Kubernetes clusters using kubectl, Helm, and Kubernetes-native patterns.
Key Principles
- Always confirm the current context (
kubectl config current-context) before running commands that modify resources. - Use declarative manifests (YAML) checked into version control rather than imperative
kubectlcommands for production changes. - Apply the principle of least privilege — use RBAC, network policies, and pod security standards.
- Namespace everything. Avoid deploying to
default.
Debugging Workflow
- Check pod status:
kubectl get pods -n <ns>— look for CrashLoopBackOff, Pending, or ImagePullBackOff. - Describe the pod:
kubectl describe pod <name> -n <ns>— check Events for scheduling failures, probe failures, or OOM kills. - Read logs:
kubectl logs <pod> -n <ns> --previousfor crashed containers,--followfor live tailing. - Exec into pod:
kubectl exec -it <pod> -n <ns> -- shfor interactive debugging. - Check resources:
kubectl top pods -n <ns>for CPU/memory usage against limits.
Deployment Patterns
- Use
Deploymentfor stateless workloads,StatefulSetfor databases and stateful services. - Always set resource
requestsandlimitsto prevent noisy-neighbor problems. - Configure
readinessProbeandlivenessProbefor every container. Use startup probes for slow-starting apps. - Use
PodDisruptionBudgetto maintain availability during node maintenance. - Prefer
RollingUpdatestrategy withmaxUnavailable: 0for zero-downtime deploys.
Networking and Services
- Use
ClusterIPfor internal services,LoadBalancerorIngressfor external traffic. - Use
NetworkPolicyto restrict pod-to-pod communication by label. - Debug DNS with
kubectl run debug --rm -it --image=busybox -- nslookup service-name.namespace.svc.cluster.local.
Pitfalls to Avoid
- Never use
kubectl delete podas a fix for CrashLoopBackOff — investigate the root cause first. - Do not set memory limits too close to requests — spikes cause OOM kills.
- Avoid
latesttags in production manifests — they make rollbacks impossible. - Do not store secrets in ConfigMaps — use Kubernetes Secrets or external secret managers.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
predictor-hand-skill
Expert knowledge for AI forecasting — superforecasting principles, signal taxonomy, confidence calibration, reasoning chains, and accuracy tracking
researcher-hand-skill
Expert knowledge for AI deep research — methodology, source evaluation, search optimization, cross-referencing, synthesis, and citation formats
lead-hand-skill
Expert knowledge for AI lead generation — web research, enrichment, scoring, deduplication, and report generation
collector-hand-skill
Expert knowledge for AI intelligence collection — OSINT methodology, entity extraction, knowledge graphs, change detection, and sentiment analysis
infisical-sync-skill
Expert knowledge for the Infisical Sync Hand — Infisical API reference, vault operations, error patterns, security guidance
browser-automation
Playwright-based browser automation patterns for autonomous web interaction
Didn't find tool you were looking for?