Back to browse
GitHub Repository

A kubectl plugin to run certain commands again multiple contexts

10 starsGo

kubectl-x to query multiple Kubernetes clusters at once

by davidnortonjr·Mar 4, 2026·1 point·0 comments

AI Analysis

●●SolidSolve My ProblemNiche Gem

Valid JSON/YAML output across clusters; existing tools (kubectl-foreach, kubectl-allctx) don't.

Strengths
  • JSON/YAML output with context metadata enables jq/yq chaining for complex multi-cluster queries.
  • Honest limitations: read-only ops only, v0.x stability caveat, clear comparison to prior art.
  • Parallel batching (default 25) with configurable size balances throughput and cluster load.
Weaknesses
  • Incremental improvement over existing tools (kubectl-foreach, kubectl-allctx); main value is output format.
  • Read-only scope intentionally limited; write operations require separate tooling.
Target Audience

DevOps engineers and SREs managing multiple Kubernetes clusters

Similar To

kubectl-foreach · kubectl-allctx · kubectl-cluster-group

Post Description

I built this to help look at all the Kubernetes clusters my team manages, to help with planning, troubleshooting, validating acceptance criteria on a ticket, etc.

I could probably have used a monitoring tool but 1) sometimes monitoring tools are split up by cluster/environment anyway, and 2) I like the kubectl interface with JSON and YAML output.

Curious what people think and open to feedback!

Similar Projects

Infrastructure●●●Banger

Evidra – a fail-closed MCP guardrail for AI infrastructure ops

Fail-closed guardrail for AI agent infrastructure access—kills unsafe ops before they ship.

Solve My ProblemWizardry
vitass
113mo ago