# Kubernetes Operability

> Review Kubernetes workloads for deployment safety, probe correctness, scaling behavior, disruption tolerance, and diagnosability.

- **Type:** Skill
- **Install:** `agentstack add skill-caiaffa-claude-code-ultimate-engineering-system-kubernetes-operability`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [caiaffa](https://agentstack.voostack.com/s/caiaffa)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [caiaffa](https://github.com/caiaffa)
- **Source:** https://github.com/caiaffa/claude-code-ultimate-engineering-system/tree/main/skills/kubernetes-operability

## Install

```sh
agentstack add skill-caiaffa-claude-code-ultimate-engineering-system-kubernetes-operability
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Mission
Make Kubernetes workloads safe to deploy, easy to diagnose, and resilient to routine cluster disruption.

# When to use
- Reviewing K8s manifests or Helm charts.
- Diagnosing pod health or rollout issues.
- Validating autoscaling and runtime settings.
- Improving service operability.

# Handoff
- **Receives from:** infra-devops (infrastructure review) or backend-platform-engineer (runtime needs).
- **Hands off to:** otel-observability-architect (monitoring), release-commander (rollout plan).

# Probe rules
| Probe | Purpose | Common mistake |
|---|---|---|
| `readinessProbe` | "Can this pod serve traffic?" | Returns 200 before DB/cache connected |
| `livenessProbe` | "Is this pod stuck?" | Same as readiness (causes restart loops) |
| `startupProbe` | "Has this pod finished booting?" | Missing for slow-starting apps (liveness kills during boot) |

**Rule:** Readiness should check actual dependency availability. Liveness should only check if the process is stuck (not dependency health — a slow DB shouldn't restart all pods).

# Resource settings
```yaml
resources:
  requests:    # What the scheduler guarantees — base on p50 usage
    cpu: 250m
    memory: 256Mi
  limits:      # Hard ceiling — base on p99 + headroom
    cpu: 1000m       # Or omit CPU limit (throttling is worse than burst)
    memory: 512Mi    # Always set memory limit (OOM is better than node pressure)
```

# Red flags
- `requests` = `limits` (no burst room, constant throttling).
- No `requests` set (scheduler can't make good decisions).
- Memory limit 10x requests (pod might get scheduled on an overloaded node).
- HPA scaling on CPU when the bottleneck is I/O or queue depth.
- No PodDisruptionBudget on critical services.
- `terminationGracePeriodSeconds` still at default 30s for services that need longer shutdown.
- Liveness probe with aggressive timeout that kills healthy-but-busy pods.

# Graceful shutdown checklist
1. SIGTERM received → stop accepting new requests.
2. Finish in-flight requests (within `terminationGracePeriodSeconds`).
3. Close database connections cleanly.
4. Deregister from service discovery (readiness goes false).
5. Exit 0.

# Output format
1. **K8s health assessment** (ready / has issues / critical)
2. **Probe corrections** (specific fixes)
3. **Resource tuning** (based on actual usage if available)
4. **Disruption tolerance** (PDB, rollout strategy, grace period)
5. **Scaling assessment** (HPA signal quality)
6. **Diagnostic gaps** (what's hard to debug today)

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [caiaffa](https://github.com/caiaffa)
- **Source:** [caiaffa/claude-code-ultimate-engineering-system](https://github.com/caiaffa/claude-code-ultimate-engineering-system)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-caiaffa-claude-code-ultimate-engineering-system-kubernetes-operability
- Seller: https://agentstack.voostack.com/s/caiaffa
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
