- Home
- Skills
- DevOps & Cloud
- Kubernetes Deploy & Debug: Manifests, Helm, Fixes
Kubernetes Deploy & Debug: Manifests, Helm, Fixes
by Ignasi
Production-grade Kubernetes manifest engineering and systematic pod debugging for EKS, GKE, and local clusters.
$3
Kubernetes Deploy & Debug: Manifests, Helm, Fixes
Example session with this skill installed
My pod is stuck in CrashLoopBackOff in the staging namespace. Help me find out why and fix it.
- Read your context and instructions
- Compiled the kubernetes deploy
I will start a diagnostic routine to identify the cause of the CrashLoopBackOff in the staging namespace. I will check pod events and logs from the previous failed instance.
Diagnostic Report: pod/api-v2-7764d9f6-x4k92
| Step | Command | Result/Observation |
|---|---|---|
| Check Events | kubectl describe pod api-v2-7764d9f6-x4k92 -n staging | Found Back-off restarting failed container. No scheduling issues. |
| Check Logs | kubectl logs api-v2-7764d9f6-x4k92 -n staging --previous | Error: ConfigMap "api-config" not found. |
| Verify Config | kubectl get configmap api-config -n staging | Error from server (NotFound). |
The pod is failing because it expects a ConfigMap named api-config which does not exist in the staging namespace. This is causing the application entrypoint to exit immediately.
Proposed Fix: Kustomize Patch
# overlays/staging/configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: api-config
namespace: staging
data:
DB_HOST: "postgres-staging.svc.cluster.local"
LOG_LEVEL: "debug"
Next steps
- Apply the missing ConfigMap using
kubectl apply -f configmap.yaml -n staging. - Observe the rollout status with
kubectl rollout status deployment/api-v2 -n staging. - Verify the pod transitions to
Runningstate and passes readiness probes.
Connects securely to your tools. The creator never sees your data.
About this skill
Deploying to Kubernetes without a clear strategy often leads to unstable pods, resource throttling, and security holes. This skill provides production-grade manifest generation and systematic debugging workflows to keep your clusters healthy.
What it does
- Manifest generation creates Kustomize overlays or Helm charts with high-availability defaults and pinned image digests.
- Security hardening configures
runAsNonRoot,readOnlyRootFilesystem, andNetworkPolicyto minimize the attack surface. - Resource optimization sets precise requests and limits to prevent OOMKilled errors while avoiding unnecessary CPU throttling.
- Resiliency planning implements
topologySpreadConstraints,PodDisruptionBudgets, and multi-stage health probes. - Systematic debugging follows a strict read-only diagnostic flow to identify root causes for
CrashLoopBackOfforPendingstates.
How it works
- Analyze environment to detect application language, ports, and target cluster type like EKS, GKE, or k3s.
- Generate resources using Kustomize or Helm, including Deployments, Services, HPA, and Secret management via SOPS or External Secrets.
- Validate manifests via
kubeconformandkubectl diffbefore any actual deployment occurs. - Debug incidents by executing a sequence of
describe,logs --previous, andeventscommands to map symptoms to fixes.
Frameworks & tools
Kubernetes, Helm, Kustomize, EKS, GKE, AKS, k3s, kind, kubeconform, cert-manager, and Sealed Secrets.
Why this beats prompting it yourself
Generic prompts often miss critical production details like terminationGracePeriodSeconds or correct probe separation. This skill enforces a specific hierarchy of safety, ensuring every deployment includes proper security contexts and rollout strategies that standard LLMs frequently overlook.
Use cases
- Scaffold a new microservice with Kustomize overlays for dev and production.
- Audit existing manifests for security vulnerabilities and resource mismanagement.
- Troubleshoot a
503 Service Unavailableerror by verifying service selectors and endpoints. - Automate safe rollouts and rollbacks within a CI/CD pipeline.
Known limitations
Requires an active kubectl context for debugging modes. It does not support deprecated API versions or manual editing of cluster-wide resources without explicit confirmation.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 11 days ago
Permissions
What's inside
Frequently Asked Questions
New in DevOps & Cloud
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for DevOps & Cloud.