|
|
[root@k8s-master ~]# kubeadm reset --v=5 --cri-socket=unix:///var/run/cri-dockerd.sock --ignore-preflight-errors=...
/ S' t+ j, g- x; ~+ p5 L* kI1231 22:10:13.956939 4733 envvar.go:172] "Feature gate default state" feature="ClientsAllowCBOR" enabled=false
$ s0 I/ Y! q2 CI1231 22:10:13.957052 4733 envvar.go:172] "Feature gate default state" feature="ClientsPreferCBOR" enabled=false
% q. ?* _$ N5 {! f7 F5 @/ KI1231 22:10:13.957081 4733 envvar.go:172] "Feature gate default state" feature="InformerResourceVersion" enabled=false9 e: r( [ o6 B# l8 j
I1231 22:10:13.957105 4733 envvar.go:172] "Feature gate default state" feature="WatchListClient" enabled=false
5 ~# `/ W3 ^& X7 n" f5 o4 T$ h& O1 KI1231 22:10:13.958189 4733 reset.go:140] [reset] Loaded client set from kubeconfig file: /etc/kubernetes/admin.conf
# B, p Y2 z7 x' z[reset] Reading configuration from the "kubeadm-config" ConfigMap in namespace "kube-system"...7 v, m9 N6 N, F/ l. V7 o2 k% B' X! K
[reset] Use 'kubeadm init phase upload-config --config your-config.yaml' to re-upload it.) n+ S7 m, a0 @# L
I1231 22:10:13.987152 4733 kubeproxy.go:55] attempting to download the KubeProxyConfiguration from ConfigMap "kube-proxy"
0 K7 {! [" j0 U" [- V. ZI1231 22:10:13.996160 4733 kubelet.go:74] attempting to download the KubeletConfiguration from ConfigMap "kubelet-config"0 D @% ^; i. Q6 y" W
I1231 22:10:14.016090 4733 cert_rotation.go:140] Starting client certificate rotation controller: x/ u. _3 X/ k9 |* Y/ D& P6 ^
W1231 22:10:14.056437 4733 preflight.go:56] [reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted., T( H# B2 i6 e. V* k# `3 G1 F
[reset] Are you sure you want to proceed? [y/N]: y! ]1 T1 X& o( D$ i
[preflight] Running pre-flight checks
/ O; V* I1 V1 Z8 l. xI1231 22:10:17.885878 4733 removeetcdmember.go:60] [reset] Checking for etcd config
" D7 @ T( K$ X, FI1231 22:10:17.885933 4733 local.go:94] [etcd] creating etcd client that connects to etcd pods0 k! O" D3 c, d4 ]
I1231 22:10:17.885997 4733 etcd.go:215] retrieving etcd endpoints from "kubeadm.kubernetes.io/etcd.advertise-client-urls" annotation in etcd Pods' g& ~, Q( f g9 l' f. a% \0 Z) r
I1231 22:10:17.892577 4733 etcd.go:149] etcd endpoints read from pods: https://192.168.8.190:2379
3 }4 G" K' n8 V8 W' }8 l4 R4 `$ mI1231 22:10:17.926126 4733 etcd.go:274] etcd endpoints read from etcd: https://192.168.8.190:2379
* `3 o1 X1 ?. _: U; O6 RI1231 22:10:17.926169 4733 etcd.go:167] update etcd endpoints: https://192.168.8.190:2379
' u+ |$ _ t- M- T3 r) l- T- LI1231 22:10:17.950985 4733 local.go:110] [etcd] This is the only remaining etcd member in the etcd cluster, skip removing it
) t. m8 Q: [1 n1 P1 |5 v[reset] Deleted contents of the etcd data directory: /var/lib/etcd
' V- E7 K- ~& TI1231 22:10:17.951626 4733 cleanupnode.go:65] [reset] Getting init system
: W5 \7 Q) ~! H- y( S3 _: F[reset] Stopping the kubelet service
# Y) y( s1 c; J* t[reset] Unmounting mounted directories in "/var/lib/kubelet"' u+ L4 \* h6 s
I1231 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"
5 b$ ~% `/ n l( ]I1231 22:10:18.005902 4733 cleanupnode.go:103] [reset] Removing Kubernetes-managed containers7 i" n1 M7 [4 p1 s! a9 V5 O7 J' W
I1231 22:10:18.019561 4733 runtime.go:142] Attempting to remove container b0d854b20b57b922423d50168d30e0885573087bef0b2bb13248e1d309784bac
+ |) \) O6 s; H( ]8 ZI1231 22:10:18.287443 4733 runtime.go:142] Attempting to remove container ef43a1e54c62f838232ddb82699aab7d12436cff1e68de564479ee9a02220d047 \6 \0 A9 ^) a6 F7 [
I1231 22:10:18.544023 4733 runtime.go:142] Attempting to remove container c80c7ef23e4af24b2b714963419e5ae27a75ddf811f93bc4a96ee59229626dcb9 P9 J: `0 |' y
I1231 22:10:18.801848 4733 runtime.go:142] Attempting to remove container 6818fca85e063f92a365c493cc1895656aced93722afc2046dcf4e1616451904
6 b: `2 T* D) _I1231 22:10:19.074257 4733 runtime.go:142] Attempting to remove container cae358d36a25db438f6470cfc82fb6a7e6931e9cf5de374540cf6cf2c7bc31907 Q9 n3 x4 m9 d1 c7 P+ E
[reset] Deleting contents of directories: [/etc/kubernetes/manifests /var/lib/kubelet /etc/kubernetes/pki]3 G5 p% w0 U# |
[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]# C2 [, `7 A! d' C; n2 p5 U8 X
+ u( y6 M# c2 v' q' OThe reset process does not clean CNI configuration. To do so, you must remove /etc/cni/net.d
/ A" A6 f9 I6 w4 E( a% t& T' x6 f& Z# X4 G
The reset process does not reset or clean up iptables rules or IPVS tables.
/ I0 N1 ^# O- V2 C& HIf you wish to reset iptables, you must do so manually by using the "iptables" command.
! g9 Z( u* `5 q
& T. n, u5 O* y/ i" N9 n7 zIf your cluster was setup to utilize IPVS, run ipvsadm --clear (or similar)
; c' c( ^6 }; ]! D$ u/ Nto reset your system's IPVS tables.
|% S( k; [# i5 v% B% g( f& B+ _' z; p5 p6 r0 p; D$ G: B* s. Q' P
The reset process does not clean your kubeconfig files and you must remove them manually.) s/ A- ~# H% O8 j+ W. S# _
Please, check the contents of the $HOME/.kube/config file.
9 B. f) B8 A8 L' a. ~- r! C+ s' g% \" N$ w$ b
|
|