Skip to content

Instantly share code, notes, and snippets.

@mbaykara
Last active November 10, 2021 11:00
Show Gist options
  • Select an option

  • Save mbaykara/419d92e2916e1ffac5f4d79cf96dab12 to your computer and use it in GitHub Desktop.

Select an option

Save mbaykara/419d92e2916e1ffac5f4d79cf96dab12 to your computer and use it in GitHub Desktop.
#!/bin/env bash
#install my basic tools
sudo apt install tree vim
mkdir -p ~/repos ~/tools ~/testenv
#configure vim for yaml
echo "set ts=2 sw=2" > ~/.vimrc
echo "Installing kubectl and configuring..."
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
echo "$(<kubectl.sha256) kubectl" | sha256sum --check
echo 'source <(kubectl completion bash)' >>~/.bashrc
kubectl completion bash >/etc/bash_completion.d/kubectl
echo 'alias k=kubectl' >>~/.bashrc
echo 'complete -F __start_kubectl k' >>~/.bashrc
echo "Installing flux ..."
curl -s https://fluxcd.io/install.sh | sudo bash
echo "Installing helm 3 ..."
curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
chmod 700 get_helm.sh
./get_helm.sh
echo "Installing K9S..."
curl -sS https://webinstall.dev/k9s | bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment