kubectl-foreach
$ kubectl-foreach Community Med Riskkubectl-foreach (kubectl-foreach) — Kubernetes kubectl plugin: Run kubectl commands against some/all contexts in parallel. Verified across Kubernetes Krew Index; included for structured shell automation under FCRS-1.0 baseline review.
kubectl krew install foreach Calling kubectl-foreach directly via shell lets agents filter stdout and avoid upfront MCP schema context bloat; start from kubectl-foreach --help before write commands.
At a Glance
- Command
- $ kubectl-foreach
- FCRS-1.0 Score
- 64/100 (Usable w/ Caveats)
- Evidence Tier
- Low Confidence
- CLI vs MCP
- CLI Preferred vs MCP
- Reviewed Date
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Registry-verified CLI binary (kubectl-foreach); inspect --help output before assuming structured JSON flags.
- Indexed in Kubernetes Krew Index
Classified as medium risk based on cloud-infra scope and upstream package metadata.
- Install channel verified via
kubectl krew install foreach - Package checksum verified by upstream registry
Installable via kubectl krew install foreach across macos, linux.
- Primary install:
kubectl krew install foreach
Kubernetes kubectl plugin: Run kubectl commands against some/all contexts in parallel
- Official homepage/source: https://github.com/ahmetb/kubectl-foreach
community lineage tool maintained by ahmetb.
- Upstream repository: ahmetb/kubectl-foreach
Upstream documentation linked at https://github.com/ahmetb/kubectl-foreach; baseline FCRS cap applies until local probe runs.
- https://github.com/ahmetb/kubectl-foreach
Security, Auth & Guardrails
Configured via service environment variables or local profile config file; verify provider docs before granting agent access.
Local binary is free; remote API or cloud resource actions depend on your vendor account quotas.
When invoking `kubectl-foreach`, verify flags with `kubectl-foreach --help` first, close stdin to avoid interactive prompts, and require confirmation before remote or destructive mutations.
Agent-Ready Command Recipes
Safe Read-Only Queries
kubectl-foreach --help
Discover supported flags and subcommands for kubectl-foreach before constructing automated calls.
kubectl-foreach --version
Confirm kubectl-foreach is installed and executable in PATH with zero side effects.
Strengths for Agents
- + Indexed in Kubernetes Krew Index with reproducible install via
kubectl krew install foreach - + Standalone CLI binary (
kubectl-foreach) directly composable in shell pipelines
Caveats & Pitfalls
- ! Low-confidence baseline review: not yet locally probed on this host; run
kubectl-foreach --helpto verify flags before scripting
Official References
Tested Agent Hosts
Follow Ecosystem Links
Related CLIs in Cloud & Infra
View category hub →Kubernetes kubectl plugin: Fuzzy and partial string search for kubectl
Kubernetes kubectl plugin: Monitor, launch and manage flyte executions
Kubernetes kubectl plugin: Gadgets for debugging and introspecting apps
CNCF policy engine CLI for evaluating, testing, and formatting Rego policies as JSON.