cli command to install k8s tools
This commit is contained in:
17
ansible-5/cli/install-kube
Executable file
17
ansible-5/cli/install-kube
Executable file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -ex
|
||||||
|
echo -e "\033[36mTODO\033[39m: installing k8s tooling"
|
||||||
|
|
||||||
|
# kubectl
|
||||||
|
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
|
||||||
|
curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
|
||||||
|
echo "$(<kubectl.sha256) kubectl" | sha256sum --check
|
||||||
|
sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl
|
||||||
|
|
||||||
|
rm kubectl kubectl.sha256
|
||||||
|
|
||||||
|
kubectl cluster-info
|
||||||
|
sudo kubectl completion bash | sudo tee /etc/bash_completion.d/kubectl
|
||||||
|
|
||||||
|
# helm
|
||||||
|
curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
|
||||||
3
ansible-5/cli/install-kube.help
Normal file
3
ansible-5/cli/install-kube.help
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
ARGS - The arguments you wish to provide to this command
|
||||||
|
|
||||||
|
TODO: Fill out the help information for this command.
|
||||||
1
ansible-5/cli/install-kube.usage
Normal file
1
ansible-5/cli/install-kube.usage
Normal file
@@ -0,0 +1 @@
|
|||||||
|
ARGS...
|
||||||
Reference in New Issue
Block a user