@rguleryuz/freelens-debug-pod-extension
v0.1.4
Published
FreeLens extension that adds a kubectl debug action for pods
Readme
FreeLens Pod Debug Extension
A simple FreeLens/Lens extension that adds a Debug Pod (kubectl) action for Pod resources.
When you click the action from a Pod menu, it opens a terminal tab in FreeLens and runs:
kubectl debug -it pod/<pod-name> -n <namespace> --image nicolaka/netshoot:latest --target <first-container>--target is included only when the Pod has at least one container.
You can configure command behavior from FreeLens Preferences:
- Debug image
- Shell profile (for example
/bin/bashor/bin/sh) - Extra
kubectl debugflags
Prerequisites
- FreeLens or Lens with extension support
- Node.js 18+
- npm
Install dependencies
npm installBuild
npm run buildDevelop (watch mode)
npm run devInstall into FreeLens
mkdir -p ~/.k8slens/extensions
ln -s "$(pwd)" ~/.k8slens/extensions/freelens-pod-debug-extensionRestart or reload FreeLens after building.
Usage
- Open any cluster.
- Go to Workloads -> Pods.
- Open the Pod actions menu (three dots).
- Click Debug Pod (kubectl).
A terminal opens and runs the generated debug command.
Configure Preferences
- Open Preferences in FreeLens.
- Find Pod Debug Settings.
- Set Debug Image, Shell Profile, and optional Extra kubectl debug flags.
Settings are persisted using an extension store and are reused for future debug commands.
