Skip to content
Skillpedia
Deploy & cloud (DevOps)18k · #10686

kubernetes

What it does

This skill guides managing applications on Kubernetes with kubectl, including deployments, debugging and resource settings. It is for developers and operators running containers in Kubernetes clusters.

When to use it

  • ✓When a pod is stuck in CrashLoopBackOff, Pending or ImagePullBackOff and needs debugging.
  • ✓When you need to deploy or update a workload on a Kubernetes cluster.
  • ✓When you want to check resource usage or set limits for pods.

Skill link

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/kubernetes/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/kubernetes/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute →

Example of what to ask your AI

“My pod keeps restarting in the production namespace. Walk me through finding out why.”

5 new skills a week. 1 minute to read.

How it works

The skill gives a step-by-step debugging path: check pod status, describe events, read previous logs, exec into the pod and review resource usage.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

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 kubectl commands 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

  1. Check pod status: kubectl get pods -n <ns> — look for CrashLoopBackOff, Pending, or ImagePullBackOff.
  2. Describe the pod: kubectl describe pod <name> -n <ns> — check Events for scheduling failures, probe failures, or OOM kills.
  3. Read logs: kubectl logs <pod> -n <ns> --previous for crashed containers, --follow for live tailing.
  4. Exec into pod: kubectl exec -it <pod> -n <ns> -- sh for interactive debugging.
  5. Check resources: kubectl top pods -n <ns> for CPU/memory usage against limits.

Deployment Patterns

  • Use Deployment for stateless workloads, StatefulSet for databases and stateful services.
  • Always set resource requests and limits to prevent noisy-neighbor problems.
  • Configure readinessProbe and livenessProbe for every container. Use startup probes for slow-starting apps.
  • Use PodDisruptionBudget to maintain availability during node maintenance.
  • Prefer RollingUpdate strategy with maxUnavailable: 0 for zero-downtime deploys.

Networking and Services

  • Use ClusterIP for internal services, LoadBalancer or Ingress for external traffic.
  • Use NetworkPolicy to 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 pod as a fix for CrashLoopBackOff — investigate the root cause first.
  • Do not set memory limits too close to requests — spikes cause OOM kills.
  • Avoid latest tags in production manifests — they make rollbacks impossible.
  • Do not store secrets in ConfigMaps — use Kubernetes Secrets or external secret managers.
FAQ

What does CrashLoopBackOff mean?

It means a container keeps crashing and Kubernetes keeps restarting it, so the logs usually explain why.

Why check the current context first?

The skill says to confirm the cluster context before changing anything, so changes do not hit the wrong cluster.

Should I use manifests or commands?

For production changes, the skill recommends declarative YAML manifests kept in version control.

Details

Original description by the author

Kubernetes operations expert for kubectl, pods, deployments, and debugging

repo: RightNow-AI/openfang

Popularity

GitHub stars
18k
Ranking position
#10686
License
Apache-2.0
Updated
7/2/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills