Skip to content

Local installation

Léo MERCIER edited this page Jul 28, 2024 · 4 revisions

Ansible

First, we'll install Ansible locally on our main PC or any UNIX machine you want. In this example, I'm running it in my local Artix Linux

doas pacman -S ansible-core sshpass
ansible --version

Next, we're going to install netaddr on our machine. You can install via pip or your package manager

doas pacman -S python-netaddr

Finally, we'll need to install the required collections by running

ansible-galaxy collection install -r ./requirements.yml

Kubectl

We're also going to install kubectl locally to interact with our cluster. You can build it from source, use your package manager or use the AUR like so if you're on an Arch based distro

yay -S kubectl kubecolor

Access our cluster locally

Once you started the cluster, you can access it by running the following

mkdir -p ~/.kube
scp user@your-ip:~/.kube/config ~/.kube/config
kubectl get nodes
Clone this wiki locally