Krew
$ kubectl-krew Foundation Med RiskKrew (kubectl krew) discovers, installs, and updates community kubectl plugins from the centralized Krew index. It runs non-interactively for search, list, info, install, and upgrade, storing binaries locally under ~/.krew.
brew install krew Krew manages local kubectl-* plugin binaries on the workstation PATH, which MCP servers cannot install for local shell use.
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
Clean non-interactive subcommands (list, search, info, install), though lacks --json output on list, search, and info.
- Non-interactive
search,list,install,upgrade - No
--jsonoutput flag across subcommands
Local-only disk writes scoped to ~/.krew with SHA-256 archive verification, though installed third-party plugins execute with full local user and kubeconfig privileges.
- SHA-256 checksum verification from index manifests
- Installs third-party executables onto user PATH
Available on macOS, Linux, and Windows via Homebrew or binary install; requires kubectl and git, plus ~/.krew/bin added to PATH.
- Cross-platform binary via
brew install krew
Standardizes installation and upgrades across 200+ Kubernetes ecosystem plugins.
- Centralized index for
kubectlplugin lifecycle
Official Kubernetes SIG CLI project (kubernetes-sigs/krew) under Apache-2.0.
- Official
kubernetes-sigs/krewrepository
Clear quickstart and developer docs at krew.sigs.k8s.io.
- Official user guide at krew.sigs.k8s.io
Security, Auth & Guardrails
Requires no authentication for public index; stores index cache and installed plugin binaries in ~/.krew (KREW_ROOT).
CLI is free (Apache-2.0); downloads public plugin binaries from GitHub/releases.
# Krew Agent Rules - Run `kubectl krew info <plugin>` to inspect plugin source and caveats before running `install`. - Never install unverified third-party plugins or add untrusted custom Krew indexes automatically. - Ensure `~/.krew/bin` is on `PATH` when invoking installed `kubectl` plugins.
Agent-Ready Command Recipes
Safe Read-Only Queries
kubectl krew list && kubectl krew search ctx
Displays locally installed plugins and searches the Krew index without modifying disk.
kubectl krew info oidc-login
Prints homepage, version, and caveats for a plugin before installing it.
Controlled Writes & Previews
kubectl krew update && kubectl krew install neat
Refreshes the local plugin index and installs the plugin binary into ~/.krew/bin.
Strengths for Agents
- + Non-interactive plugin discovery, installation, and upgrades with SHA-256 verification.
- +
kubectl krew infolets agents inspect plugin metadata and caveats before installing. - + Backed by Kubernetes SIG CLI under Apache-2.0.
Caveats & Pitfalls
- ! Lacks
--jsonoutput onlist,search, andinfo. - ! Third-party plugins run outside Krew's sandbox with full access to
~/.kube/config. - ! Requires adding
~/.krew/bintoPATHafter installation.