过程如下:
[root@10-0-9-52 member]# lltotal 0drwx------ 2 root root 246 Sep 29 11:11 snapdrwx------ 2 root root 244 Sep 29 11:11 wal[root@10-0-9-52 member]# cd /etc/yum.repos.d/[root@10-0-9-52 yum.repos.d]# lltotal 48-rw-r--r--. 1 root root 203 Mar 10 2020 CentOS-AppStream.repo-rw-r--r--. 1 root root 606 Mar 10 2020 CentOS-Base.repo-rw-r--r--. 1 root root 200 Mar 10 2020 CentOS-centosplus.repo-rw-r--r--. 1 root root 1320 Aug 14 2019 CentOS-CR.repo-rw-r--r--. 1 root root 668 Aug 14 2019 CentOS-Debuginfo.repo-rw-r--r--. 1 root root 194 Mar 10 2020 CentOS-Extras.repo-rw-r--r--. 1 root root 338 Aug 14 2019 CentOS-fasttrack.repo-rw-r--r--. 1 root root 928 Aug 14 2019 CentOS-Media.repo-rw-r--r--. 1 root root 736 Aug 14 2019 CentOS-PowerTools.repo-rw-r--r--. 1 root root 1382 Aug 14 2019 CentOS-Sources.repo-rw-r--r--. 1 root root 74 Aug 14 2019 CentOS-Vault.repo-rw-r--r-- 1 root root 214 Jul 15 23:44 epel.repo[root@10-0-9-52 yum.repos.d]# mkdir bak[root@10-0-9-52 yum.repos.d]# mkdir bak^C[root@10-0-9-52 yum.repos.d]# mv ./* bak/mv: cannot move './bak' to a subdirectory of itself, 'bak/bak'[root@10-0-9-52 yum.repos.d]# lltotal 0drwxr-xr-x 2 root root 319 Oct 9 22:36 bak[root@10-0-9-52 yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo% Total % Received % Xferd Average Speed Time Time Time CurrentDload Upload Total Spent Left Speed100 2595 100 2595 0 0 2805 0 --:--:-- --:--:-- --:--:-- 2802[root@10-0-9-52 yum.repos.d]# swapoff -a[root@10-0-9-52 yum.repos.d]# cat /etc/fstab## /etc/fstab# Created by anaconda on Tue Dec 10 17:36:27 2019## Accessible filesystems, by reference, are maintained under '/dev/disk/'.# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.## After editing this file, run 'systemctl daemon-reload' to update systemd# units generated from this file.#UUID=2029425f-6f3f-4000-8a9c-20f2bc9fa564 / xfs defaults 0 0UUID=e263119d-dc24-42d5-80fc-a831251f4268 /data ext4 defaults 0 0[root@10-0-9-52 yum.repos.d]# yum install vim bash-completion net-tools gcc -yCentOS-8 - AppStream - mirrors.aliyun.com 640 kB/s | 5.8 MB 00:09CentOS-8 - Base - mirrors.aliyun.com 421 kB/s | 2.2 MB 00:05CentOS-8 - Extras - mirrors.aliyun.com 4.3 kB/s | 8.1 kB 00:01Package vim-enhanced-2:8.0.1763-10.el8.x86_64 is already installed.Package bash-completion-1:2.7-5.el8.noarch is already installed.Package net-tools-2.0-0.51.20160912git.el8.x86_64 is already installed.Dependencies resolved.=================================================================================================================================================Package Arch Version Repository Size=================================================================================================================================================Installing:gcc x86_64 8.3.1-5.el8.0.2 AppStream 23 MUpgrading:vim-common x86_64 2:8.0.1763-13.el8 AppStream 6.3 Mvim-enhanced x86_64 2:8.0.1763-13.el8 AppStream 1.4 Mglibc x86_64 2.28-101.el8 base 3.7 Mglibc-common x86_64 2.28-101.el8 base 1.3 Mglibc-langpack-en x86_64 2.28-101.el8 base 821 klibgcc x86_64 8.3.1-5.el8.0.2 base 78 klibgomp x86_64 8.3.1-5.el8.0.2 base 203 kInstalling dependencies:cpp x86_64 8.3.1-5.el8.0.2 AppStream 10 Misl x86_64 0.16.1-6.el8 AppStream 841 klibmpc x86_64 1.0.2-9.el8 AppStream 59 kglibc-devel x86_64 2.28-101.el8 base 1.0 Mglibc-headers x86_64 2.28-101.el8 base 473 kkernel-headers x86_64 4.18.0-193.19.1.el8_2 base 4.0 Mlibxcrypt-devel x86_64 4.1.1-4.el8 base 25 kTransaction Summary=================================================================================================================================================Install 8 PackagesUpgrade 7 PackagesTotal download size: 54 MDownloading Packages:(1/15): cpp-8.3.1-5.el8.0.2.x86_64.rpm 6.0 MB/s | 10 MB 00:01(2/15): isl-0.16.1-6.el8.x86_64.rpm 446 kB/s | 841 kB 00:01(3/15): libmpc-1.0.2-9.el8.x86_64.rpm 135 kB/s | 59 kB 00:00(4/15): glibc-headers-2.28-101.el8.x86_64.rpm 160 kB/s | 473 kB 00:02(5/15): glibc-devel-2.28-101.el8.x86_64.rpm 311 kB/s | 1.0 MB 00:03(6/15): kernel-headers-4.18.0-193.19.1.el8_2.x86_64.rpm 2.6 MB/s | 4.0 MB 00:01(7/15): libxcrypt-devel-4.1.1-4.el8.x86_64.rpm 12 kB/s | 25 kB 00:02(8/15): vim-common-8.0.1763-13.el8.x86_64.rpm 4.1 MB/s | 6.3 MB 00:01(9/15): vim-enhanced-8.0.1763-13.el8.x86_64.rpm 849 kB/s | 1.4 MB 00:01(10/15): glibc-common-2.28-101.el8.x86_64.rpm 683 kB/s | 1.3 MB 00:01(11/15): gcc-8.3.1-5.el8.0.2.x86_64.rpm 2.1 MB/s | 23 MB 00:11(12/15): glibc-langpack-en-2.28-101.el8.x86_64.rpm 1.1 MB/s | 821 kB 00:00(13/15): glibc-2.28-101.el8.x86_64.rpm 992 kB/s | 3.7 MB 00:03(14/15): libgcc-8.3.1-5.el8.0.2.x86_64.rpm 118 kB/s | 78 kB 00:00(15/15): libgomp-8.3.1-5.el8.0.2.x86_64.rpm 457 kB/s | 203 kB 00:00-------------------------------------------------------------------------------------------------------------------------------------------------Total 4.5 MB/s | 54 MB 00:12Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Upgrading : glibc-common-2.28-101.el8.x86_64 1/22Upgrading : glibc-langpack-en-2.28-101.el8.x86_64 2/22Running scriptlet: glibc-2.28-101.el8.x86_64 3/22Upgrading : glibc-2.28-101.el8.x86_64 3/22Running scriptlet: glibc-2.28-101.el8.x86_64 3/22warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnewInstalling : libmpc-1.0.2-9.el8.x86_64 4/22Running scriptlet: libmpc-1.0.2-9.el8.x86_64 4/22Upgrading : libgcc-8.3.1-5.el8.0.2.x86_64 5/22Running scriptlet: libgcc-8.3.1-5.el8.0.2.x86_64 5/22Installing : cpp-8.3.1-5.el8.0.2.x86_64 6/22Running scriptlet: cpp-8.3.1-5.el8.0.2.x86_64 6/22Installing : isl-0.16.1-6.el8.x86_64 7/22Running scriptlet: isl-0.16.1-6.el8.x86_64 7/22Upgrading : vim-common-2:8.0.1763-13.el8.x86_64 8/22Upgrading : libgomp-8.3.1-5.el8.0.2.x86_64 9/22Running scriptlet: libgomp-8.3.1-5.el8.0.2.x86_64 9/22Installing : kernel-headers-4.18.0-193.19.1.el8_2.x86_64 10/22Running scriptlet: glibc-headers-2.28-101.el8.x86_64 11/22Installing : glibc-headers-2.28-101.el8.x86_64 11/22Installing : libxcrypt-devel-4.1.1-4.el8.x86_64 12/22Installing : glibc-devel-2.28-101.el8.x86_64 13/22Running scriptlet: glibc-devel-2.28-101.el8.x86_64 13/22Installing : gcc-8.3.1-5.el8.0.2.x86_64 14/22Running scriptlet: gcc-8.3.1-5.el8.0.2.x86_64 14/22Upgrading : vim-enhanced-2:8.0.1763-13.el8.x86_64 15/22Cleanup : vim-enhanced-2:8.0.1763-10.el8.x86_64 16/22Running scriptlet: libgomp-8.2.1-3.5.el8.x86_64 17/22Cleanup : libgomp-8.2.1-3.5.el8.x86_64 17/22Running scriptlet: libgomp-8.2.1-3.5.el8.x86_64 17/22Cleanup : vim-common-2:8.0.1763-10.el8.x86_64 18/22Cleanup : glibc-2.28-42.el8.1.x86_64 19/22Cleanup : glibc-langpack-en-2.28-42.el8.1.x86_64 20/22Cleanup : glibc-common-2.28-42.el8.1.x86_64 21/22Cleanup : libgcc-8.2.1-3.5.el8.x86_64 22/22Running scriptlet: libgcc-8.2.1-3.5.el8.x86_64 22/22Running scriptlet: glibc-common-2.28-101.el8.x86_64 22/22Running scriptlet: vim-common-2:8.0.1763-13.el8.x86_64 22/22Verifying : cpp-8.3.1-5.el8.0.2.x86_64 1/22Verifying : gcc-8.3.1-5.el8.0.2.x86_64 2/22Verifying : isl-0.16.1-6.el8.x86_64 3/22Verifying : libmpc-1.0.2-9.el8.x86_64 4/22Verifying : glibc-devel-2.28-101.el8.x86_64 5/22Verifying : glibc-headers-2.28-101.el8.x86_64 6/22Verifying : kernel-headers-4.18.0-193.19.1.el8_2.x86_64 7/22Verifying : libxcrypt-devel-4.1.1-4.el8.x86_64 8/22Verifying : vim-common-2:8.0.1763-13.el8.x86_64 9/22Verifying : vim-common-2:8.0.1763-10.el8.x86_64 10/22Verifying : vim-enhanced-2:8.0.1763-13.el8.x86_64 11/22Verifying : vim-enhanced-2:8.0.1763-10.el8.x86_64 12/22Verifying : glibc-2.28-101.el8.x86_64 13/22Verifying : glibc-2.28-42.el8.1.x86_64 14/22Verifying : glibc-common-2.28-101.el8.x86_64 15/22Verifying : glibc-common-2.28-42.el8.1.x86_64 16/22Verifying : glibc-langpack-en-2.28-101.el8.x86_64 17/22Verifying : glibc-langpack-en-2.28-42.el8.1.x86_64 18/22Verifying : libgcc-8.3.1-5.el8.0.2.x86_64 19/22Verifying : libgcc-8.2.1-3.5.el8.x86_64 20/22Verifying : libgomp-8.3.1-5.el8.0.2.x86_64 21/22Verifying : libgomp-8.2.1-3.5.el8.x86_64 22/22Upgraded:vim-common-2:8.0.1763-13.el8.x86_64 vim-enhanced-2:8.0.1763-13.el8.x86_64 glibc-2.28-101.el8.x86_64 glibc-common-2.28-101.el8.x86_64glibc-langpack-en-2.28-101.el8.x86_64 libgcc-8.3.1-5.el8.0.2.x86_64 libgomp-8.3.1-5.el8.0.2.x86_64Installed:gcc-8.3.1-5.el8.0.2.x86_64 cpp-8.3.1-5.el8.0.2.x86_64 isl-0.16.1-6.el8.x86_64libmpc-1.0.2-9.el8.x86_64 glibc-devel-2.28-101.el8.x86_64 glibc-headers-2.28-101.el8.x86_64kernel-headers-4.18.0-193.19.1.el8_2.x86_64 libxcrypt-devel-4.1.1-4.el8.x86_64Complete![root@10-0-9-52 yum.repos.d]# yum install -y yum-utils device-mapper-persistent-data lvm2Last metadata expiration check: 0:00:26 ago on Fri 09 Oct 2020 10:38:12 PM HKT.Package device-mapper-persistent-data-0.7.6-1.el8.x86_64 is already installed.Package lvm2-8:2.03.02-6.el8.x86_64 is already installed.Dependencies resolved.=================================================================================================================================================Package Arch Version Repository Size=================================================================================================================================================Installing:yum-utils noarch 4.0.12-4.el8_2 base 66 kUpgrading:device-mapper x86_64 8:1.02.169-3.el8 base 372 kdevice-mapper-event x86_64 8:1.02.169-3.el8 base 267 kdevice-mapper-event-libs x86_64 8:1.02.169-3.el8 base 266 kdevice-mapper-libs x86_64 8:1.02.169-3.el8 base 405 kdevice-mapper-persistent-data x86_64 0.8.5-3.el8 base 470 kdnf noarch 4.2.17-7.el8_2 base 469 kdnf-data noarch 4.2.17-7.el8_2 base 145 kdnf-plugins-core noarch 4.0.12-4.el8_2 base 64 klibdnf x86_64 0.39.1-6.el8_2 base 620 klibrepo x86_64 1.11.0-3.el8_2 base 90 klibsolv x86_64 0.7.7-1.el8 base 356 klvm2 x86_64 8:2.03.08-3.el8 base 1.5 Mlvm2-libs x86_64 8:2.03.08-3.el8 base 1.1 Mpython3-dnf noarch 4.2.17-7.el8_2 base 521 kpython3-dnf-plugins-core noarch 4.0.12-4.el8_2 base 204 kpython3-hawkey x86_64 0.39.1-6.el8_2 base 99 kpython3-libdnf x86_64 0.39.1-6.el8_2 base 689 kpython3-librepo x86_64 1.11.0-3.el8_2 base 52 kpython3-rpm x86_64 4.14.2-37.el8 base 156 krpm x86_64 4.14.2-37.el8 base 540 krpm-build-libs x86_64 4.14.2-37.el8 base 154 krpm-libs x86_64 4.14.2-37.el8 base 337 krpm-plugin-selinux x86_64 4.14.2-37.el8 base 75 krpm-plugin-systemd-inhibit x86_64 4.14.2-37.el8 base 76 kyum noarch 4.2.17-7.el8_2 base 191 kInstalling dependencies:libzstd x86_64 1.4.2-2.el8 base 260 kTransaction Summary=================================================================================================================================================Install 2 PackagesUpgrade 25 PackagesTotal download size: 9.4 MDownloading Packages:(1/27): device-mapper-1.02.169-3.el8.x86_64.rpm 192 kB/s | 372 kB 00:01(2/27): yum-utils-4.0.12-4.el8_2.noarch.rpm 29 kB/s | 66 kB 00:02(3/27): device-mapper-event-1.02.169-3.el8.x86_64.rpm 126 kB/s | 267 kB 00:02(4/27): libzstd-1.4.2-2.el8.x86_64.rpm 59 kB/s | 260 kB 00:04(5/27): device-mapper-event-libs-1.02.169-3.el8.x86_64.rpm 97 kB/s | 266 kB 00:02(6/27): dnf-4.2.17-7.el8_2.noarch.rpm 384 kB/s | 469 kB 00:01(7/27): device-mapper-persistent-data-0.8.5-3.el8.x86_64.rpm 179 kB/s | 470 kB 00:02(8/27): dnf-plugins-core-4.0.12-4.el8_2.noarch.rpm 151 kB/s | 64 kB 00:00(9/27): dnf-data-4.2.17-7.el8_2.noarch.rpm 114 kB/s | 145 kB 00:01(10/27): device-mapper-libs-1.02.169-3.el8.x86_64.rpm 106 kB/s | 405 kB 00:03(11/27): librepo-1.11.0-3.el8_2.x86_64.rpm 104 kB/s | 90 kB 00:00(12/27): libsolv-0.7.7-1.el8.x86_64.rpm 297 kB/s | 356 kB 00:01(13/27): libdnf-0.39.1-6.el8_2.x86_64.rpm 315 kB/s | 620 kB 00:01(14/27): lvm2-2.03.08-3.el8.x86_64.rpm 905 kB/s | 1.5 MB 00:01(15/27): python3-dnf-4.2.17-7.el8_2.noarch.rpm 546 kB/s | 521 kB 00:00(16/27): python3-dnf-plugins-core-4.0.12-4.el8_2.noarch.rpm 399 kB/s | 204 kB 00:00(17/27): python3-hawkey-0.39.1-6.el8_2.x86_64.rpm 119 kB/s | 99 kB 00:00(18/27): python3-libdnf-0.39.1-6.el8_2.x86_64.rpm 739 kB/s | 689 kB 00:00(19/27): lvm2-libs-2.03.08-3.el8.x86_64.rpm 328 kB/s | 1.1 MB 00:03(20/27): python3-librepo-1.11.0-3.el8_2.x86_64.rpm 37 kB/s | 52 kB 00:01(21/27): rpm-build-libs-4.14.2-37.el8.x86_64.rpm 386 kB/s | 154 kB 00:00(22/27): python3-rpm-4.14.2-37.el8.x86_64.rpm 88 kB/s | 156 kB 00:01(23/27): rpm-libs-4.14.2-37.el8.x86_64.rpm 579 kB/s | 337 kB 00:00(24/27): rpm-4.14.2-37.el8.x86_64.rpm 448 kB/s | 540 kB 00:01(25/27): rpm-plugin-selinux-4.14.2-37.el8.x86_64.rpm 136 kB/s | 75 kB 00:00(26/27): rpm-plugin-systemd-inhibit-4.14.2-37.el8.x86_64.rpm 65 kB/s | 76 kB 00:01(27/27): yum-4.2.17-7.el8_2.noarch.rpm 74 kB/s | 191 kB 00:02-------------------------------------------------------------------------------------------------------------------------------------------------Total 591 kB/s | 9.4 MB 00:16Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Running scriptlet: libzstd-1.4.2-2.el8.x86_64 1/1Installing : libzstd-1.4.2-2.el8.x86_64 1/52Upgrading : librepo-1.11.0-3.el8_2.x86_64 2/52Upgrading : device-mapper-libs-8:1.02.169-3.el8.x86_64 3/52Upgrading : device-mapper-8:1.02.169-3.el8.x86_64 4/52Upgrading : device-mapper-event-libs-8:1.02.169-3.el8.x86_64 5/52Upgrading : device-mapper-event-8:1.02.169-3.el8.x86_64 6/52Running scriptlet: device-mapper-event-8:1.02.169-3.el8.x86_64 6/52Upgrading : lvm2-libs-8:2.03.08-3.el8.x86_64 7/52Upgrading : rpm-4.14.2-37.el8.x86_64 8/52Upgrading : rpm-libs-4.14.2-37.el8.x86_64 9/52Running scriptlet: rpm-libs-4.14.2-37.el8.x86_64 9/52Upgrading : libsolv-0.7.7-1.el8.x86_64 10/52Upgrading : libdnf-0.39.1-6.el8_2.x86_64 11/52Upgrading : python3-libdnf-0.39.1-6.el8_2.x86_64 12/52Upgrading : python3-hawkey-0.39.1-6.el8_2.x86_64 13/52Upgrading : rpm-build-libs-4.14.2-37.el8.x86_64 14/52Running scriptlet: rpm-build-libs-4.14.2-37.el8.x86_64 14/52Upgrading : python3-rpm-4.14.2-37.el8.x86_64 15/52Upgrading : rpm-plugin-systemd-inhibit-4.14.2-37.el8.x86_64 16/52Upgrading : dnf-data-4.2.17-7.el8_2.noarch 17/52Upgrading : python3-dnf-4.2.17-7.el8_2.noarch 18/52Upgrading : dnf-4.2.17-7.el8_2.noarch 19/52Running scriptlet: dnf-4.2.17-7.el8_2.noarch 19/52Upgrading : python3-dnf-plugins-core-4.0.12-4.el8_2.noarch 20/52Upgrading : dnf-plugins-core-4.0.12-4.el8_2.noarch 21/52Upgrading : device-mapper-persistent-data-0.8.5-3.el8.x86_64 22/52Upgrading : lvm2-8:2.03.08-3.el8.x86_64 23/52Running scriptlet: lvm2-8:2.03.08-3.el8.x86_64 23/52Installing : yum-utils-4.0.12-4.el8_2.noarch 24/52Upgrading : yum-4.2.17-7.el8_2.noarch 25/52Upgrading : rpm-plugin-selinux-4.14.2-37.el8.x86_64 26/52Upgrading : python3-librepo-1.11.0-3.el8_2.x86_64 27/52Cleanup : yum-4.0.9.2-5.el8.noarch 28/52Running scriptlet: dnf-4.0.9.2-5.el8.noarch 29/52Cleanup : dnf-4.0.9.2-5.el8.noarch 29/52Running scriptlet: dnf-4.0.9.2-5.el8.noarch 29/52Cleanup : dnf-plugins-core-4.0.2.2-3.el8.noarch 30/52Running scriptlet: lvm2-8:2.03.02-6.el8.x86_64 31/52Cleanup : lvm2-8:2.03.02-6.el8.x86_64 31/52Running scriptlet: lvm2-8:2.03.02-6.el8.x86_64 31/52Cleanup : lvm2-libs-8:2.03.02-6.el8.x86_64 32/52Running scriptlet: lvm2-libs-8:2.03.02-6.el8.x86_64 32/52Running scriptlet: device-mapper-event-8:1.02.155-6.el8.x86_64 33/52Cleanup : device-mapper-event-8:1.02.155-6.el8.x86_64 33/52Cleanup : device-mapper-event-libs-8:1.02.155-6.el8.x86_64 34/52Running scriptlet: device-mapper-event-libs-8:1.02.155-6.el8.x86_64 34/52Cleanup : rpm-plugin-selinux-4.14.2-9.el8.x86_64 35/52Cleanup : python3-dnf-plugins-core-4.0.2.2-3.el8.noarch 36/52Cleanup : python3-dnf-4.0.9.2-5.el8.noarch 37/52Cleanup : python3-hawkey-0.22.5-4.el8.x86_64 38/52Cleanup : python3-libdnf-0.22.5-4.el8.x86_64 39/52Cleanup : libdnf-0.22.5-4.el8.x86_64 40/52Cleanup : python3-rpm-4.14.2-9.el8.x86_64 41/52Cleanup : rpm-build-libs-4.14.2-9.el8.x86_64 42/52Running scriptlet: rpm-build-libs-4.14.2-9.el8.x86_64 42/52Cleanup : rpm-plugin-systemd-inhibit-4.14.2-9.el8.x86_64 43/52Cleanup : libsolv-0.6.35-6.el8.x86_64 44/52Cleanup : python3-librepo-1.9.2-1.el8.x86_64 45/52Cleanup : rpm-4.14.2-9.el8.x86_64 46/52Cleanup : rpm-libs-4.14.2-9.el8.x86_64 47/52Running scriptlet: rpm-libs-4.14.2-9.el8.x86_64 47/52Cleanup : device-mapper-libs-8:1.02.155-6.el8.x86_64 48/52Running scriptlet: device-mapper-libs-8:1.02.155-6.el8.x86_64 48/52Cleanup : device-mapper-8:1.02.155-6.el8.x86_64 49/52Cleanup : dnf-data-4.0.9.2-5.el8.noarch 50/52Cleanup : librepo-1.9.2-1.el8.x86_64 51/52Cleanup : device-mapper-persistent-data-0.7.6-1.el8.x86_64 52/52Running scriptlet: device-mapper-persistent-data-0.7.6-1.el8.x86_64 52/52Verifying : libzstd-1.4.2-2.el8.x86_64 1/52Verifying : yum-utils-4.0.12-4.el8_2.noarch 2/52Verifying : device-mapper-8:1.02.169-3.el8.x86_64 3/52Verifying : device-mapper-8:1.02.155-6.el8.x86_64 4/52Verifying : device-mapper-event-8:1.02.169-3.el8.x86_64 5/52Verifying : device-mapper-event-8:1.02.155-6.el8.x86_64 6/52Verifying : device-mapper-event-libs-8:1.02.169-3.el8.x86_64 7/52Verifying : device-mapper-event-libs-8:1.02.155-6.el8.x86_64 8/52Verifying : device-mapper-libs-8:1.02.169-3.el8.x86_64 9/52Verifying : device-mapper-libs-8:1.02.155-6.el8.x86_64 10/52Verifying : device-mapper-persistent-data-0.8.5-3.el8.x86_64 11/52Verifying : device-mapper-persistent-data-0.7.6-1.el8.x86_64 12/52Verifying : dnf-4.2.17-7.el8_2.noarch 13/52Verifying : dnf-4.0.9.2-5.el8.noarch 14/52Verifying : dnf-data-4.2.17-7.el8_2.noarch 15/52Verifying : dnf-data-4.0.9.2-5.el8.noarch 16/52Verifying : dnf-plugins-core-4.0.12-4.el8_2.noarch 17/52Verifying : dnf-plugins-core-4.0.2.2-3.el8.noarch 18/52Verifying : libdnf-0.39.1-6.el8_2.x86_64 19/52Verifying : libdnf-0.22.5-4.el8.x86_64 20/52Verifying : librepo-1.11.0-3.el8_2.x86_64 21/52Verifying : librepo-1.9.2-1.el8.x86_64 22/52Verifying : libsolv-0.7.7-1.el8.x86_64 23/52Verifying : libsolv-0.6.35-6.el8.x86_64 24/52Verifying : lvm2-8:2.03.08-3.el8.x86_64 25/52Verifying : lvm2-8:2.03.02-6.el8.x86_64 26/52Verifying : lvm2-libs-8:2.03.08-3.el8.x86_64 27/52Verifying : lvm2-libs-8:2.03.02-6.el8.x86_64 28/52Verifying : python3-dnf-4.2.17-7.el8_2.noarch 29/52Verifying : python3-dnf-4.0.9.2-5.el8.noarch 30/52Verifying : python3-dnf-plugins-core-4.0.12-4.el8_2.noarch 31/52Verifying : python3-dnf-plugins-core-4.0.2.2-3.el8.noarch 32/52Verifying : python3-hawkey-0.39.1-6.el8_2.x86_64 33/52Verifying : python3-hawkey-0.22.5-4.el8.x86_64 34/52Verifying : python3-libdnf-0.39.1-6.el8_2.x86_64 35/52Verifying : python3-libdnf-0.22.5-4.el8.x86_64 36/52Verifying : python3-librepo-1.11.0-3.el8_2.x86_64 37/52Verifying : python3-librepo-1.9.2-1.el8.x86_64 38/52Verifying : python3-rpm-4.14.2-37.el8.x86_64 39/52Verifying : python3-rpm-4.14.2-9.el8.x86_64 40/52Verifying : rpm-4.14.2-37.el8.x86_64 41/52Verifying : rpm-4.14.2-9.el8.x86_64 42/52Verifying : rpm-build-libs-4.14.2-37.el8.x86_64 43/52Verifying : rpm-build-libs-4.14.2-9.el8.x86_64 44/52Verifying : rpm-libs-4.14.2-37.el8.x86_64 45/52Verifying : rpm-libs-4.14.2-9.el8.x86_64 46/52Verifying : rpm-plugin-selinux-4.14.2-37.el8.x86_64 47/52Verifying : rpm-plugin-selinux-4.14.2-9.el8.x86_64 48/52Verifying : rpm-plugin-systemd-inhibit-4.14.2-37.el8.x86_64 49/52Verifying : rpm-plugin-systemd-inhibit-4.14.2-9.el8.x86_64 50/52Verifying : yum-4.2.17-7.el8_2.noarch 51/52Verifying : yum-4.0.9.2-5.el8.noarch 52/52Upgraded:device-mapper-8:1.02.169-3.el8.x86_64 device-mapper-event-8:1.02.169-3.el8.x86_64 device-mapper-event-libs-8:1.02.169-3.el8.x86_64device-mapper-libs-8:1.02.169-3.el8.x86_64 device-mapper-persistent-data-0.8.5-3.el8.x86_64 dnf-4.2.17-7.el8_2.noarchdnf-data-4.2.17-7.el8_2.noarch dnf-plugins-core-4.0.12-4.el8_2.noarch libdnf-0.39.1-6.el8_2.x86_64librepo-1.11.0-3.el8_2.x86_64 libsolv-0.7.7-1.el8.x86_64 lvm2-8:2.03.08-3.el8.x86_64lvm2-libs-8:2.03.08-3.el8.x86_64 python3-dnf-4.2.17-7.el8_2.noarch python3-dnf-plugins-core-4.0.12-4.el8_2.noarchpython3-hawkey-0.39.1-6.el8_2.x86_64 python3-libdnf-0.39.1-6.el8_2.x86_64 python3-librepo-1.11.0-3.el8_2.x86_64python3-rpm-4.14.2-37.el8.x86_64 rpm-4.14.2-37.el8.x86_64 rpm-build-libs-4.14.2-37.el8.x86_64rpm-libs-4.14.2-37.el8.x86_64 rpm-plugin-selinux-4.14.2-37.el8.x86_64 rpm-plugin-systemd-inhibit-4.14.2-37.el8.x86_64yum-4.2.17-7.el8_2.noarchInstalled:yum-utils-4.0.12-4.el8_2.noarch libzstd-1.4.2-2.el8.x86_64Complete![root@10-0-9-52 yum.repos.d]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repoAdding repo from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo[root@10-0-9-52 yum.repos.d]# yum -y install docker-ceDocker CE Stable - x86_64 23 kB/s | 25 kB 00:01Error:Problem: package docker-ce-3:19.03.13-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed- cannot install the best candidate for the job- package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering- package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering- package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering- package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering- package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering- package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering- package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering- package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering- package containerd.io-1.3.7-3.1.el7.x86_64 is filtered out by modular filtering(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)[root@10-0-9-52 yum.repos.d]#[root@10-0-9-52 yum.repos.d]#[root@10-0-9-52 yum.repos.d]# wget https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.e--2020-10-09 22:41:28-- https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.eResolving download.docker.com (download.docker.com)... 13.224.164.68, 13.224.164.41, 13.224.164.59, ...Connecting to download.docker.com (download.docker.com)|13.224.164.68|:443... connected.HTTP request sent, awaiting response... 404 Not Found2020-10-09 22:41:28 ERROR 404: Not Found.[root@10-0-9-52 yum.repos.d]# wget https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm--2020-10-09 22:41:36-- https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpmResolving download.docker.com (download.docker.com)... 13.224.164.41, 13.224.164.59, 13.224.164.97, ...Connecting to download.docker.com (download.docker.com)|13.224.164.41|:443... connected.HTTP request sent, awaiting response... 200 OKLength: 27119348 (26M) [application/x-redhat-package-manager]Saving to: ‘containerd.io-1.2.6-3.3.el7.x86_64.rpm’containerd.io-1.2.6-3.3.el7.x86_64.r 100%[===================================================================>] 25.86M 10.4MB/s in 2.5s2020-10-09 22:41:39 (10.4 MB/s) - ‘containerd.io-1.2.6-3.3.el7.x86_64.rpm’ saved [27119348/27119348][root@10-0-9-52 yum.repos.d]# yum install containerd.io-1.2.6-3.3.el7.x86_64.rpmLast metadata expiration check: 0:01:00 ago on Fri 09 Oct 2020 10:40:52 PM HKT.Dependencies resolved.=================================================================================================================================================Package Architecture Version Repository Size=================================================================================================================================================Installing:containerd.io x86_64 1.2.6-3.3.el7 @commandline 26 Mreplacing runc.x86_64 1.0.0-55.rc5.dev.git2abd837.module_el8.0.0+58+91b614e7Transaction Summary=================================================================================================================================================Install 1 PackageTotal size: 26 MIs this ok [y/N]: yDownloading Packages:Running transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Installing : containerd.io-1.2.6-3.3.el7.x86_64 1/2Running scriptlet: containerd.io-1.2.6-3.3.el7.x86_64 1/2Obsoleting : runc-1.0.0-55.rc5.dev.git2abd837.module_el8.0.0+58+91b614e7.x86_64 2/2Running scriptlet: runc-1.0.0-55.rc5.dev.git2abd837.module_el8.0.0+58+91b614e7.x86_64 2/2Verifying : containerd.io-1.2.6-3.3.el7.x86_64 1/2Verifying : runc-1.0.0-55.rc5.dev.git2abd837.module_el8.0.0+58+91b614e7.x86_64 2/2Installed:containerd.io-1.2.6-3.3.el7.x86_64Complete![root@10-0-9-52 yum.repos.d]# yum -y install docker-ceLast metadata expiration check: 0:01:15 ago on Fri 09 Oct 2020 10:40:52 PM HKT.Dependencies resolved.=================================================================================================================================================Package Architecture Version Repository Size=================================================================================================================================================Installing:docker-ce x86_64 3:19.03.13-3.el7 docker-ce-stable 24 MInstalling dependencies:docker-ce-cli x86_64 1:19.03.13-3.el7 docker-ce-stable 38 Mlibcgroup x86_64 0.41-19.el8 base 70 kTransaction Summary=================================================================================================================================================Install 3 PackagesTotal download size: 63 MInstalled size: 273 MDownloading Packages:(1/3): libcgroup-0.41-19.el8.x86_64.rpm 42 kB/s | 70 kB 00:01(2/3): docker-ce-cli-19.03.13-3.el7.x86_64.rpm 3.9 MB/s | 38 MB 00:09(3/3): docker-ce-19.03.13-3.el7.x86_64.rpm 2.1 MB/s | 24 MB 00:11-------------------------------------------------------------------------------------------------------------------------------------------------Total 5.4 MB/s | 63 MB 00:11warning: /var/cache/dnf/docker-ce-stable-3e5647bf4960c796/packages/docker-ce-19.03.13-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEYDocker CE Stable - x86_64 747 B/s | 1.6 kB 00:02Importing GPG key 0x621E9F35:Userid : "Docker Release (CE rpm) <docker@docker.com>"Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35From : https://mirrors.aliyun.com/docker-ce/linux/centos/gpgKey imported successfullyRunning transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Installing : docker-ce-cli-1:19.03.13-3.el7.x86_64 1/3Running scriptlet: docker-ce-cli-1:19.03.13-3.el7.x86_64 1/3Running scriptlet: libcgroup-0.41-19.el8.x86_64 2/3Installing : libcgroup-0.41-19.el8.x86_64 2/3Running scriptlet: libcgroup-0.41-19.el8.x86_64 2/3Installing : docker-ce-3:19.03.13-3.el7.x86_64 3/3Running scriptlet: docker-ce-3:19.03.13-3.el7.x86_64 3/3Verifying : libcgroup-0.41-19.el8.x86_64 1/3Verifying : docker-ce-3:19.03.13-3.el7.x86_64 2/3Verifying : docker-ce-cli-1:19.03.13-3.el7.x86_64 3/3Installed:docker-ce-3:19.03.13-3.el7.x86_64 docker-ce-cli-1:19.03.13-3.el7.x86_64 libcgroup-0.41-19.el8.x86_64Complete![root@10-0-9-52 yum.repos.d]# docker infoClient:Debug Mode: falseServer:ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?errors pretty printing info[root@10-0-9-52 yum.repos.d]# cat /mount/etc/docker/daemon.json key.json[root@10-0-9-52 yum.repos.d]# cat /mount/etc/docker/daemon.json{"registry-mirrors": ["https://fl791z1h.mirror.aliyuncs.com"]}[root@10-0-9-52 yum.repos.d]# cp /mount/etc/docker/daemon.json ^C[root@10-0-9-52 yum.repos.d]# mkdir -p /etc/docker/[root@10-0-9-52 yum.repos.d]# cp /mount/etc/docker/daemon.json /etc/docker/[root@10-0-9-52 yum.repos.d]# cat <<EOF > /etc/yum.repos.d/kubernetes.repo^C[root@10-0-9-52 yum.repos.d]# cp /mount/etc/yum /etc/docker/yum/ yum.conf yum.repos.d/[root@10-0-9-52 yum.repos.d]# cp /mount/etc/yum.repos.d/kubernetes.repo /etc/yum.repos.d/[root@10-0-9-52 yum.repos.d]# yum install kubectl kubelet kubeadmKubernetes 410 B/s | 454 B 00:01Kubernetes 2.4 kB/s | 1.8 kB 00:00Importing GPG key 0xA7317B0F:Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"Fingerprint: D0BC 747F D8CA F711 7500 D6FA 3746 C208 A731 7B0FFrom : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpgIs this ok [y/N]: yImporting GPG key 0xBA07F4FB:Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"Fingerprint: 54A6 47F9 048D 5688 D7DA 2ABE 6A03 0B21 BA07 F4FBFrom : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpgIs this ok [y/N]: yKubernetes 2.7 kB/s | 975 B 00:00Importing GPG key 0x3E1BA8D5:Userid : "Google Cloud Packages RPM Signing Key <gc-team@google.com>"Fingerprint: 3749 E1BA 95A8 6CE0 5454 6ED2 F09C 394C 3E1B A8D5From : https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgIs this ok [y/N]: yKubernetes 155 kB/s | 104 kB 00:00Dependencies resolved.=================================================================================================================================================Package Architecture Version Repository Size=================================================================================================================================================Installing:kubeadm x86_64 1.19.2-0 kubernetes 8.3 Mkubectl x86_64 1.19.2-0 kubernetes 9.0 Mkubelet x86_64 1.19.2-0 kubernetes 19 MInstalling dependencies:conntrack-tools x86_64 1.4.4-10.el8 base 204 kcri-tools x86_64 1.13.0-0 kubernetes 5.1 Mkubernetes-cni x86_64 0.8.7-0 kubernetes 19 Mlibnetfilter_cthelper x86_64 1.0.0-15.el8 base 24 klibnetfilter_cttimeout x86_64 1.0.0-11.el8 base 24 klibnetfilter_queue x86_64 1.0.2-11.el8 base 30 ksocat x86_64 1.7.3.3-2.el8 AppStream 302 kTransaction Summary=================================================================================================================================================Install 10 PackagesTotal download size: 61 MInstalled size: 261 MIs this ok [y/N]: yDownloading Packages:(1/10): libnetfilter_cttimeout-1.0.0-11.el8.x86_64.rpm 70 kB/s | 24 kB 00:00(2/10): libnetfilter_cthelper-1.0.0-15.el8.x86_64.rpm 47 kB/s | 24 kB 00:00(3/10): conntrack-tools-1.4.4-10.el8.x86_64.rpm 337 kB/s | 204 kB 00:00(4/10): libnetfilter_queue-1.0.2-11.el8.x86_64.rpm 63 kB/s | 30 kB 00:00(5/10): socat-1.7.3.3-2.el8.x86_64.rpm 786 kB/s | 302 kB 00:00(6/10): d0ba40edfc0fdf3aeec3dd8e56c01ff0d3a511cc0012aabce55d9a83d9bf2b69-kubeadm-1.19.2-0.x86_64.rpm 16 MB/s | 8.3 MB 00:00(7/10): b1b077555664655ba01b2c68d13239eaf9db1025287d0d9ccaeb4a8850c7a9b7-kubectl-1.19.2-0.x86_64.rpm 4.0 MB/s | 9.0 MB 00:02(8/10): 14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm 1.2 MB/s | 5.1 MB 00:04(9/10): db7cb5cb0b3f6875f54d10f02e625573988e3e91fd4fc5eef0b1876bb18604ad-kubernetes-cni-0.8.7-0.x86_64.rpm 3.1 MB/s | 19 MB 00:06(10/10): d9d997cdbfd6562824eb7786abbc7f4c6a6825662d0f451793aa5ab8c4a85c96-kubelet-1.19.2-0.x86_64.rpm 2.3 MB/s | 19 MB 00:08-------------------------------------------------------------------------------------------------------------------------------------------------Total 6.3 MB/s | 61 MB 00:09warning: /var/cache/dnf/kubernetes-d03a9fe438e18cac/packages/14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 3e1ba8d5: NOKEYKubernetes 1.8 kB/s | 1.8 kB 00:01Importing GPG key 0xA7317B0F:Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"Fingerprint: D0BC 747F D8CA F711 7500 D6FA 3746 C208 A731 7B0FFrom : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpgIs this ok [y/N]: yKey imported successfullyImporting GPG key 0xBA07F4FB:Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"Fingerprint: 54A6 47F9 048D 5688 D7DA 2ABE 6A03 0B21 BA07 F4FBFrom : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpgIs this ok [y/N]: yKey imported successfullyKubernetes 32 kB/s | 975 B 00:00Importing GPG key 0x3E1BA8D5:Userid : "Google Cloud Packages RPM Signing Key <gc-team@google.com>"Fingerprint: 3749 E1BA 95A8 6CE0 5454 6ED2 F09C 394C 3E1B A8D5From : https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgIs this ok [y/N]:Import of key(s) didn't help, wrong key(s)?Public key for 14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm is not installed. Failing package is: cri-tools-1.13.0-0.x86_64GPG Keys are configured as: https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg, https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgPublic key for d0ba40edfc0fdf3aeec3dd8e56c01ff0d3a511cc0012aabce55d9a83d9bf2b69-kubeadm-1.19.2-0.x86_64.rpm is not installed. Failing package is: kubeadm-1.19.2-0.x86_64GPG Keys are configured as: https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg, https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgPublic key for b1b077555664655ba01b2c68d13239eaf9db1025287d0d9ccaeb4a8850c7a9b7-kubectl-1.19.2-0.x86_64.rpm is not installed. Failing package is: kubectl-1.19.2-0.x86_64GPG Keys are configured as: https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg, https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgPublic key for d9d997cdbfd6562824eb7786abbc7f4c6a6825662d0f451793aa5ab8c4a85c96-kubelet-1.19.2-0.x86_64.rpm is not installed. Failing package is: kubelet-1.19.2-0.x86_64GPG Keys are configured as: https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg, https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgPublic key for db7cb5cb0b3f6875f54d10f02e625573988e3e91fd4fc5eef0b1876bb18604ad-kubernetes-cni-0.8.7-0.x86_64.rpm is not installed. Failing package is: kubernetes-cni-0.8.7-0.x86_64GPG Keys are configured as: https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg, https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgThe downloaded packages were saved in cache until the next successful transaction.You can remove cached packages by executing 'yum clean packages'.Error: GPG check FAILED[root@10-0-9-52 yum.repos.d]# yum install kubectl kubelet kubeadmLast metadata expiration check: 0:00:21 ago on Fri 09 Oct 2020 10:44:17 PM HKT.Dependencies resolved.=================================================================================================================================================Package Architecture Version Repository Size=================================================================================================================================================Installing:kubeadm x86_64 1.19.2-0 kubernetes 8.3 Mkubectl x86_64 1.19.2-0 kubernetes 9.0 Mkubelet x86_64 1.19.2-0 kubernetes 19 MInstalling dependencies:conntrack-tools x86_64 1.4.4-10.el8 base 204 kcri-tools x86_64 1.13.0-0 kubernetes 5.1 Mkubernetes-cni x86_64 0.8.7-0 kubernetes 19 Mlibnetfilter_cthelper x86_64 1.0.0-15.el8 base 24 klibnetfilter_cttimeout x86_64 1.0.0-11.el8 base 24 klibnetfilter_queue x86_64 1.0.2-11.el8 base 30 ksocat x86_64 1.7.3.3-2.el8 AppStream 302 kTransaction Summary=================================================================================================================================================Install 10 PackagesTotal size: 61 MInstalled size: 261 MIs this ok [y/N]: yDownloading Packages:[SKIPPED] conntrack-tools-1.4.4-10.el8.x86_64.rpm: Already downloaded[SKIPPED] libnetfilter_cthelper-1.0.0-15.el8.x86_64.rpm: Already downloaded[SKIPPED] libnetfilter_cttimeout-1.0.0-11.el8.x86_64.rpm: Already downloaded[SKIPPED] libnetfilter_queue-1.0.2-11.el8.x86_64.rpm: Already downloaded[SKIPPED] socat-1.7.3.3-2.el8.x86_64.rpm: Already downloaded[SKIPPED] 14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm: Already downloaded[SKIPPED] d0ba40edfc0fdf3aeec3dd8e56c01ff0d3a511cc0012aabce55d9a83d9bf2b69-kubeadm-1.19.2-0.x86_64.rpm: Already downloaded[SKIPPED] b1b077555664655ba01b2c68d13239eaf9db1025287d0d9ccaeb4a8850c7a9b7-kubectl-1.19.2-0.x86_64.rpm: Already downloaded[SKIPPED] d9d997cdbfd6562824eb7786abbc7f4c6a6825662d0f451793aa5ab8c4a85c96-kubelet-1.19.2-0.x86_64.rpm: Already downloaded[SKIPPED] db7cb5cb0b3f6875f54d10f02e625573988e3e91fd4fc5eef0b1876bb18604ad-kubernetes-cni-0.8.7-0.x86_64.rpm: Already downloadedwarning: /var/cache/dnf/kubernetes-d03a9fe438e18cac/packages/14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 3e1ba8d5: NOKEYKubernetes 54 kB/s | 1.8 kB 00:00GPG key at https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg (0xA7317B0F) is already installedGPG key at https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg (0xBA07F4FB) is already installedKubernetes 43 kB/s | 975 B 00:00Importing GPG key 0x3E1BA8D5:Userid : "Google Cloud Packages RPM Signing Key <gc-team@google.com>"Fingerprint: 3749 E1BA 95A8 6CE0 5454 6ED2 F09C 394C 3E1B A8D5From : https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpgIs this ok [y/N]: yKey imported successfullyRunning transaction checkTransaction check succeeded.Running transaction testTransaction test succeeded.Running transactionPreparing : 1/1Installing : kubectl-1.19.2-0.x86_64 1/10Installing : cri-tools-1.13.0-0.x86_64 2/10Installing : socat-1.7.3.3-2.el8.x86_64 3/10Installing : libnetfilter_queue-1.0.2-11.el8.x86_64 4/10Running scriptlet: libnetfilter_queue-1.0.2-11.el8.x86_64 4/10Installing : libnetfilter_cttimeout-1.0.0-11.el8.x86_64 5/10Running scriptlet: libnetfilter_cttimeout-1.0.0-11.el8.x86_64 5/10Installing : libnetfilter_cthelper-1.0.0-15.el8.x86_64 6/10Running scriptlet: libnetfilter_cthelper-1.0.0-15.el8.x86_64 6/10Installing : conntrack-tools-1.4.4-10.el8.x86_64 7/10Running scriptlet: conntrack-tools-1.4.4-10.el8.x86_64 7/10Installing : kubernetes-cni-0.8.7-0.x86_64 8/10Installing : kubelet-1.19.2-0.x86_64 9/10Installing : kubeadm-1.19.2-0.x86_64 10/10Running scriptlet: kubeadm-1.19.2-0.x86_64 10/10Verifying : conntrack-tools-1.4.4-10.el8.x86_64 1/10Verifying : libnetfilter_cthelper-1.0.0-15.el8.x86_64 2/10Verifying : libnetfilter_cttimeout-1.0.0-11.el8.x86_64 3/10Verifying : libnetfilter_queue-1.0.2-11.el8.x86_64 4/10Verifying : socat-1.7.3.3-2.el8.x86_64 5/10Verifying : cri-tools-1.13.0-0.x86_64 6/10Verifying : kubeadm-1.19.2-0.x86_64 7/10Verifying : kubectl-1.19.2-0.x86_64 8/10Verifying : kubelet-1.19.2-0.x86_64 9/10Verifying : kubernetes-cni-0.8.7-0.x86_64 10/10Installed:conntrack-tools-1.4.4-10.el8.x86_64 cri-tools-1.13.0-0.x86_64 kubeadm-1.19.2-0.x86_64kubectl-1.19.2-0.x86_64 kubelet-1.19.2-0.x86_64 kubernetes-cni-0.8.7-0.x86_64libnetfilter_cthelper-1.0.0-15.el8.x86_64 libnetfilter_cttimeout-1.0.0-11.el8.x86_64 libnetfilter_queue-1.0.2-11.el8.x86_64socat-1.7.3.3-2.el8.x86_64Complete![root@10-0-9-52 yum.repos.d]#[root@10-0-9-52 yum.repos.d]# systemctl enable kubeletCreated symlink /etc/systemd/system/multi-user.target.wants/kubelet.service → /usr/lib/systemd/system/kubelet.service.[root@10-0-9-52 yum.repos.d]# systemctl enable dockerCreated symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.[root@10-0-9-52 yum.repos.d]# kubeadm init --kubernetes-version=1.18.6 \> > --apiserver-advertise-address=10.0.9.52 \> > --image-repository registry.aliyuncs.com/google_containers \> > --service-cidr=10.10.0.0/16 --pod-network-cidr=192.168.0.0/16-bash: --service-cidr=10.10.0.0/16: No such file or directory[root@10-0-9-52 yum.repos.d]# kubeadm init --kubernetes-version=1.18.6 --apiserver-advertise-address=10.0.9.52 --image-repository registry.aliyuncs.com/google_containers --service-cidr=10.10.0.0/16 --pod-network-cidr=192.168.0.0/16W1009 22:45:51.175457 46476 kubelet.go:200] cannot automatically set CgroupDriver when starting the Kubelet: cannot execute 'docker info -f {{.CgroupDriver}}': exit status 2W1009 22:45:51.184414 46476 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io][init] Using Kubernetes version: v1.18.6[preflight] Running pre-flight checks[WARNING FileExisting-tc]: tc not found in system path[preflight] The system verification failed. Printing the output from the verification:KERNEL_VERSION: 4.18.0-147.5.1.el8_1.x86_64CONFIG_NAMESPACES: enabledCONFIG_NET_NS: enabledCONFIG_PID_NS: enabledCONFIG_IPC_NS: enabledCONFIG_UTS_NS: enabledCONFIG_CGROUPS: enabledCONFIG_CGROUP_CPUACCT: enabledCONFIG_CGROUP_DEVICE: enabledCONFIG_CGROUP_FREEZER: enabledCONFIG_CGROUP_SCHED: enabledCONFIG_CPUSETS: enabledCONFIG_MEMCG: enabledCONFIG_INET: enabledCONFIG_EXT4_FS: enabled (as module)CONFIG_PROC_FS: enabledCONFIG_NETFILTER_XT_TARGET_REDIRECT: enabled (as module)CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled (as module)CONFIG_OVERLAY_FS: enabled (as module)CONFIG_AUFS_FS: not set - Required for aufs.CONFIG_BLK_DEV_DM: enabled (as module)OS: LinuxCGROUPS_CPU: enabledCGROUPS_CPUACCT: enabledCGROUPS_CPUSET: enabledCGROUPS_DEVICES: enabledCGROUPS_FREEZER: enabledCGROUPS_MEMORY: enabledCGROUPS_HUGETLB: enabledCGROUPS_PIDS: enablederror execution phase preflight: [preflight] Some fatal errors occurred:[ERROR CRI]: container runtime is not running: output: Client:Debug Mode: falseServer:ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?errors pretty printing info, error: exit status 1[ERROR Service-Docker]: docker service is not active, please run 'systemctl start docker.service'[ERROR IsDockerSystemdCheck]: cannot execute 'docker info -f {{.CgroupDriver}}': exit status 2[ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist[ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1[ERROR SystemVerification]: error verifying Docker info: "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"[ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.19.2" Control plane version: "1.18.6"[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`To see the stack trace of this error execute with --v=5 or higher[root@10-0-9-52 yum.repos.d]# systemctl start docker[root@10-0-9-52 yum.repos.d]#[root@10-0-9-52 yum.repos.d]# kubeadm init --kubernetes-version=1.18.6 --apiserver-advertise-address=10.0.9.52 --image-repository registry.aliyuncs.com/google_containers --service-cidr=10.10.0.0/16 --pod-network-cidr=192.168.0.0/16W1009 22:46:07.053097 47249 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io][init] Using Kubernetes version: v1.18.6[preflight] Running pre-flight checks[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/[WARNING FileExisting-tc]: tc not found in system patherror execution phase preflight: [preflight] Some fatal errors occurred:[ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.19.2" Control plane version: "1.18.6"[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`To see the stack trace of this error execute with --v=5 or higher[root@10-0-9-52 yum.repos.d]# kubeadm init --kubernetes-version=1.19.2 --apiserver-advertise-address=10.0.9.52 --image-repository registry.aliyuncs.com/google_containers --service-cidr=10.10.0.0/16 --pod-network-cidr=192.168.0.0/16W1009 22:46:34.391314 47392 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io][init] Using Kubernetes version: v1.19.2[preflight] Running pre-flight checks[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/[WARNING FileExisting-tc]: tc not found in system patherror execution phase preflight: [preflight] Some fatal errors occurred:[ERROR DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty[preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`To see the stack trace of this error execute with --v=5 or higher[root@10-0-9-52 yum.repos.d]#[root@10-0-9-52 yum.repos.d]#[root@10-0-9-52 yum.repos.d]# kubeadm init --kubernetes-version=1.19.2 --apiserver-advertise-address=10.0.9.52 --image-repository registry.aliyuncs.com/google_containers --service-cidr=10.10.0.0/16 --pod-network-cidr=192.168.0.0/16 --ignore-preflight-errors=DirAvailable--var-lib-etcdW1009 22:47:53.700013 47552 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io][init] Using Kubernetes version: v1.19.2[preflight] Running pre-flight checks[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/[WARNING FileExisting-tc]: tc not found in system path[WARNING DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty[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'^C[root@10-0-9-52 yum.repos.d]# kubeadm init --kubernetes-version=1.19.2 --apiserver-advertise-address=10.0.9.52 --image-repository registry.aliyuncs.com/google_containers --service-cidr=10.10.0.0/16 --pod-network-cidr=192.168.0.0/16 --ignore-preflight-errors=DirAvailable--var-lib-etcdW1009 22:48:43.561870 47856 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io][init] Using Kubernetes version: v1.19.2[preflight] Running pre-flight checks[WARNING IsDockerSystemdCheck]: detected "cgroupfs" as the Docker cgroup driver. The recommended driver is "systemd". Please follow the guide at https://kubernetes.io/docs/setup/cri/[WARNING FileExisting-tc]: tc not found in system path[WARNING DirAvailable--var-lib-etcd]: /var/lib/etcd is not empty[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] Generating "ca" certificate and key[certs] Generating "apiserver" certificate and key[certs] apiserver serving cert is signed for DNS names [10-0-9-52 kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.10.0.1 10.0.9.52][certs] Generating "apiserver-kubelet-client" certificate and key[certs] Generating "front-proxy-ca" certificate and key[certs] Generating "front-proxy-client" certificate and key[certs] Generating "etcd/ca" certificate and key[certs] Generating "etcd/server" certificate and key[certs] etcd/server serving cert is signed for DNS names [10-0-9-52 localhost] and IPs [10.0.9.52 127.0.0.1 ::1][certs] Generating "etcd/peer" certificate and key[certs] etcd/peer serving cert is signed for DNS names [10-0-9-52 localhost] and IPs [10.0.9.52 127.0.0.1 ::1][certs] Generating "etcd/healthcheck-client" certificate and key[certs] Generating "apiserver-etcd-client" certificate and key[certs] Generating "sa" key and public key[kubeconfig] Using kubeconfig folder "/etc/kubernetes"[kubeconfig] Writing "admin.conf" kubeconfig file[kubeconfig] Writing "kubelet.conf" kubeconfig file[kubeconfig] Writing "controller-manager.conf" kubeconfig file[kubeconfig] Writing "scheduler.conf" kubeconfig file[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[kubelet-check] Initial timeout of 40s passed.[apiclient] All control plane components are healthy after 199.004508 seconds[upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace[kubelet] Creating a ConfigMap "kubelet-config-1.19" in namespace kube-system with the configuration for the kubelets in the cluster[upload-certs] Skipping phase. Please see --upload-certs[mark-control-plane] Marking the node 10-0-9-52 as control-plane by adding the label "node-role.kubernetes.io/master=''"[mark-control-plane] Marking the node 10-0-9-52 as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule][bootstrap-token] Using token: mfpux5.i4tf8rwol236meum[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-proxyYour Kubernetes control-plane has initialized successfully!To start using your cluster, you need to run the following as a regular user:mkdir -p $HOME/.kubesudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/configsudo chown $(id -u):$(id -g) $HOME/.kube/configYou 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/Then you can join any number of worker nodes by running the following on each as root:kubeadm join 10.0.9.52:6443 --token mfpux5.i4tf8rwol236meum \--discovery-token-ca-cert-hash sha256:4e464c499e924c279ba7a3215fb718e4b5c71af7974f7dd83aeb997c8812401e
