首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >用podman建立k8s集群

用podman建立k8s集群
EN

Server Fault用户
提问于 2021-08-26 08:59:12
回答 1查看 2.5K关注 0票数 1

为了学习目的,我想建立我的第一个kubernetes集群。

我有3个lxc容器运行AlmaLiunx 8.4 *一个应该成为控制器,其余2个将成为工作节点。

作为指南,我正在使用本教程。但是,我希望使用podman作为容器运行时,并且已经安装在to worker节点上。当在控制器上执行kubeadm init命令时,我会发现一个错误,即码头是必需的。

代码语言:javascript
运行
复制
# 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

我试图通过添加alias docker-'podman'来欺骗自己,但这并没有达到预期的效果(我测试了别名。起作用)。

我想知道您是否必须先用docker安装集群,然后在工作节点上用podman替换它,还是在安装过程中必须添加任何秘密podman酱汁?

EN

回答 1

Server Fault用户

发布于 2021-08-26 13:56:45

看起来,主要的问题是:

代码语言:javascript
运行
复制
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

这意味着要么根本没有安装停靠程序,要么它的可执行文件不在路径中。您需要检查是否安装了docker (如果需要,请安装它)。然后确保停靠程序可执行文件位于您的路径中。

另见这个类似的问题

票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/1075688

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档