
Quiero configurar mi primer clúster de Kubernetes con fines de aprendizaje.
Tengo 3 contenedores lxc ejecutándose AlmaLiunx 8.4
*uno debería convertirse en el controlador, los 2 restantes se convertirán en nodos trabajadores.
Como guía estoy usandoeste tutorial. Sin embargo, quiero usar podman como tiempo de ejecución del contenedor y ya lo he instalado en los nodos trabajadores. Al ejecutar el kubeadm init
comando en el controlador, aparece un error que indica que la ventana acoplable sería un requisito.
# 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
Intenté engañarme agregando alias docker-'podman'
pero no tuvo el efecto deseado (probé el alias. Funciona).
Me pregunto si primero debe configurar el clúster con Docker y reemplazarlo con podman en los nodos trabajadores más adelante, o si hay alguna salsa podman secreta que deba agregar durante el procedimiento de configuración.
Respuesta1
Parece que el principal problema está aquí:
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
Esto significa que o no tiene la ventana acoplable instalada o su ejecutable no está en la RUTA. Debe verificar si Docker está instalado (e instalarlo si es necesario). Luego asegúrese de que el archivo ejecutable de la ventana acoplable esté ubicado en su RUTA.
Ver tambiénesta pregunta similar.