// the find
jordanwilson230/kubectl-plugins
A Collection of Plugins for kubectl Integration (exec as any user, context switching, etc).
A set of shell-script kubectl plugins adding exec-as-any-user, namespace/cluster switching, a production-warning prompt, Docker image search, pod IP lookup, and uptime display. Useful for ops teams working across multiple namespaces and clusters day-to-day. Not a framework — just a handful of standalone scripts.
The exec-as-root trick via mounting the Docker socket is genuinely clever and solves a real pain point that kubectl exec alone doesn't cover. The production prompt guard is a low-tech but effective safeguard that would have prevented at least a few incidents in most orgs. Cross-BSD/GNU compatibility is explicitly maintained, which means it actually works on macOS without surprises. Some plugins are available via krew, so you can skip the git-clone install dance.
The Docker socket mount trick in kubectl-ssh is a security hole — it gives container escape capability to whoever uses it, which is the opposite of what you want in a multi-tenant cluster. Last pushed June 2024 and doesn't appear to be actively maintained; the Kubernetes ecosystem moves fast and these scripts may already have rough edges on newer API versions. The image search plugin is largely pointless now that crane, skopeo, and Docker Hub's own CLI exist. Installing by cloning a repo and sourcing shell profile modifications is fragile and leaves residue that the uninstall script handles with regex ex hacks.