Skip to content

Instantly share code, notes, and snippets.

@nomionz
Created February 22, 2023 18:07
Show Gist options
  • Save nomionz/ed3eee22ef20e2c80435e127e9f61bd2 to your computer and use it in GitHub Desktop.
Save nomionz/ed3eee22ef20e2c80435e127e9f61bd2 to your computer and use it in GitHub Desktop.
Prerequisites for k3s local cluster
# Docker
curl -sSL https://nimamahmoudi.github.io/cicd-cheatsheet/sh/install-docker.sh | bash
# Docker Compose
sudo apt-get update && sudo apt install -qy python3-pip && pip3 install docker-compose
# Arkade
curl -SLfs https://dl.get-arkade.dev | sudo sh
# Add tools bin directory to PATH
echo "export PATH=\$HOME/.arkade/bin:\$PATH" >> ~/.bashrc
# Copy bash completion script
arkade completion bash > ~/arkade_bash_completion.sh
echo "source ~/arkade_bash_completion.sh" >> ~/.bashrc
# starting bash completion
source ~/.bashrc
# Kubectl
arkade get kubectl
# Kubectl bash completion
echo 'source <(kubectl completion bash)' >>~/.bashrc
# starting bash completion
source ~/.bashrc
# Kustomize
arkade get kustomize
# Helm
arkade get helm
# K3sup
arkade get k3sup
# Kompose for converting docker-compose
curl -L https://github.com/kubernetes/kompose/releases/download/v1.22.0/kompose-linux-amd64 -o kompose
chmod +x kompose
sudo mv ./kompose /usr/local/bin/kompose
echo 'source <(kompose completion bash)' >>~/.bashrc
source ~/.bashrc
@nomionz
Copy link
Author

nomionz commented Feb 22, 2023

original article

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment