cli command to install k8s tools

This commit is contained in:
2022-01-01 10:47:29 -05:00
parent 616b6bae5c
commit 7d90c27a98
3 changed files with 21 additions and 0 deletions

17
ansible-5/cli/install-kube Executable file
View 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

View File

@@ -0,0 +1,3 @@
ARGS - The arguments you wish to provide to this command
TODO: Fill out the help information for this command.

View File

@@ -0,0 +1 @@
ARGS...