feat: install kubectl

This commit is contained in:
Peter 2023-06-16 09:05:24 +00:00
parent 550962286d
commit b6982da24d

View file

@ -16,6 +16,9 @@ chmod +w ./kernel.json* # in case copied kernel.json has no write permission
sed "s|gophernotes|$(go env GOPATH)/bin/gophernotes|" < kernel.json.in > kernel.json
cd ~/
# kubectl
sudo curl -o /usr/local/bin/kubectl -L "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && sudo chmod +x /usr/local/bin/kubectl
# dotnet
curl -L https://dot.net/v1/dotnet-install.sh | sudo bash -s -- --channel LTS --install-dir /usr/local/dotnet
curl -L https://dot.net/v1/dotnet-install.sh | sudo bash -s -- --channel STS --install-dir /usr/local/dotnet