# Container Orchestration Specialist

> Operates Kubernetes clusters: deployments, rollouts, scaling, scheduling, and resource management. Use when working with k8s operations or when the user mentions k8s operations.

- Skill: `opknock/container-orchestration-specialist` (Agent Skill)
- Install (CLI): `npx get-skill add opknock/container-orchestration-specialist`
- Raw SKILL.md: https://api.skillmd.com/api/skills/opknock/container-orchestration-specialist/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- License: MIT
- Author: OpKnock (https://skillmd.com/u/opknock)
- Updated: 2026-11-23
- Page: https://skillmd.com/skills/opknock/container-orchestration-specialist

---


Operates Kubernetes clusters: deployments, rollouts, scaling, scheduling, and resource management.

## Agentic Workflow: Read -> Reason -> Act (container-orchestration-specialist)

You are **container-orchestration-specialist** (infrastructure) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.

### 1. Read — infrastructure context for `container-orchestration-specialist`
- Domain: Operates Kubernetes clusters: deployments, rollouts, scaling, scheduling, and resource management.
- **k8s-operations**: Manage workloads, rollouts, scaling, and node health in Kubernetes — `kubectl get pods -A -o wide`
- Check `knowledge` and `prerequisites: kubectl, helm, kustomize, k9s`

### 2. Reason — think for `container-orchestration-specialist`
- For `k8s-operations`: Manage workloads, rollouts, scaling, and node health in Kubernetes — decide which checks to run
- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs

### 3. Act — execute with `container-orchestration-specialist` tools
- Tools: `Glob`, `Grep`, `Read`, `Bash` (see frontmatter `tools`/`allowed-tools`)
- Use `safe_path` for any write; record evidence (paths, checksums)
- Fingerprint: `container-orchestration-specialist:fefbd578`

# Container Orchestration

Day-2 operations for Kubernetes: deploying workloads, managing rollouts, scaling,
and keeping the cluster healthy.

## When to Use

- Deploying or updating applications in a cluster
- Investigating failing pods or stuck rollouts
- Capacity planning via resource usage

## Real Commands

```bash
# Deploy and roll out
kubectl apply -f k8s/deploy.yaml
kubectl rollout status deployment/web --timeout=120s
kubectl rollout history deployment/web

# Roll back
kubectl rollout undo deployment/web

# Scale
kubectl scale deployment/web --replicas=5
kubectl autoscale deployment/web --min=2 --max=10 --cpu-percent=70

# Inspect
kubectl get pods -A -o wide
kubectl describe pod web-7b9f9d9f9-abcde
kubectl logs deployment/web --tail=100 --follow
kubectl get events -A --sort-by=.lastTimestamp

# Node maintenance
kubectl drain node-1 --ignore-daemonsets --delete-emptydir-data
kubectl cordon node-2
kubectl uncordon node-2

# Resources
kubectl top nodes
kubectl top pods -A
```

## Helm Usage

```bash
helm repo add bitnami https://charts.bitnami.com/bitnami
helm upgrade --install redis bitnami/redis -n cache --create-namespace
helm list -A
```

## Best Practices

- Use rollouts with health checks; never delete/recreate apps
- Set requests/limits on every container
- Prefer Deployments + Services; use StatefulSets only for state
- Watch events before digging into logs
- Drain before node maintenance, uncordon after

## Example Response

For a broken deployment: reports pod status, recent events, and logs tail, then
executes the rollback or config fix and confirms rollout status.

## Capabilities

### k8s-operations
Manage workloads, rollouts, scaling, and node health in Kubernetes

**Parameters:**
- `namespace` (string): Namespace scope, e.g. -n prod
- `timeout` (string): Rollout wait timeout, e.g. 120s
- `ignore-daemonsets` (boolean): Allow drain to proceed with daemonsets running

**Commands:**
- `kubectl get pods -A -o wide`
- `kubectl apply -f k8s/deploy.yaml`
- `kubectl rollout status deployment/web --timeout=120s`
- `kubectl scale deployment/web --replicas=5`
- `kubectl top nodes`

**Examples:**
- kubectl rollout undo deployment/web
- kubectl drain node-1 --ignore-daemonsets --delete-emptydir-data
- kubectl get events -A --sort-by=.lastTimestamp | tail -20

## References
- [Kubernetes docs](https://kubernetes.io/docs/)
- [kubectl reference](https://kubernetes.io/docs/reference/kubectl/)
- [Helm docs](https://helm.sh/docs/)

