- 积分
- 16843
在线时间 小时
最后登录1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?开始注册
x
[root@k8s-master ~]# kubeadm reset --v=5 --cri-socket=unix:///var/run/cri-dockerd.sock --ignore-preflight-errors=... % D+ {# Y4 G: e( ]# Z
I1231 22:10:13.956939 4733 envvar.go:172] "Feature gate default state" feature="ClientsAllowCBOR" enabled=false7 P3 G. O: _, @7 m4 j/ A! a9 D
I1231 22:10:13.957052 4733 envvar.go:172] "Feature gate default state" feature="ClientsPreferCBOR" enabled=false
+ X u6 [# q1 V' f- \I1231 22:10:13.957081 4733 envvar.go:172] "Feature gate default state" feature="InformerResourceVersion" enabled=false
: }, P$ _, C8 T n2 a; e7 g' fI1231 22:10:13.957105 4733 envvar.go:172] "Feature gate default state" feature="WatchListClient" enabled=false. I8 b8 D& g% Q4 _
I1231 22:10:13.958189 4733 reset.go:140] [reset] Loaded client set from kubeconfig file: /etc/kubernetes/admin.conf
( L$ ?- i5 c: d; f% [; |[reset] Reading configuration from the "kubeadm-config" ConfigMap in namespace "kube-system"...9 O7 `. n" U X5 ~0 y& U3 Z- R
[reset] Use 'kubeadm init phase upload-config --config your-config.yaml' to re-upload it.: `/ q, m! p& ~
I1231 22:10:13.987152 4733 kubeproxy.go:55] attempting to download the KubeProxyConfiguration from ConfigMap "kube-proxy"
* e5 \7 _& P$ S7 nI1231 22:10:13.996160 4733 kubelet.go:74] attempting to download the KubeletConfiguration from ConfigMap "kubelet-config"% h( U5 m* g! b6 S+ p: |
I1231 22:10:14.016090 4733 cert_rotation.go:140] Starting client certificate rotation controller
' u; z" Q2 @0 Y5 s" G! sW1231 22:10:14.056437 4733 preflight.go:56] [reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.6 V$ k4 ~* @+ Q. h! m& M
[reset] Are you sure you want to proceed? [y/N]: y
1 s6 A% c4 v6 W7 B. A9 M, V$ t' f- ~! m: i[preflight] Running pre-flight checks
! [, c: o& Q0 b2 ]& `! x2 s/ ZI1231 22:10:17.885878 4733 removeetcdmember.go:60] [reset] Checking for etcd config% l' U* P* K- C8 t
I1231 22:10:17.885933 4733 local.go:94] [etcd] creating etcd client that connects to etcd pods9 t: q% b0 o" K* d5 {- h
I1231 22:10:17.885997 4733 etcd.go:215] retrieving etcd endpoints from "kubeadm.kubernetes.io/etcd.advertise-client-urls" annotation in etcd Pods) V! D; I3 m/ N6 V7 j
I1231 22:10:17.892577 4733 etcd.go:149] etcd endpoints read from pods: https://192.168.8.190:2379
% \* P* {/ i2 N+ D. |( d5 gI1231 22:10:17.926126 4733 etcd.go:274] etcd endpoints read from etcd: https://192.168.8.190:23791 c( A3 M: O _. w; c7 ^
I1231 22:10:17.926169 4733 etcd.go:167] update etcd endpoints: https://192.168.8.190:2379% o( M/ ]8 d4 m; J; {
I1231 22:10:17.950985 4733 local.go:110] [etcd] This is the only remaining etcd member in the etcd cluster, skip removing it
e2 N' p! N3 `4 E- z6 b[reset] Deleted contents of the etcd data directory: /var/lib/etcd
, v p/ P# F' A" p- J# T$ gI1231 22:10:17.951626 4733 cleanupnode.go:65] [reset] Getting init system
+ A, x/ W, F' x( r: |, L6 _[reset] Stopping the kubelet service; L# V7 d! r7 ]2 c" }+ ^% X% D* t
[reset] Unmounting mounted directories in "/var/lib/kubelet"
. \( J# W* @/ _2 E5 EI1231 22:10:18.002240 4733 unmount_linux.go:72] [reset] Unmounting "/var/lib/kubelet/pods/79a6bb09-1c6b-4b62-90ae-6baafcc5ff78/volumes/kubernetes.io~projected/kube-api-access-2gnmv"
, Q$ c# A- d& B8 X; X3 ]- uI1231 22:10:18.005902 4733 cleanupnode.go:103] [reset] Removing Kubernetes-managed containers
7 V5 C3 j9 @* H% i4 }/ m2 C) \I1231 22:10:18.019561 4733 runtime.go:142] Attempting to remove container b0d854b20b57b922423d50168d30e0885573087bef0b2bb13248e1d309784bac
+ Z2 Q4 I) R/ R) v& `# UI1231 22:10:18.287443 4733 runtime.go:142] Attempting to remove container ef43a1e54c62f838232ddb82699aab7d12436cff1e68de564479ee9a02220d04
2 Y8 w9 G- }8 K2 d. HI1231 22:10:18.544023 4733 runtime.go:142] Attempting to remove container c80c7ef23e4af24b2b714963419e5ae27a75ddf811f93bc4a96ee59229626dcb
% Q) ~* G- y, J9 h4 b' b, i+ e* iI1231 22:10:18.801848 4733 runtime.go:142] Attempting to remove container 6818fca85e063f92a365c493cc1895656aced93722afc2046dcf4e1616451904: G0 D) v( l0 n' m% g
I1231 22:10:19.074257 4733 runtime.go:142] Attempting to remove container cae358d36a25db438f6470cfc82fb6a7e6931e9cf5de374540cf6cf2c7bc3190
, p9 W9 N3 _2 G: k1 D: B[reset] Deleting contents of directories: [/etc/kubernetes/manifests /var/lib/kubelet /etc/kubernetes/pki]0 S( j% x% R3 u ]7 r( @
[reset] Deleting files: [/etc/kubernetes/admin.conf /etc/kubernetes/super-admin.conf /etc/kubernetes/kubelet.conf /etc/kubernetes/bootstrap-kubelet.conf /etc/kubernetes/controller-manager.conf /etc/kubernetes/scheduler.conf]0 B; H% ^+ a6 |8 v5 Z* v, y
- @& P( ~0 k0 b" _: _The reset process does not clean CNI configuration. To do so, you must remove /etc/cni/net.d
& l: f0 Q' k* s! V6 S* ?7 C3 ~; l9 L1 W4 z. H
The reset process does not reset or clean up iptables rules or IPVS tables.. A( w% `# G) \3 H0 c6 a
If you wish to reset iptables, you must do so manually by using the "iptables" command.
+ g ~( E2 ~% x/ m# n
$ C! V* x4 D+ f5 Q- \If your cluster was setup to utilize IPVS, run ipvsadm --clear (or similar)' Z( M! d2 l. Y+ B H3 v7 z f
to reset your system's IPVS tables." t _4 W% m% K9 C0 n2 j/ O0 H
/ B8 @/ C) K0 _4 F
The reset process does not clean your kubeconfig files and you must remove them manually./ g: s. d1 S8 `/ l. |2 w* Z2 o
Please, check the contents of the $HOME/.kube/config file.
8 c7 c6 D t# c$ p' H h0 w3 E+ W [& m0 {
|
|