kubectl-plugins

Freelens / Lens extension

Run the plugins from a page inside Freelens.

The lens/ directory contains an extension that adds a kubectl plugins section to the cluster sidebar in Freelens 2.x. Each page is a small form that runs the matching plugin against the open cluster and shows its output.

The extension shells out to the plugin binaries, so install them first (make install) and make sure they are on your PATH. The extension also looks in ~/.local/bin, ~/go/bin, /usr/local/bin and /opt/homebrew/bin.

Install

cd lens
npm install
npm run build
npm pack

In Freelens, open Extensions and install the generated .tgz file.

Included tools

SectionTools
Podsunhealthy, pending, restarts, images
Clustercount, orphans, whoami
Networkping
AKSaks show / describe / list, nodepool list / show / describe, aksversions, aksmaintenance list / show
AKS changesaks upgrade / start / stop / rotate-certs, nodepool add / delete / scale / update / upgrade / upgrade-node-image / start / stop / taint / untaint / cancel-operation, aksmaintenance add / delete
Clusteralso settags (tick Dry run to preview)

Tools that change things ask for confirmation first (Run… then Confirm and run). The plugins’ own prompts are skipped with --yes because the extension has already asked.

Notes