kubectl
The Kubernetes CLI, installed as a static binary for the workstation's architecture.
Installs kubectl as a static binary in /usr/local/bin.
devtools:
- name: kubectlVersion behaviour
version | Result |
|---|---|
| omitted | the current upstream stable release, resolved at install time |
v1.31.0 | that exact release |
Example
A Kubernetes operator’s toolbox:
devtools:
- name: kubectl
- name: helm
- name: kubectx
- name: kubens
- name: fzf # kubectx/kubens use fzf for interactive selectionNotes
- The recipe is safe to re-run: a workstation that already has
kubectlon PATH is skipped. To move to a new pinned version, changeversion— the entry’s identity changes, so the recipe re-runs. - The
kinddevtool installskubectlitself when it needs it, so you do not have to declare both. Declaringkubectlexplicitly is how you pin its version. - Works on Debian, Ubuntu, and Alpine.