kubens
Fast switching between Kubernetes namespaces.
Installs kubens, for switching the active namespace of the current Kubernetes
context.
devtools:
- name: kubensVersion behaviour
version | Result |
|---|---|
| omitted | the distribution’s kubectx package, which provides kubens |
v0.9.5 or 0.9.5 | the official upstream release tarball for the workstation’s architecture |
kubectx and kubens are released together, so a pinned version selects the same
upstream release for both.
Example
devtools:
- name: kubectl
- name: kubectx
version: v0.9.5
- name: kubens
version: v0.9.5
- name: fzfNotes
- Because the versionless install comes from the shared
kubectxpackage, declaring onlykubensstill landskubectxon the workstation. The recipe probes for thekubensbinary specifically, so declaring both is a fast no-op for the second. - With
fzfpresent, runningkubenswith no argument opens an interactive picker. - Works on Debian, Ubuntu, and Alpine.