|
|
[preflight] This might take a minute or two, depending on the speed of your internet connection0 _+ I& v9 x1 J4 a- f6 F' l
[preflight] You can also perform this action beforehand using 'kubeadm config images pull'. @. g8 g* y$ ~' w) h6 N
[preflight] Some fatal errors occurred:( }8 T( P# e0 f) q* s! j
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=...`
0 e! s6 Y7 {( {( @& Lerror execution phase preflight
( e, ]( i! u' ]5 [7 zk8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run.func1
6 S) ]( I9 \ y( s- J" f k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:260
. R4 i7 y& G5 b+ z4 A$ }k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).visitAll
! c) R/ ?* C8 A k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:4468 i; W4 [# @5 W2 i, O8 z
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow.(*Runner).Run1 _" I* `; B2 l D
k8s.io/kubernetes/cmd/kubeadm/app/cmd/phases/workflow/runner.go:232
) I) W, K3 r5 F0 t+ U( Y' |5 \0 Jk8s.io/kubernetes/cmd/kubeadm/app/cmd.newCmdInit.func1
) \# }6 [# J1 b7 |7 K: A: p k8s.io/kubernetes/cmd/kubeadm/app/cmd/init.go:128
" L8 B% ^1 S( }0 B/ mgithub.com/spf13/cobra.(*Command).execute
- f' Q/ W2 t; X github.com/spf13/cobra@v1.8.1/command.go:985/ I5 P$ l! X- i- O! I0 |
github.com/spf13/cobra.(*Command).ExecuteC! D7 Z8 D @) f0 U4 [. t! M
github.com/spf13/cobra@v1.8.1/command.go:1117
; x0 l$ u) d! |! R, B2 R5 ] @github.com/spf13/cobra.(*Command).Execute' w. t: ]! _5 @ s% B
github.com/spf13/cobra@v1.8.1/command.go:1041% k1 _$ [9 |8 ?( f! f% O2 o
k8s.io/kubernetes/cmd/kubeadm/app.Run( l# M) i1 L2 Z/ `% S# [
k8s.io/kubernetes/cmd/kubeadm/app/kubeadm.go:47
) \* F+ T6 c$ u/ P y& A# m3 fmain.main6 q% D: V% a0 D$ n4 R- S
k8s.io/kubernetes/cmd/kubeadm/kubeadm.go:25
% l% J. g2 G$ W5 Uruntime.main- ]0 z& t# T2 H/ {
runtime/proc.go:271
4 c: M& f* {* Nruntime.goexit
7 J( i0 r# t$ m4 ]8 s6 l runtime/asm_amd64.s:1695
' I" ?( C/ j- ^3 q
~1 K+ u# ]; A& C7 J( @报这个错误,应该是配置文件有问题:
* B' ?( ]2 Y) d: O4 p4 q- _修改配置文件:8 a. b F( \4 _( u2 F- K9 E
[root@k8s-master ~]# vim /etc/containerd/config.toml 5 y w4 ~8 e3 o
#disabled_plugins = ["cri"]
" Q- D s# y" Y( \$ z+ T7 H# c: z7 R
/ K% W% `& e6 d[root@k8s-master ~]# systemctl restart containerd.service
3 ]' c1 m& Q: h. ?+ L# A5 X0 e
再次执行即可解决问题。
/ M j0 Q+ X% o1 g
3 D8 V: Z8 c+ ? |
|