kubernetes
Use for kubectl, CNPG, and kustomize/helm operations in this repo, including rollouts and cluster debugging.
When & Why to Use This Skill
This Claude skill empowers developers and DevOps engineers to manage Kubernetes clusters efficiently through an AI interface. It provides integrated support for kubectl operations, CloudNativePG (CNPG) for Postgres management, and advanced GitOps workflows using Helm and Kustomize. By automating cluster debugging, log retrieval, and resource deployment, it significantly enhances operational productivity and simplifies complex infrastructure orchestration.
Use Cases
- Cluster Debugging and Troubleshooting: Quickly retrieve pod logs, monitor rollout statuses, and inspect environment variables to identify and resolve deployment issues in real-time.
- Database Management with CNPG: Execute SQL queries and manage Postgres instances directly within the Kubernetes environment using specialized CNPG commands for database maintenance.
- GitOps and Manifest Deployment: Build and apply complex manifests by combining Helm v3 with Kustomize, ensuring consistent environment configurations across different namespaces.
- Service Connectivity and Local Testing: Seamlessly set up port-forwarding for cluster services to enable local development and testing of internal applications without exposing them publicly.
| name | kubernetes |
|---|---|
| description | Use for kubectl, CNPG, and kustomize/helm operations in this repo, including rollouts and cluster debugging. |
Kubernetes
Overview
Operate cluster resources with explicit namespaces and GitOps manifests. Use CNPG for Postgres access and Helm v3 for kustomize when required.
Namespace discipline
Always specify -n jangar for the Jangar stack unless a different namespace is required.
Common operations
kubectl get pods -n jangar
kubectl logs -n jangar deploy/bumba --tail=200
kubectl rollout status -n jangar deployment/bumba
Exec and port-forward
kubectl exec -n jangar deploy/bumba -- env | rg TEMPORAL
kubectl -n jangar port-forward svc/open-webui 8080:80
CNPG (Postgres)
kubectl cnpg psql -n jangar jangar-db -- -c 'select now();'
Helm-enabled kustomize
mise exec helm@3 -- kustomize build --enable-helm argocd/applications/jangar | kubectl apply -n jangar -f -
Resources
- Reference:
references/kubectl-runbook.md - Helper:
scripts/kubectl-ns.sh - Triage checklist:
assets/kubectl-triage.md