Basics tools

Generic pre-requisites

We will need pip and gcc for some tools, so lets install them if needed:

sudo apt-get install python3-pip gcc -y

Install kubectl CLI tool

In order to test and manage the k3s cluster, it could be useful to have a kubectl cli install in the master nodes:

curl -LO$(curl -s
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl

# Test it
kubectl version --client

kubectl auto-complete

Use the following commands to add auto-completion to your bash shell for the kubectl command (or it’s k alias)

echo 'source <(kubectl completion bash)' >>~/.bashrc
echo 'alias k=kubectl' >>~/.bashrc
echo 'complete -F __start_kubectl k' >>~/.bashrc


Easy peasy:

curl | bash