-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsupkube.log
4442 lines (4373 loc) · 224 KB
/
supkube.log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
$ ealos init --pkg-url=/root/kube1.20.15.tar.gz --version v1.20.15 \
> --user root --passwd zzt2008 \
> --master 172.16.240.140
03:13:13 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] hostname
03:14:50 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: supkube
03:14:50 [DEBG] [ssh.go:72] [172.16.240.140:22] cat /etc/hosts |grep supkube || echo '172.16.240.140 supkube' >> /etc/hosts
03:17:24 [INFO] [check.go:66] [172.16.240.140:22] ------------ check ok
03:17:24 [INFO] [utils.go:509] install version is: v1.20.15, Use kubeadm v1beta2 InitConfig,OCI use containerd instead
03:17:24 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] command -v dockerd &> /dev/null && echo yes || :
03:17:25 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is:
03:17:25 [INFO] [print.go:28]
[globals]sealos config is: {"Hosts":["172.16.240.140:22"],"Masters":["172.16.240.140:22"],"Nodes":null,"Network":"calico","APIServer":"apiserver.cluster.local"}
03:17:25 [DEBG] [ssh.go:72] [172.16.240.140:22] mkdir -p /usr/bin || true
03:17:25 [DEBG] [download.go:44] [172.16.240.140:22]please wait for mkDstDir
03:17:25 [DEBG] [download.go:46] [172.16.240.140:22]please wait for before hook
03:17:25 [DEBG] [ssh.go:72] [172.16.240.140:22] ps -ef |grep -v 'grep'|grep sealos >/dev/null || rm -rf /usr/bin/sealos
03:17:26 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] ls -l /usr/bin/sealos 2>/dev/null |wc -l
03:17:26 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: 1
03:17:26 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] md5sum /usr/bin/sealos | cut -d" " -f1
03:17:26 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: bc038f057011af74214302ce50d8bb71
03:17:26 [INFO] [download.go:51] [172.16.240.140:22]SendPackage: /usr/bin/sealos file is exist and ValidateMd5 success
03:17:26 [DEBG] [download.go:70] [172.16.240.140:22]please wait for after hook
03:17:26 [DEBG] [ssh.go:72] [172.16.240.140:22] chmod a+x /usr/bin/sealos
03:17:28 [DEBG] [ssh.go:72] [172.16.240.140:22] mkdir -p /root || true
03:17:28 [DEBG] [download.go:44] [172.16.240.140:22]please wait for mkDstDir
03:17:28 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] ls -l /root/kube1.20.15.tar.gz 2>/dev/null |wc -l
03:17:29 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: 1
03:17:30 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] md5sum /root/kube1.20.15.tar.gz | cut -d" " -f1
03:17:31 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: 2d7946b2f70f514e052e22dd1be79c82
03:17:31 [INFO] [download.go:51] [172.16.240.140:22]SendPackage: /root/kube1.20.15.tar.gz file is exist and ValidateMd5 success
03:17:31 [DEBG] [download.go:70] [172.16.240.140:22]please wait for after hook
03:17:31 [DEBG] [ssh.go:72] [172.16.240.140:22] cd /root && rm -rf kube && tar zxvf kube1.20.15.tar.gz && cd /root/kube/shell && rm -f ../bin/sealos && bash init.sh && rm -rf /opt/cni/bin/* && sed -i '/kubectl/d;/sealos/d' /root/.bashrc && echo 'command -v kubectl &>/dev/null && source <(kubectl completion bash)' >> /root/.bashrc && echo '[ -x /usr/bin/sealos ] && source <(sealos completion bash)' >> /root/.bashrc && source /root/.bashrc
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/lib64/
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/lib64/README.md
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/lib64/libseccomp.so.2
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/lib64/libseccomp.so.2.3.1
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/shell/
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/shell/containerd.sh
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/shell/init.sh
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/shell/master.sh
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/shell/init-kube.sh
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/README.md
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/
03:17:31 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/kubelet
03:17:32 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/containerd-rootless-setuptool.sh
03:17:32 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/kubectl
03:17:32 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/crictl
03:17:32 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/nerdctl
03:17:32 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/conntrack
03:17:32 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/kubeadm
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/kubelet-pre-start.sh
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/bin/containerd-rootless.sh
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/conf/
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/conf/kubeadm.yaml
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/conf/kubelet.service
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/conf/calico.yaml
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/conf/10-kubeadm.conf
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/Metadata
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/containerd/
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/containerd/cri-containerd-cni-linux.tar.gz
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/containerd/README.md
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/images/
03:17:33 [INFO] [ssh.go:65] [172.16.240.140:22] kube/images/images.tar
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] kube/images/README.md
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] + '[' -x /usr/local/bin/ctr ']'
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] + ctr version
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] Client:
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] Version: v1.5.5
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] Revision: 72cec4be58a9eb6b2910f5d10f1c01ca47d231c0
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] Go version: go1.16.6
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22]
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] Server:
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] Version: v1.5.5
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] Revision: 72cec4be58a9eb6b2910f5d10f1c01ca47d231c0
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] UUID: 57c6cbb9-fb66-4b37-978d-ddaf77ecf236
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] + '[' -f ../images/images.tar ']'
03:17:36 [INFO] [ssh.go:65] [172.16.240.140:22] + ctr -n=k8s.io image import ../images/images.tar
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking docker.io/calico/cni:v3.19.1 (sha256:f301171be0add870152483fcce71b28cafb8e910f61ff003032e9b1053b062c4)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking docker.io/calico/kube-controllers:v3.19.1 (sha256:904458fe1bd56f995ef76e2c4d9a6831c506cc80f79e8fc0182dc059b1db25a4)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking docker.io/calico/node:v3.19.1 (sha256:bc4a631d553b38fdc169ea4cb8027fa894a656e80d68d513359a4b9d46836b55)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking docker.io/calico/pod2daemon-flexvol:v3.19.1 (sha256:bcac7dc4f1301b062d91a177a52d13716907636975c44131fb8350e7f851c944)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking docker.io/fanux/lvscare:latest (sha256:b32d9759dd954dfa4d555b948f329f4b3f0105a60a4149bfbf1b890339eb17da)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking k8s.gcr.io/coredns:1.7.0 (sha256:73ca82b4ce829766d4f1f10947c3a338888f876fbed0540dc849c89ff256e90c)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking k8s.gcr.io/etcd:3.4.13-0 (sha256:4ad90a11b55313b182afc186b9876c8e891531b8db4c9bf1541953021618d0e2)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking k8s.gcr.io/kube-apiserver:v1.20.15 (sha256:d0aeb14ec4b600bead8cf72e7c602d19180cf92bc1ff1dfe2815299dc38df006)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking k8s.gcr.io/kube-controller-manager:v1.20.15 (sha256:5125ea64b4987ed229e91bd7f9dbef1adc0c364edbc22fb1c788acc1b4d73b62)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking k8s.gcr.io/kube-proxy:v1.20.15 (sha256:4b6c25521c58d7b7968b85f1f7dd9db30719b3565af97250442f5df91aece29d)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking k8s.gcr.io/kube-scheduler:v1.20.15 (sha256:5f7c88f2101781780737c9c396e218c92ccc1c7895dda2cb499d2c5096ab8708)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking k8s.gcr.io/pause:3.2 (sha256:927d98197ec1141a368550822d18fa1c60bdae27b78b0c004f705f548c07814f)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] unpacking k8s.gcr.io/pause:3.5 (sha256:1ff6c18fbef2045af6b9c16bf034cc421a29027b800e4f9b68ae9b1cb3e9ae07)...done
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] + grep 'SystemdCgroup = true' /etc/containerd/config.toml
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] + driver=cgroupfs
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] + echo 'driver is cgroupfs'
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] driver is cgroupfs
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] + export criDriver=cgroupfs
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] + criDriver=cgroupfs
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] + sed s/ccgroupDriver/cgroupfs/g -i ../conf/kubeadm.yaml
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] * Applying /usr/lib/sysctl.d/00-system.conf ...
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.bridge.bridge-nf-call-ip6tables = 0
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.bridge.bridge-nf-call-iptables = 0
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.bridge.bridge-nf-call-arptables = 0
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] * Applying /usr/lib/sysctl.d/10-default-yama-scope.conf ...
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] kernel.yama.ptrace_scope = 0
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] * Applying /usr/lib/sysctl.d/50-default.conf ...
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] kernel.sysrq = 16
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] kernel.core_uses_pid = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] kernel.kptr_restrict = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.ipv4.conf.default.rp_filter = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.ipv4.conf.all.rp_filter = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.ipv4.conf.default.accept_source_route = 0
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.ipv4.conf.all.accept_source_route = 0
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.ipv4.conf.default.promote_secondaries = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.ipv4.conf.all.promote_secondaries = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] fs.protected_hardlinks = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] fs.protected_symlinks = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] * Applying /etc/sysctl.d/99-sysctl.conf ...
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] * Applying /etc/sysctl.d/k8s.conf ...
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.bridge.bridge-nf-call-ip6tables = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.bridge.bridge-nf-call-iptables = 1
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.ipv4.conf.all.rp_filter = 0
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] * Applying /etc/sysctl.conf ...
03:17:39 [INFO] [ssh.go:65] [172.16.240.140:22] net.ipv4.ip_forward = 1
03:17:41 [DEBG] [print.go:35] ==>SendPackage
03:17:41 [INFO] [utils.go:509] install version is: v1.20.15, Use kubeadm v1beta2 InitConfig,OCI use containerd instead
03:17:41 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] if grep "SystemdCgroup = true" /etc/containerd/config.toml &> /dev/null; then
driver=systemd
else
driver=cgroupfs
fi
echo ${driver}
03:17:41 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: cgroupfs
03:17:41 [INFO] [init.go:85] cgroup driver is cgroupfs
03:17:41 [DEBG] [generator.go:46] KubeadmApi: kubeadm.k8s.io/v1beta2
03:17:41 [DEBG] [generator.go:47] CriSocket: /run/containerd/containerd.sock
03:17:41 [DEBG] [ssh.go:72] [172.16.240.140:22] echo "apiVersion: kubeadm.k8s.io/v1beta2
kind: InitConfiguration
localAPIEndpoint:
advertiseAddress: 172.16.240.140
bindPort: 6443
nodeRegistration:
criSocket: /run/containerd/containerd.sock
---
apiVersion: kubeadm.k8s.io/v1beta2
kind: ClusterConfiguration
kubernetesVersion: v1.20.15
controlPlaneEndpoint: "apiserver.cluster.local:6443"
imageRepository: k8s.gcr.io
networking:
# dnsDomain: cluster.local
podSubnet: 100.64.0.0/10
serviceSubnet: 10.96.0.0/12
apiServer:
certSANs:
- 127.0.0.1
- apiserver.cluster.local
- 172.16.240.140
- 10.103.97.2
extraArgs:
feature-gates: TTLAfterFinished=true
extraVolumes:
- name: localtime
hostPath: /etc/localtime
mountPath: /etc/localtime
readOnly: true
pathType: File
controllerManager:
extraArgs:
feature-gates: TTLAfterFinished=true
experimental-cluster-signing-duration: 876000h
extraVolumes:
- hostPath: /etc/localtime
mountPath: /etc/localtime
name: localtime
readOnly: true
pathType: File
scheduler:
extraArgs:
feature-gates: TTLAfterFinished=true
extraVolumes:
- hostPath: /etc/localtime
mountPath: /etc/localtime
name: localtime
readOnly: true
pathType: File
---
apiVersion: kubeproxy.config.k8s.io/v1alpha1
kind: KubeProxyConfiguration
mode: "ipvs"
ipvs:
excludeCIDRs:
- "10.103.97.2/32"
---
apiVersion: kubelet.config.k8s.io/v1beta1
kind: KubeletConfiguration
authentication:
anonymous:
enabled: false
webhook:
cacheTTL: 2m0s
enabled: true
x509:
clientCAFile: /etc/kubernetes/pki/ca.crt
authorization:
mode: Webhook
webhook:
cacheAuthorizedTTL: 5m0s
cacheUnauthorizedTTL: 30s
cgroupDriver: cgroupfs
cgroupsPerQOS: true
clusterDomain: cluster.local
configMapAndSecretChangeDetectionStrategy: Watch
containerLogMaxFiles: 5
containerLogMaxSize: 10Mi
contentType: application/vnd.kubernetes.protobuf
cpuCFSQuota: true
cpuCFSQuotaPeriod: 100ms
cpuManagerPolicy: none
cpuManagerReconcilePeriod: 10s
enableControllerAttachDetach: true
enableDebuggingHandlers: true
enforceNodeAllocatable:
- pods
eventBurst: 10
eventRecordQPS: 5
evictionHard:
imagefs.available: 15%
memory.available: 100Mi
nodefs.available: 10%
nodefs.inodesFree: 5%
evictionPressureTransitionPeriod: 5m0s
failSwapOn: true
fileCheckFrequency: 20s
hairpinMode: promiscuous-bridge
healthzBindAddress: 127.0.0.1
healthzPort: 10248
httpCheckFrequency: 20s
imageGCHighThresholdPercent: 85
imageGCLowThresholdPercent: 80
imageMinimumGCAge: 2m0s
iptablesDropBit: 15
iptablesMasqueradeBit: 14
kubeAPIBurst: 10
kubeAPIQPS: 5
makeIPTablesUtilChains: true
maxOpenFiles: 1000000
maxPods: 110
nodeLeaseDurationSeconds: 40
nodeStatusReportFrequency: 10s
nodeStatusUpdateFrequency: 10s
oomScoreAdj: -999
podPidsLimit: -1
port: 10250
registryBurst: 10
registryPullQPS: 5
rotateCertificates: true
runtimeRequestTimeout: 2m0s
serializeImagePulls: true
staticPodPath: /etc/kubernetes/manifests
streamingConnectionIdleTimeout: 4h0m0s
syncFrequency: 1m0s
volumeStatsAggPeriod: 1m0s" > /root/kubeadm-config.yaml
03:17:42 [DEBG] [print.go:35] ==>SendPackage==>KubeadmConfigInstall
03:17:42 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] hostname
03:17:42 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: supkube
03:17:42 [INFO] [kube_certs.go:236] apiserver altNames : {map[apiserver.cluster.local:apiserver.cluster.local kubernetes:kubernetes kubernetes.default:kubernetes.default kubernetes.default.svc:kubernetes.default.svc kubernetes.default.svc.cluster.local:kubernetes.default.svc.cluster.local localhost:localhost supkube:supkube] map[10.103.97.2:10.103.97.2 10.96.0.1:10.96.0.1 127.0.0.1:127.0.0.1 172.16.240.140:172.16.240.140]}
03:17:42 [INFO] [kube_certs.go:256] Etcd altnames : {map[localhost:localhost supkube:supkube] map[127.0.0.1:127.0.0.1 172.16.240.140:172.16.240.140 ::1:::1]}, commonName : supkube
03:17:42 [INFO] [kube_certs.go:264] sa.key sa.pub already exist
03:17:43 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] hostname
03:17:44 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: supkube
[kubeconfig] Using existing kubeconfig file: "/root/.sealos/admin.conf"
[kubeconfig] Using existing kubeconfig file: "/root/.sealos/controller-manager.conf"
[kubeconfig] Using existing kubeconfig file: "/root/.sealos/scheduler.conf"
[kubeconfig] Using existing kubeconfig file: "/root/.sealos/kubelet.conf"
03:17:45 [DEBG] [ssh.go:72] [172.16.240.140:22] mkdir -p /etc/kubernetes || true
03:17:45 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/kubelet.conf] to Dst [/etc/kubernetes/kubelet.conf] total size is: 5.46KB ;speed is 5KB
03:17:46 [DEBG] [ssh.go:72] [172.16.240.140:22] mkdir -p /etc/kubernetes || true
03:17:46 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/admin.conf] to Dst [/etc/kubernetes/admin.conf] total size is: 5.46KB ;speed is 5KB
03:17:47 [DEBG] [ssh.go:72] [172.16.240.140:22] mkdir -p /etc/kubernetes || true
03:17:48 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/controller-manager.conf] to Dst [/etc/kubernetes/controller-manager.conf] total size is: 5.49KB ;speed is 5KB
03:17:48 [DEBG] [ssh.go:72] [172.16.240.140:22] mkdir -p /etc/kubernetes || true
03:17:49 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/scheduler.conf] to Dst [/etc/kubernetes/scheduler.conf] total size is: 5.44KB ;speed is 5KB
03:17:49 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/apiserver-etcd-client.crt] to Dst [/etc/kubernetes/pki/apiserver-etcd-client.crt] total size is: 1.11KB ;speed is 1KB
03:17:50 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/apiserver-etcd-client.key] to Dst [/etc/kubernetes/pki/apiserver-etcd-client.key] total size is: 1.64KB ;speed is 1KB
03:17:50 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/apiserver-kubelet-client.crt] to Dst [/etc/kubernetes/pki/apiserver-kubelet-client.crt] total size is: 1.12KB ;speed is 1KB
03:17:50 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/apiserver-kubelet-client.key] to Dst [/etc/kubernetes/pki/apiserver-kubelet-client.key] total size is: 1.64KB ;speed is 1KB
03:17:50 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/apiserver.crt] to Dst [/etc/kubernetes/pki/apiserver.crt] total size is: 1.30KB ;speed is 1KB
03:17:51 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/apiserver.key] to Dst [/etc/kubernetes/pki/apiserver.key] total size is: 1.64KB ;speed is 1KB
03:17:51 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/ca.crt] to Dst [/etc/kubernetes/pki/ca.crt] total size is: 1.04KB ;speed is 1KB
03:17:51 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/ca.key] to Dst [/etc/kubernetes/pki/ca.key] total size is: 1.64KB ;speed is 1KB
03:17:51 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/etcd/ca.crt] to Dst [/etc/kubernetes/pki/etcd/ca.crt] total size is: 1.04KB ;speed is 1KB
03:17:51 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/etcd/ca.key] to Dst [/etc/kubernetes/pki/etcd/ca.key] total size is: 1.64KB ;speed is 1KB
03:17:51 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/etcd/healthcheck-client.crt] to Dst [/etc/kubernetes/pki/etcd/healthcheck-client.crt] total size is: 1.12KB ;speed is 1KB
03:17:52 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/etcd/healthcheck-client.key] to Dst [/etc/kubernetes/pki/etcd/healthcheck-client.key] total size is: 1.64KB ;speed is 1KB
03:17:52 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/etcd/peer.crt] to Dst [/etc/kubernetes/pki/etcd/peer.crt] total size is: 1.15KB ;speed is 1KB
03:17:52 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/etcd/peer.key] to Dst [/etc/kubernetes/pki/etcd/peer.key] total size is: 1.64KB ;speed is 1KB
03:17:52 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/etcd/server.crt] to Dst [/etc/kubernetes/pki/etcd/server.crt] total size is: 1.15KB ;speed is 1KB
03:17:52 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/etcd/server.key] to Dst [/etc/kubernetes/pki/etcd/server.key] total size is: 1.64KB ;speed is 1KB
03:17:52 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/front-proxy-ca.crt] to Dst [/etc/kubernetes/pki/front-proxy-ca.crt] total size is: 1.06KB ;speed is 1KB
03:17:53 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/front-proxy-ca.key] to Dst [/etc/kubernetes/pki/front-proxy-ca.key] total size is: 1.64KB ;speed is 1KB
03:17:53 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/front-proxy-client.crt] to Dst [/etc/kubernetes/pki/front-proxy-client.crt] total size is: 1.08KB ;speed is 1KB
03:17:53 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/front-proxy-client.key] to Dst [/etc/kubernetes/pki/front-proxy-client.key] total size is: 1.64KB ;speed is 1KB
03:17:53 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/sa.key] to Dst [/etc/kubernetes/pki/sa.key] total size is: 1.64KB ;speed is 1KB
03:17:53 [DEBG] [scp.go:352] [ssh][172.16.240.140:22]transfer local [/root/.sealos/pki/sa.pub] to Dst [/etc/kubernetes/pki/sa.pub] total size is: 0.44KB ;speed is 0KB
03:17:54 [DEBG] [ssh.go:72] [172.16.240.140:22] grep -qF '172.16.240.140 apiserver.cluster.local' /etc/hosts || echo 172.16.240.140 apiserver.cluster.local >> /etc/hosts
03:17:54 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] kubeadm init --config=/root/kubeadm-config.yaml --upload-certs -v 0
03:18:15 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: [init] Using Kubernetes version: v1.20.15
[preflight] Running pre-flight checks
[WARNING FileExisting-socat]: socat not found in system path
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
[certs] Using certificateDir folder "/etc/kubernetes/pki"
[certs] Using existing ca certificate authority
[certs] Using existing apiserver certificate and key on disk
[certs] Using existing apiserver-kubelet-client certificate and key on disk
[certs] Using existing front-proxy-ca certificate authority
[certs] Using existing front-proxy-client certificate and key on disk
[certs] Using existing etcd/ca certificate authority
[certs] Using existing etcd/server certificate and key on disk
[certs] Using existing etcd/peer certificate and key on disk
[certs] Using existing etcd/healthcheck-client certificate and key on disk
[certs] Using existing apiserver-etcd-client certificate and key on disk
[certs] Using the existing "sa" key
[kubeconfig] Using kubeconfig folder "/etc/kubernetes"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/admin.conf"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/kubelet.conf"
W0221 03:17:55.834089 105114 kubeconfig.go:246] a kubeconfig file "/etc/kubernetes/controller-manager.conf" exists already but has an unexpected API Server URL: expected: https://172.16.240.140:6443, got: https://apiserver.cluster.local:6443
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/controller-manager.conf"
W0221 03:17:55.931082 105114 kubeconfig.go:246] a kubeconfig file "/etc/kubernetes/scheduler.conf" exists already but has an unexpected API Server URL: expected: https://172.16.240.140:6443, got: https://apiserver.cluster.local:6443
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/scheduler.conf"
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Starting the kubelet
[control-plane] Using manifest folder "/etc/kubernetes/manifests"
[control-plane] Creating static Pod manifest for "kube-apiserver"
[control-plane] Creating static Pod manifest for "kube-controller-manager"
[control-plane] Creating static Pod manifest for "kube-scheduler"
[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[apiclient] All control plane components are healthy after 17.004275 seconds
[upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace
[kubelet] Creating a ConfigMap "kubelet-config-1.20" in namespace kube-system with the configuration for the kubelets in the cluster
[upload-certs] Storing the certificates in Secret "kubeadm-certs" in the "kube-system" Namespace
[upload-certs] Using certificate key:
b3bdca6aa95063ee033ee976bebbb5c0f4f92b2432e566e3978c4e742e501f37
[mark-control-plane] Marking the node supkube as control-plane by adding the labels "node-role.kubernetes.io/master=''" and "node-role.kubernetes.io/control-plane='' (deprecated)"
[mark-control-plane] Marking the node supkube as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule]
[bootstrap-token] Using token: jp3s27.aosihcgnc4oi81zc
[bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles
[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to get nodes
[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials
[bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token
[bootstrap-token] configured RBAC rules to allow certificate rotation for all node client certificates in the cluster
[bootstrap-token] Creating the "cluster-info" ConfigMap in the "kube-public" namespace
[kubelet-finalize] Updating "/etc/kubernetes/kubelet.conf" to point to a rotatable kubelet client certificate and key
[addons] Applied essential addon: CoreDNS
[addons] Applied essential addon: kube-proxy
Your Kubernetes control-plane has initialized successfully!
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Alternatively, if you are the root user, you can run:
export KUBECONFIG=/etc/kubernetes/admin.conf
You should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
https://kubernetes.io/docs/concepts/cluster-administration/addons/
You can now join any number of the control-plane node running the following command on each as root:
kubeadm join apiserver.cluster.local:6443 --token jp3s27.aosihcgnc4oi81zc \
--discovery-token-ca-cert-hash sha256:12f86665d103a973a8f2d75afa9246a47db497020f9dba3839f0f24c875ef179 \
--control-plane --certificate-key b3bdca6aa95063ee033ee976bebbb5c0f4f92b2432e566e3978c4e742e501f37
Please note that the certificate-key gives access to cluster sensitive data, keep it secret!
As a safeguard, uploaded-certs will be deleted in two hours; If necessary, you can use
"kubeadm init phase upload-certs --upload-certs" to reload certs afterward.
Then you can join any number of worker nodes by running the following on each as root:
kubeadm join apiserver.cluster.local:6443 --token jp3s27.aosihcgnc4oi81zc \
--discovery-token-ca-cert-hash sha256:12f86665d103a973a8f2d75afa9246a47db497020f9dba3839f0f24c875ef179
03:18:15 [DEBG] [sealos.go:117] [globals]decodeOutput: [init] Using Kubernetes version: v1.20.15
[preflight] Running pre-flight checks
[WARNING FileExisting-socat]: socat not found in system path
[preflight] Pulling images required for setting up a Kubernetes cluster
[preflight] This might take a minute or two, depending on the speed of your internet connection
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
[certs] Using certificateDir folder "/etc/kubernetes/pki"
[certs] Using existing ca certificate authority
[certs] Using existing apiserver certificate and key on disk
[certs] Using existing apiserver-kubelet-client certificate and key on disk
[certs] Using existing front-proxy-ca certificate authority
[certs] Using existing front-proxy-client certificate and key on disk
[certs] Using existing etcd/ca certificate authority
[certs] Using existing etcd/server certificate and key on disk
[certs] Using existing etcd/peer certificate and key on disk
[certs] Using existing etcd/healthcheck-client certificate and key on disk
[certs] Using existing apiserver-etcd-client certificate and key on disk
[certs] Using the existing "sa" key
[kubeconfig] Using kubeconfig folder "/etc/kubernetes"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/admin.conf"
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/kubelet.conf"
W0221 03:17:55.834089 105114 kubeconfig.go:246] a kubeconfig file "/etc/kubernetes/controller-manager.conf" exists already but has an unexpected API Server URL: expected: https://172.16.240.140:6443, got: https://apiserver.cluster.local:6443
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/controller-manager.conf"
W0221 03:17:55.931082 105114 kubeconfig.go:246] a kubeconfig file "/etc/kubernetes/scheduler.conf" exists already but has an unexpected API Server URL: expected: https://172.16.240.140:6443, got: https://apiserver.cluster.local:6443
[kubeconfig] Using existing kubeconfig file: "/etc/kubernetes/scheduler.conf"
[kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
[kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
[kubelet-start] Starting the kubelet
[control-plane] Using manifest folder "/etc/kubernetes/manifests"
[control-plane] Creating static Pod manifest for "kube-apiserver"
[control-plane] Creating static Pod manifest for "kube-controller-manager"
[control-plane] Creating static Pod manifest for "kube-scheduler"
[etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"
[wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s
[apiclient] All control plane components are healthy after 17.004275 seconds
[upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace
[kubelet] Creating a ConfigMap "kubelet-config-1.20" in namespace kube-system with the configuration for the kubelets in the cluster
[upload-certs] Storing the certificates in Secret "kubeadm-certs" in the "kube-system" Namespace
[upload-certs] Using certificate key:
b3bdca6aa95063ee033ee976bebbb5c0f4f92b2432e566e3978c4e742e501f37
[mark-control-plane] Marking the node supkube as control-plane by adding the labels "node-role.kubernetes.io/master=''" and "node-role.kubernetes.io/control-plane='' (deprecated)"
[mark-control-plane] Marking the node supkube as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule]
[bootstrap-token] Using token: jp3s27.aosihcgnc4oi81zc
[bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles
[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to get nodes
[bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials
[bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token
[bootstrap-token] configured RBAC rules to allow certificate rotation for all node client certificates in the cluster
[bootstrap-token] Creating the "cluster-info" ConfigMap in the "kube-public" namespace
[kubelet-finalize] Updating "/etc/kubernetes/kubelet.conf" to point to a rotatable kubelet client certificate and key
[addons] Applied essential addon: CoreDNS
[addons] Applied essential addon: kube-proxy
Your Kubernetes control-plane has initialized successfully!
To start using your cluster, you need to run the following as a regular user:
mkdir -p $HOME/.kube
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown $(id -u):$(id -g) $HOME/.kube/config
Alternatively, if you are the root user, you can run:
export KUBECONFIG=/etc/kubernetes/admin.conf
You should now deploy a pod network to the cluster.
Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
https://kubernetes.io/docs/concepts/cluster-administration/addons/
You can now join any number of the control-plane node running the following command on each as root:
kubeadm join apiserver.cluster.local:6443 --token jp3s27.aosihcgnc4oi81zc \
--discovery-token-ca-cert-hash sha256:12f86665d103a973a8f2d75afa9246a47db497020f9dba3839f0f24c875ef179 \
--control-plane --certificate-key b3bdca6aa95063ee033ee976bebbb5c0f4f92b2432e566e3978c4e742e501f37
Please note that the certificate-key gives access to cluster sensitive data, keep it secret!
As a safeguard, uploaded-certs will be deleted in two hours; If necessary, you can use
"kubeadm init phase upload-certs --upload-certs" to reload certs afterward.
Then you can join any number of worker nodes by running the following on each as root:
kubeadm join apiserver.cluster.local:6443 --token jp3s27.aosihcgnc4oi81zc \
--discovery-token-ca-cert-hash sha256:12f86665d103a973a8f2d75afa9246a47db497020f9dba3839f0f24c875ef179
03:18:15 [INFO] [sealos.go:120] [globals]join command is: apiserver.cluster.local:6443 --token jp3s27.aosihcgnc4oi81zc \
--discovery-token-ca-cert-hash sha256:12f86665d103a973a8f2d75afa9246a47db497020f9dba3839f0f24c875ef179 \
--control-plane --certificate-key b3bdca6aa95063ee033ee976bebbb5c0f4f92b2432e566e3978c4e742e501f37
03:18:15 [DEBG] [sealos.go:126] [globals]decodeJoinCmd: apiserver.cluster.local:6443 --token jp3s27.aosihcgnc4oi81zc \
--discovery-token-ca-cert-hash sha256:12f86665d103a973a8f2d75afa9246a47db497020f9dba3839f0f24c875ef179 \
--control-plane --certificate-key b3bdca6aa95063ee033ee976bebbb5c0f4f92b2432e566e3978c4e742e501f37
03:18:15 [DEBG] [sealos.go:134] [####]0 ::
03:18:15 [DEBG] [sealos.go:134] [####]1 :apiserver.cluster.local:6443:
03:18:15 [DEBG] [sealos.go:134] [####]2 :--token:
03:18:15 [DEBG] [sealos.go:134] [####]3 :jp3s27.aosihcgnc4oi81zc:
03:18:15 [DEBG] [sealos.go:134] [####]4 ::
03:18:15 [DEBG] [sealos.go:134] [####]5 ::
03:18:15 [DEBG] [sealos.go:134] [####]6 ::
03:18:15 [DEBG] [sealos.go:134] [####]7 ::
03:18:15 [DEBG] [sealos.go:134] [####]8 :--discovery-token-ca-cert-hash:
03:18:15 [DEBG] [sealos.go:134] [####]9 :sha256:12f86665d103a973a8f2d75afa9246a47db497020f9dba3839f0f24c875ef179:
03:18:15 [DEBG] [sealos.go:134] [####]10 ::
03:18:15 [DEBG] [sealos.go:134] [####]11 ::
03:18:15 [DEBG] [sealos.go:134] [####]12 ::
03:18:15 [DEBG] [sealos.go:134] [####]13 ::
03:18:15 [DEBG] [sealos.go:134] [####]14 :--control-plane:
03:18:15 [DEBG] [sealos.go:134] [####]15 :--certificate-key:
03:18:15 [DEBG] [sealos.go:134] [####]16 :b3bdca6aa95063ee033ee976bebbb5c0f4f92b2432e566e3978c4e742e501f37:
03:18:15 [DEBG] [sealos.go:155] [####]JoinToken :jp3s27.aosihcgnc4oi81zc
03:18:15 [DEBG] [sealos.go:156] [####]TokenCaCertHash :sha256:12f86665d103a973a8f2d75afa9246a47db497020f9dba3839f0f24c875ef179
03:18:15 [DEBG] [sealos.go:157] [####]CertificateKey :b3bdca6aa95063ee033ee976bebbb5c0f4f92b2432e566e3978c4e742e501f37
03:18:15 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] mkdir -p /root/.kube && cp /etc/kubernetes/admin.conf /root/.kube/config && chmod 600 /root/.kube/config
03:18:15 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is:
03:18:15 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] ls -l /root/kube/Metadata 2>/dev/null |wc -l
03:18:16 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: 1
03:18:16 [INFO] [ssh.go:27] [ssh][172.16.240.140:22] cat /root/kube/Metadata
03:18:17 [DEBG] [ssh.go:39] [ssh][172.16.240.140:22]command result is: {
"k8sVersion": "v1.20.15",
"cniVersion": "v3.19.1",
"cniName": "calico",
"arch": "amd64"
}
03:18:17 [DEBG] [init.go:248] cni yaml :
---
# Source: calico/templates/calico-config.yaml
# This ConfigMap is used to configure a self-hosted Calico installation.
kind: ConfigMap
apiVersion: v1
metadata:
name: calico-config
namespace: kube-system
data:
# You must set a non-zero value for Typha replicas below.
typha_service_name: "none"
# Configure the backend to use.
calico_backend: "bird"
# Configure the MTU to use for workload interfaces and tunnels.
# By default, MTU is auto-detected, and explicitly setting this field should not be required.
# You can override auto-detection by providing a non-zero value.
veth_mtu: "1440"
# The CNI network configuration to install on each node. The special
# values in this config will be automatically populated.
cni_network_config: |-
{
"name": "k8s-pod-network",
"cniVersion": "0.3.1",
"plugins": [
{
"type": "calico",
"log_level": "info",
"log_file_path": "/var/log/calico/cni/cni.log",
"datastore_type": "kubernetes",
"nodename": "__KUBERNETES_NODE_NAME__",
"mtu": __CNI_MTU__,
"ipam": {
"type": "calico-ipam"
},
"policy": {
"type": "k8s"
},
"kubernetes": {
"kubeconfig": "__KUBECONFIG_FILEPATH__"
}
},
{
"type": "portmap",
"snat": true,
"capabilities": {"portMappings": true}
},
{
"type": "bandwidth",
"capabilities": {"bandwidth": true}
}
]
}
---
# Source: calico/templates/kdd-crds.yaml
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: bgpconfigurations.crd.projectcalico.org
spec:
group: crd.projectcalico.org
names:
kind: BGPConfiguration
listKind: BGPConfigurationList
plural: bgpconfigurations
singular: bgpconfiguration
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: BGPConfiguration contains the configuration for any BGP routing.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: BGPConfigurationSpec contains the values of the BGP configuration.
properties:
asNumber:
description: 'ASNumber is the default AS number used by a node. [Default:
64512]'
format: int32
type: integer
communities:
description: Communities is a list of BGP community values and their
arbitrary names for tagging routes.
items:
description: Community contains standard or large community value
and its name.
properties:
name:
description: Name given to community value.
type: string
value:
description: Value must be of format are per-AS identifier.
pattern: ^(\d+):(\d+)$|^(\d+):(\d+):(\d+)$
type: string
type: object
type: array
listenPort:
description: ListenPort is the port where BGP protocol should listen.
Defaults to 179
maximum: 65535
minimum: 1
type: integer
logSeverityScreen:
description: 'LogSeverityScreen is the log severity above which logs
are sent to the stdout. [Default: INFO]'
type: string
nodeToNodeMeshEnabled:
description: 'NodeToNodeMeshEnabled sets whether full node to node
BGP mesh is enabled. [Default: true]'
type: boolean
prefixAdvertisements:
description: PrefixAdvertisements contains per-prefix advertisement
configuration.
items:
description: PrefixAdvertisement configures advertisement properties
for the specified CIDR.
properties:
cidr:
description: CIDR for which properties should be advertised.
type: string
communities:
description: Communities can be list of either community names
already defined in are per-AS identifier.
items:
type: string
type: array
type: object
type: array
serviceClusterIPs:
description: ServiceClusterIPs are the CIDR blocks from which service
cluster IPs are allocated. If specified, Calico will advertise these
blocks, as well as any cluster IPs within them.
items:
description: ServiceClusterIPBlock represents a single allowed ClusterIP
CIDR block.
properties:
cidr:
type: string
type: object
type: array
serviceExternalIPs:
description: ServiceExternalIPs are the CIDR blocks for Kubernetes
Service External IPs. Kubernetes Service ExternalIPs will only be
advertised if they are within one of these blocks.
items:
description: ServiceExternalIPBlock represents a single allowed
External IP CIDR block.
properties:
cidr:
type: string
type: object
type: array
serviceLoadBalancerIPs:
description: ServiceLoadBalancerIPs are the CIDR blocks for Kubernetes
Service LoadBalancer IPs. Kubernetes Service status.LoadBalancer.Ingress
IPs will only be advertised if they are within one of these blocks.
items:
description: ServiceLoadBalancerIPBlock represents a single allowed
LoadBalancer IP CIDR block.
properties:
cidr:
type: string
type: object
type: array
type: object
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: bgppeers.crd.projectcalico.org
spec:
group: crd.projectcalico.org
names:
kind: BGPPeer
listKind: BGPPeerList
plural: bgppeers
singular: bgppeer
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: BGPPeerSpec contains the specification for a BGPPeer resource.
properties:
asNumber:
description: The AS Number of the peer.
format: int32
type: integer
keepOriginalNextHop:
description: Option to keep the original nexthop field when routes
are sent to a BGP Peer. Setting "true" configures the selected BGP
Peers node to use the "next hop keep;" instead of "next hop self;"(default)
in the specific branch of the Node on "bird.cfg".
type: boolean
node:
description: The node name identifying the Calico node instance that
is targeted by this peer. If this is not set, and no nodeSelector
is specified, then this BGP peer selects all nodes in the cluster.
type: string
nodeSelector:
description: Selector for the nodes that should have this peering. When
this is set, the Node field must be empty.
type: string
password:
description: Optional BGP password for the peerings generated by this
BGPPeer resource.
properties:
secretKeyRef:
description: Selects a key of a secret in the node pod's namespace.
properties:
key:
description: The key of the secret to select from. Must be
a valid secret key.
type: string
name:
description: 'Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names
TODO: Add other useful fields. apiVersion, kind, uid?'
type: string
optional:
description: Specify whether the Secret or its key must be
defined
type: boolean
required:
- key
type: object
type: object
peerIP:
description: The IP address of the peer followed by an optional port
number to peer with. If port number is given, for IPv4. If optional port number is not set,
and this peer IP and ASNumber belongs to a calico/node with ListenPort
set in BGPConfiguration, then we use that port to peer.
type: string
peerSelector:
description: Selector for the remote nodes to peer with. When this
is set, the PeerIP and ASNumber fields must be empty. For each
peering between the local node and selected remote nodes, we configure
an IPv4 peering if both ends have NodeBGPSpec.IPv4Address specified,
and an IPv6 peering if both ends have NodeBGPSpec.IPv6Address specified. The
remote AS number comes from the remote node's NodeBGPSpec.ASNumber,
or the global default if that is not set.
type: string
sourceAddress:
description: Specifies whether and how to configure a source address
for the peerings generated by this BGPPeer resource. Default value
"UseNodeIP" means to configure the node IP as the source address. "None"
means not to configure a source address.
type: string
type: object
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: blockaffinities.crd.projectcalico.org
spec:
group: crd.projectcalico.org
names:
kind: BlockAffinity
listKind: BlockAffinityList
plural: blockaffinities
singular: blockaffinity
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: BlockAffinitySpec contains the specification for a BlockAffinity
resource.
properties:
cidr:
type: string
deleted:
description: Deleted indicates that this block affinity is being deleted.
This field is a string for compatibility with older releases that
mistakenly treat this field as a string.
type: string
node:
type: string
state:
type: string
required:
- cidr
- deleted
- node
- state
type: object
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: clusterinformations.crd.projectcalico.org
spec:
group: crd.projectcalico.org
names:
kind: ClusterInformation
listKind: ClusterInformationList
plural: clusterinformations
singular: clusterinformation
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: ClusterInformation contains the cluster specific information.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: ClusterInformationSpec contains the values of describing
the cluster.
properties:
calicoVersion:
description: CalicoVersion is the version of Calico that the cluster
is running
type: string
clusterGUID:
description: ClusterGUID is the GUID of the cluster
type: string
clusterType:
description: ClusterType describes the type of the cluster
type: string
datastoreReady:
description: DatastoreReady is used during significant datastore migrations
to signal to components such as Felix that it should wait before
accessing the datastore.
type: boolean
variant:
description: Variant declares which variant of Calico should be active.
type: string
type: object
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
---
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
name: felixconfigurations.crd.projectcalico.org
spec:
group: crd.projectcalico.org
names:
kind: FelixConfiguration
listKind: FelixConfigurationList
plural: felixconfigurations
singular: felixconfiguration
scope: Cluster
versions:
- name: v1
schema:
openAPIV3Schema:
description: Felix Configuration contains the configuration for Felix.
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: FelixConfigurationSpec contains the values of the Felix configuration.
properties:
allowIPIPPacketsFromWorkloads:
description: 'AllowIPIPPacketsFromWorkloads controls whether Felix
will add a rule to drop IPIP encapsulated traffic from workloads
[Default: false]'
type: boolean
allowVXLANPacketsFromWorkloads:
description: 'AllowVXLANPacketsFromWorkloads controls whether Felix
will add a rule to drop VXLAN encapsulated traffic from workloads
[Default: false]'
type: boolean
awsSrcDstCheck:
description: 'Set source-destination-check on AWS EC2 instances. Accepted
value must be one of "DoNothing", "Enabled" or "Disabled". [Default:
DoNothing]'
enum:
- DoNothing
- Enable
- Disable