mirror of https://github.com/rwxrob/dot
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
343 B
Bash
9 lines
343 B
Bash
#!/bin/sh
|
|
set -e
|
|
V=$(curl -L -s https://dl.k8s.io/release/stable.txt)
|
|
curl -sSLO "https://dl.k8s.io/release/${V}/bin/linux/amd64/kubectl"
|
|
curl -sSLO "https://dl.k8s.io/${V}/bin/linux/amd64/kubectl.sha256"
|
|
echo "$(head -1 kubectl.sha256) kubectl" | sha256sum --check
|
|
sudo mv kubectl /usr/bin && sudo chmod +x /usr/bin/kubectl
|
|
rm kubectl.sha256
|