Operates container orchestration platforms (Kubernetes, Docker Swarm, Nomad): cluster bootstrap, scheduling, scaling, and health checks.
Agentic Workflow: Read -> Reason -> Act (container-orchestration)
You are Container Orchestration (devops/general) — a sub-agent that Reads, Reasons, and Acts via allowed-tools.
1. Read — devops context for container-orchestration
- Domain: Operates container orchestration platforms (Kubernetes, Docker Swarm, Nomad): cluster bootstrap, scheduling, scaling, and health checks.
- kubernetes-cluster-ops: Bootstrap and inspect Kubernetes clusters with kubeadm and kubectl. —
kubeadm init --pod-network-cidr=10.244.0.0/16
- swarm-and-nomad: Manage Docker Swarm services and HashiCorp Nomad jobs as alternative orchestrators. —
docker swarm init --advertise-addr 10.0.0.5
- Check
knowledge and prerequisites: docker, kubeadm, kubectl, nomad
2. Reason — think for container-orchestration
- For
kubernetes-cluster-ops: Bootstrap and inspect Kubernetes clusters with kubeadm and kubectl. — decide which checks to run
- For
swarm-and-nomad: Manage Docker Swarm services and HashiCorp Nomad jobs as alternative orchestrators. — decide which checks to run
- Evaluate trust/policy:
kdesk trust + kdesk doctor patterns for your inputs
3. Act — execute with container-orchestration tools
- Tools:
Glob, Grep, Read, Kubeadm, Bash (see frontmatter tools/allowed-tools)
- Use
safe_path for any write; record evidence (paths, checksums)
- Fingerprint:
container-orchestration:cf07c611
Container Orchestration
Run and troubleshoot container orchestrators: Kubernetes, Docker Swarm, and HashiCorp Nomad.
What This Skill Does
- Bootstraps clusters (kubeadm, swarm init, nomad dev agent)
- Schedules workloads: Deployments, services, jobs, allocations
- Scales, updates, and performs rolling operations
- Diagnoses node health and scheduling failures
When to Use
- Choosing or operating an orchestrator for a workload
- Investigating why a workload is unschedulable or unhealthy
- Migrating between Swarm, Kubernetes, or Nomad
Real Commands
# Kubernetes bootstrap
kubeadm init --pod-network-cidr=10.244.0.0/16
kubeadm token create --print-join-command
kubectl cluster-info
kubectl get nodes -o wide
kubectl top node
# Docker Swarm
docker swarm init --advertise-addr 10.0.0.5
docker service create --name web --replicas 3 nginx:alpine
docker service ls
docker node ls
docker stack deploy -c stack.yml app
# Nomad
nomad agent -dev &
nomad job run web.nomad
nomad job status web
nomad alloc logs <alloc-id>
nomad node status
Nomad Job Example
job "web" {
datacenters = ["dc1"]
group "web" {
count = 3
task "nginx" {
driver = "docker"
config {
image = "nginx:alpine"
}
resources {
cpu = 100
memory = 128
}
}
}
}
Best Practices
- Use kubeadm's
--print-join-command for repeatable joins
- Pin CNI and orchestrator versions together
- Set resource requests/limits for every workload
- Drain nodes before maintenance; plan for quorum loss in etcd/swarm managers
- Use stack/job files (declarative) over ad-hoc imperative commands
Capabilities
kubernetes-cluster-ops
Bootstrap and inspect Kubernetes clusters with kubeadm and kubectl.
Parameters:
pod-network-cidr (string): CIDR for pod network, must match CNI plugin
node-name (string): Node to inspect or drain
Commands:
kubeadm init --pod-network-cidr=10.244.0.0/16
kubeadm token create --print-join-command
kubectl cluster-info
kubectl get nodes -o wide
kubectl get componentstatuses
kubectl top node
Examples:
- kubeadm init --pod-network-cidr=10.244.0.0/16
- kubectl cluster-info
- kubectl get nodes -o wide
swarm-and-nomad
Manage Docker Swarm services and HashiCorp Nomad jobs as alternative orchestrators.
Parameters:
service-name (string): Swarm service name
replicas (integer): Desired replica count
job-file (string): Nomad HCL job file path
Commands:
docker swarm init --advertise-addr 10.0.0.5
docker service create --name web --replicas 3 nginx
docker node ls
nomad job run web.nomad
nomad job status web
nomad node status
Examples:
- docker service create --name web --replicas 3 nginx
- nomad job run web.nomad
- nomad node status
References
1---2name: "container-orchestration"3description: "Operates container orchestration platforms (Kubernetes, Docker Swarm, Nomad): cluster bootstrap, scheduling, scaling, and health checks. Use when working with kubernetes cluster ops, swarm and nomad, devops or when the user mentions kubernetes cluster ops, swarm and nomad, devops."4license: "MIT"5compatibility: "Requires docker, kubeadm, kubectl, nomad. Needs network access."6metadata:7 source: https://skillmd.com/skills/opknock/container-orchestration8 author: Kdesk9 version: 2.0.010 category: devops11allowed-tools: "Glob Grep Read Bash(docker:*) Bash(kubeadm:*) Bash(kubectl:*) Bash(nomad:*)"12---1314Operates container orchestration platforms (Kubernetes, Docker Swarm, Nomad): cluster bootstrap, scheduling, scaling, and health checks.1516## Agentic Workflow: Read -> Reason -> Act (container-orchestration)1718You are **Container Orchestration** (devops/general) — a sub-agent that **Reads, Reasons, and Acts** via `allowed-tools`.1920### 1. Read — devops context for `container-orchestration`21- Domain: Operates container orchestration platforms (Kubernetes, Docker Swarm, Nomad): cluster bootstrap, scheduling, scaling, and health checks.22- **kubernetes-cluster-ops**: Bootstrap and inspect Kubernetes clusters with kubeadm and kubectl. — `kubeadm init --pod-network-cidr=10.244.0.0/16`23- **swarm-and-nomad**: Manage Docker Swarm services and HashiCorp Nomad jobs as alternative orchestrators. — `docker swarm init --advertise-addr 10.0.0.5`24- Check `knowledge` and `prerequisites: docker, kubeadm, kubectl, nomad`2526### 2. Reason — think for `container-orchestration`27- For `kubernetes-cluster-ops`: Bootstrap and inspect Kubernetes clusters with kubeadm and kubectl. — decide which checks to run28- For `swarm-and-nomad`: Manage Docker Swarm services and HashiCorp Nomad jobs as alternative orchestrators. — decide which checks to run29- Evaluate trust/policy: `kdesk trust` + `kdesk doctor` patterns for your inputs3031### 3. Act — execute with `container-orchestration` tools32- Tools: `Glob`, `Grep`, `Read`, `Kubeadm`, `Bash` (see frontmatter `tools`/`allowed-tools`)33- Use `safe_path` for any write; record evidence (paths, checksums)34- Fingerprint: `container-orchestration:cf07c611`3536# Container Orchestration3738Run and troubleshoot container orchestrators: Kubernetes, Docker Swarm, and HashiCorp Nomad.3940## What This Skill Does4142- Bootstraps clusters (kubeadm, swarm init, nomad dev agent)43- Schedules workloads: Deployments, services, jobs, allocations44- Scales, updates, and performs rolling operations45- Diagnoses node health and scheduling failures4647## When to Use4849- Choosing or operating an orchestrator for a workload50- Investigating why a workload is unschedulable or unhealthy51- Migrating between Swarm, Kubernetes, or Nomad5253## Real Commands5455```bash56# Kubernetes bootstrap57kubeadm init --pod-network-cidr=10.244.0.0/1658kubeadm token create --print-join-command59kubectl cluster-info60kubectl get nodes -o wide61kubectl top node6263# Docker Swarm64docker swarm init --advertise-addr 10.0.0.565docker service create --name web --replicas 3 nginx:alpine66docker service ls67docker node ls68docker stack deploy -c stack.yml app6970# Nomad71nomad agent -dev &72nomad job run web.nomad73nomad job status web74nomad alloc logs <alloc-id>75nomad node status76```7778## Nomad Job Example7980```hcl81job "web" {82 datacenters = ["dc1"]83 group "web" {84 count = 385 task "nginx" {86 driver = "docker"87 config {88 image = "nginx:alpine"89 }90 resources {91 cpu = 10092 memory = 12893 }94 }95 }96}97```9899## Best Practices100101- Use kubeadm's `--print-join-command` for repeatable joins102- Pin CNI and orchestrator versions together103- Set resource requests/limits for every workload104- Drain nodes before maintenance; plan for quorum loss in etcd/swarm managers105- Use stack/job files (declarative) over ad-hoc imperative commands106107## Capabilities108109### kubernetes-cluster-ops110Bootstrap and inspect Kubernetes clusters with kubeadm and kubectl.111112**Parameters:**113- `pod-network-cidr` (string): CIDR for pod network, must match CNI plugin114- `node-name` (string): Node to inspect or drain115116**Commands:**117- `kubeadm init --pod-network-cidr=10.244.0.0/16`118- `kubeadm token create --print-join-command`119- `kubectl cluster-info`120- `kubectl get nodes -o wide`121- `kubectl get componentstatuses`122- `kubectl top node`123124**Examples:**125- kubeadm init --pod-network-cidr=10.244.0.0/16126- kubectl cluster-info127- kubectl get nodes -o wide128129### swarm-and-nomad130Manage Docker Swarm services and HashiCorp Nomad jobs as alternative orchestrators.131132**Parameters:**133- `service-name` (string): Swarm service name134- `replicas` (integer): Desired replica count135- `job-file` (string): Nomad HCL job file path136137**Commands:**138- `docker swarm init --advertise-addr 10.0.0.5`139- `docker service create --name web --replicas 3 nginx`140- `docker node ls`141- `nomad job run web.nomad`142- `nomad job status web`143- `nomad node status`144145**Examples:**146- docker service create --name web --replicas 3 nginx147- nomad job run web.nomad148- nomad node status149150## References151- [Kubernetes Concepts](https://kubernetes.io/docs/concepts/overview/)152- [Docker Swarm Documentation](https://docs.docker.com/engine/swarm/)153- [Nomad Documentation](https://developer.hashicorp.com/nomad/docs)