- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[preflight] This might take a minute or two, depending on the speed of your internet connection
- o0 x1 Z+ C- e2 s t[preflight] You can also perform this action beforehand using 'kubeadm config images pull'
* n/ `! Y; T% c9 M[preflight] Some fatal errors occurred:7 }' t: a$ Y: X7 A; a
failed to create new CRI runtime service: validate service connection: validate CRI v1 runtime API for endpoint "unix:///var/run/containerd/containerd.sock": rpc error: code = Unimplemented desc = unknown service runtime.v1.RuntimeService[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
' l8 f) b% ^8 [' Derror execution phase preflight% f& E6 b/ U- i& a& Q r4 K. t/ [
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run.func1
( \; V- _+ F* }4 x. u9 E k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:260
* x5 m. ?% `. G) j. uk8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).visitAll' S- s4 x* e; u, a, z
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:446
% p: u9 }+ W* r$ Vk8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run9 z2 p) P0 { B6 F+ n9 Z
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:232
& [2 ?4 a+ x4 ?8 [3 s) b8 {: ik8s.io/kubernetes/cmd/kubeadm/app/cmd.newCmdInit.func1
( ]/ _; e& l5 b/ u, A9 \ k8s.io/kubernetes/cmd/kubeadm/app/cmd/init.go:128
) S# i! i) ]; `' I7 E5 ^6 ]0 cgithub.com/spf13/cobra.(*Command).execute7 v. E3 C8 p0 Z" p0 m! {
github.com/spf13/cobra@v1.8.1/command.go:985
7 m" d5 l8 l! ?1 K! X: Agithub.com/spf13/cobra.(*Command).ExecuteC7 q$ G- {% L( S2 l- z7 r
github.com/spf13/cobra@v1.8.1/command.go:1117' ~( F) }( f% l z3 p+ ]+ B- M J
github.com/spf13/cobra.(*Command).Execute: u9 @7 D ]- S' {
github.com/spf13/cobra@v1.8.1/command.go:1041& u7 r/ N+ x4 p- _7 p
k8s.io/kubernetes/cmd/kubeadm/app.Run
2 Y/ [7 r g6 z. \) M, ~ K8 a" n2 h k8s.io/kubernetes/cmd/kubeadm/app/kubeadm.go:47
0 S; J- o5 @1 s$ qmain.main6 _& g& K9 y' o" `4 `$ D- x0 y
k8s.io/kubernetes/cmd/kubeadm/kubeadm.go:25+ n' O! F" a% J; ]* Y
runtime.main) P! _% }! j9 x6 x% r+ u( S- |
runtime/proc.go:271
Y" O6 a0 x+ _' M# ]" E A6 Xruntime.goexit
% H$ t0 Q1 D% K3 Y; C! N runtime/asm_amd64.s:1695) v; k1 ]$ M6 ~
0 Q/ S4 W1 ]- C% y报这个错误,应该是配置文件有问题:0 b" S9 ~- `: E0 S
修改配置文件:
# x- e: y$ L: b) E: p[root@k8s-master ~]# vim /etc/containerd/config.toml
" ?+ G6 T3 s' x) S5 a; E#disabled_plugins = ["cri"]
G/ u% u" L# F& B% @0 f' |
; Z: C+ b5 ~! \0 L) Z' K$ ][root@k8s-master ~]# systemctl restart containerd.service * q u8 U, n' l
3 N, \( J' D% P( J: \7 V
再次执行即可解决问题。% D) l7 P' D/ j R9 Q# n
9 w2 ]: q: F$ I$ k5 o8 k' Y+ _ |
|