I want to set up my first kubernetes cluster for learning purposes.
I have 3 lxc containers running AlmaLiunx 8.4
*one should become the controller, the remaining 2 will become worker nodes.
As a guide I am use this tutorial. I want however use podman as container runtime and have installed that already on the to worker nodes.
When executing the kubeadm init
command on the controller I get an error saying docker would be a requirement.
# kubeadm init
[init] Using Kubernetes version: v1.22.1
[preflight] Running pre-flight checks
[preflight] WARNING: Couldn't create the interface used for talking to the container runtime: docker is required for container runtime: exec: "docker": executable file not found in $PATH
[WARNING FileExisting-tc]: tc not found in system path
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
error execution phase preflight: docker is required for container runtime: exec: "docker": executable file not found in $PATH
To see the stack trace of this error execute with --v=5 or higher
I tried to cheat my out of this by adding alias docker-'podman'
but that did not have the intended effect (I tested the alias. it works).
I am wondering whether you have to setup the cluster with docker first and replace it with podman on the worker nodes later on, or is there any secret podman-sauce you have to add during the setup procedure?