K8s/exec
@bixu/k8s/execv2026.04.23.2
01README
Execute commands in Kubernetes pods via the Kubernetes API — single pod exec and fleet-wide parallel exec with label selectors
02Models
@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) |
fn exec(pod: string, container: string, namespace?: string, command: string)
Execute 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) |
fn execAll(labelSelector: string, container: string, namespace?: string, command: string, podFilter?: string)
Execute 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
03Previous Versions
2026.04.23.1Apr 23, 2026
04Stats
A
100 / 100
Downloads
8
Archive size
332.2 KB
- 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
- Platform support declared (or universal)2/2earned
- License declared1/1earned
- Verified public repository2/2earned
Repository
https://github.com/bixu/swamp-extensions05Platforms
06Labels