I would like to install kubectl
version 1.2.4
on a machine. The Kubernetes documentation recommends using snap
for installation on Ubuntu.
snap install --help
is not very useful, the one promising parameter --revision=
doesn't work:
$ sudo snap install --revision=1.2.4 kubectl
error: cannot decode request body into snap instruction: invalid snap revision: "\"1.2.4\""
I suspect that --revision
expects a SHA rather than a semver.
The apt-get
convention of using package=1.2.3
also doesn't work:
$ sudo snap install kubectl=1.2.4
error: snap "kubectl=1.2.4" not found
The usage documentation seems silent on the question.
Anybody know?