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: kubectl

Version behaviour

versionResult
omittedthe current upstream stable release, resolved at install time
v1.31.0that 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 selection

Notes

  • The recipe is safe to re-run: a workstation that already has kubectl on PATH is skipped. To move to a new pinned version, change version — the entry’s identity changes, so the recipe re-runs.
  • The kind devtool installs kubectl itself when it needs it, so you do not have to declare both. Declaring kubectl explicitly is how you pin its version.
  • Works on Debian, Ubuntu, and Alpine.