notque/vexjoy-agent / skills/infrastructure/kubernetes
kubernetes
FlaggedKubernetes and infrastructure operations: cluster debugging, security and RBAC, manifests and Helm charts, Ansible, Prometheus/Grafana, Perses, OpenSearch/Elasticsearch, RabbitMQ, and cobaltcore tooling.
references/kubernetes-helm/k8s-helm-quick-reference.md
View on GitHub# Kubernetes & Helm Quick Reference
> **Scope**: The diagnosis table and deploy-safety pipeline worth having verbatim at the keyboard. General Kubernetes/Helm knowledge is assumed; judgment lives in [../kubernetes-helm.md](../kubernetes-helm.md).
## Pod State Diagnosis Table
| Pod State | Common Cause | First Command |
|-----------|-------------|---------------|
| `ImagePullBackOff` | Wrong image name, missing pull secret | `kubectl describe pod <pod> \| grep -A5 Events` |
| `CrashLoopBackOff` | App crash, missing env var, OOM, bad probe | `kubectl logs <pod> --previous` |
| `OOMKilled` | Memory limit too low or leak | `kubectl describe pod <pod> \| grep -A2 'OOM\|Limits'` |
| `Pending` | No schedulable node, PVC unbound, quota exceeded | `kubectl describe pod <pod> \| grep -A10 Events` |
| `Terminating` (stuck) | Finalizer not cleared, PVC in use | `kubectl describe pod <pod> \| grep Finalizers` |
| `CreateContainerConfigError` | Missing ConfigMap/Secret in pod spec | `kubectl get events --sort-by='.lastTimestamp' -n <ns>` |
| `ErrImageNeverPull` | `imagePullPolicy: Never`, image not on node | `crictl images \| grep <name>` |
## Helm Chart Validation Pipeline
Run in this order before every deploy:
```bash
helm lint ./charts/myapp --values values-prod.yaml
helm template myapp ./charts/myapp --values values-prod.yaml | less
helm upgrade --install myapp ./charts/myapp \
--values values-prod.yaml --dry-run=server --namespace production
helm diff upgrade myapp ./charts/myapp \
--values values-prod.yaml --namespace production
```
`--dry-run=server` validates against the live API server — it catches `apiVersion` deprecations that `--dry-run=client` misses.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |