@bixu/k8s/exec
v2026.04.23.2
Execute commands in Kubernetes pods via the Kubernetes API — single pod exec and fleet-wide parallel exec with label selectors
Repository
https://github.com/bixu/swamp-extensions
Quality score
How well-documented and verifiable this extension is.
Grade A
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- At least one platform tag (or universal)1/1earned
- Two or more platform tags (or universal)1/1earned
- License declared1/1earned
- Verified public repository2/2earned
Install
$ swamp extension pull @bixu/k8s/exec@bixu/k8s/execv2026.04.23.1k8s_exec.ts
Global Arguments
| Argument | Type | Description |
|---|---|---|
| kubeContext | string | Kubernetes context name from your kubeconfig |
| namespace | string | Default namespace for pod lookups |
| concurrency | number | Max pods to exec into in parallel (default: 10) |
execExecute a command in a single pod, selected by name or label selector
| Argument | Type | Description |
|---|---|---|
| pod | string | Pod name (exact match) |
| container | string | Container name (empty = default container) |
| namespace? | string | Override namespace for this exec |
| command | string | Command to run (passed to sh -c) |
execAllExecute a command across multiple pods matching a label selector, in parallel
| Argument | Type | Description |
|---|---|---|
| labelSelector | string | Kubernetes label selector (e.g. app=ovs) |
| container | string | Container name (empty = default container) |
| namespace? | string | Override namespace for this exec |
| command | string | Command to run (passed to sh -c) |
| podFilter? | string | Regex filter on pod name (e.g. 'ovs-ovn-(p2979|ttvxz|7tkxv|46nf6)') |
Resources
execResult(infinite)— Result of executing a command in a Kubernetes pod
summary(infinite)— Summary of a batch exec operation
2026.04.23.1332.2 KBApr 23, 2026
Execute commands in Kubernetes pods via the Kubernetes API — single pod exec and fleet-wide parallel exec with label selectors
darwin-aarch64darwin-x86_64linux-x86_64linux-aarch64
kubernetesexeck8s