初始化kubeadm前的注意事项

在Centos7.9中进行kubeadm init时,会出现下面的错误:

[preflight] Some fatal errors occurred:
        [ERROR CRI]: container runtime is not running: output: E1105 08:20:01.642740   25038 remote_runtime.go:948] "Status from runtime service failed" err="rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
time="2022-11-05T08:20:01+08:00" level=fatal msg="getting status of runtime: rpc error: code = Unimplemented desc = unknown service runtime.v1alpha2.RuntimeService"
, error: exit status 1
[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
error execution phase preflight

如图:
初始化kubeadm前的注意事项_第1张图片

所以在进行初始化之前,要进行下面操作,将config.toml删除:

#rm -rf /etc/containerd/config.toml
#systemctl restart containerd

这样,就能正常执行kubeadm init 了。

你可能感兴趣的:(java,电脑服务,日常电脑维护,linux,运维,服务器)