1. [root@liabio k8s-install]# cat /etc/yum.repos.d/*
  2. [AppStream]
  3. name=CentOS-$releasever - AppStream
  4. baseurl=http://mirrors.ucloud.cn/centos/$releasever/AppStream/$basearch/os/
  5. gpgcheck=1
  6. enabled=1
  7. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  8. # CentOS-Base.repo
  9. #
  10. # The mirror system uses the connecting IP address of the client and the
  11. # update status of each mirror to pick mirrors that are updated to and
  12. # geographically close to the client. You should use this for CentOS updates
  13. # unless you are manually picking other mirrors.
  14. #
  15. # If the mirrorlist= does not work for you, as a fall back you can try the
  16. # remarked out baseurl= line instead.
  17. #
  18. #
  19. [BaseOS]
  20. name=CentOS-$releasever - Base
  21. baseurl=http://mirrors.ucloud.cn/centos/$releasever/BaseOS/$basearch/os/
  22. gpgcheck=1
  23. enabled=1
  24. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  25. [centosplus]
  26. name=CentOS-$releasever - Plus
  27. baseurl=http://mirrors.ucloud.cn/centos/$releasever/centosplus/$basearch/os/
  28. gpgcheck=1
  29. enabled=1
  30. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  31. # CentOS-CR.repo
  32. #
  33. # The Continuous Release ( CR ) repository contains rpms that are due in the next
  34. # release for a specific CentOS Version ( eg. next release in CentOS-8 ); these rpms
  35. # are far less tested, with no integration checking or update path testing having
  36. # taken place. They are still built from the upstream sources, but might not map
  37. # to an exact upstream distro release.
  38. #
  39. # These packages are made available soon after they are built, for people willing
  40. # to test their environments, provide feedback on content for the next release, and
  41. # for people looking for early-access to next release content.
  42. #
  43. # The CR repo is shipped in a disabled state by default; its important that users
  44. # understand the implications of turning this on.
  45. #
  46. # NOTE: We do not use a mirrorlist for the CR repos, to ensure content is available
  47. # to everyone as soon as possible, and not need to wait for the external
  48. # mirror network to seed first. However, many local mirrors will carry CR repos
  49. # and if desired you can use one of these local mirrors by editing the baseurl
  50. # line in the repo config below.
  51. #
  52. [cr]
  53. name=CentOS-$releasever - cr
  54. baseurl=http://mirror.centos.org/$contentdir/$releasever/cr/$basearch/os/
  55. gpgcheck=1
  56. enabled=0
  57. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  58. # CentOS-Debug.repo
  59. #
  60. # The mirror system uses the connecting IP address of the client and the
  61. # update status of each mirror to pick mirrors that are updated to and
  62. # geographically close to the client. You should use this for CentOS updates
  63. # unless you are manually picking other mirrors.
  64. #
  65. # All debug packages from all the various CentOS-8 releases
  66. # are merged into a single repo, split by BaseArch
  67. #
  68. # Note: packages in the debuginfo repo are currently not signed
  69. #
  70. [base-debuginfo]
  71. name=CentOS-$releasever - Debuginfo
  72. baseurl=http://debuginfo.centos.org/$releasever/$basearch/
  73. gpgcheck=1
  74. enabled=0
  75. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  76. [extras]
  77. name=CentOS-$releasever - Extras
  78. baseurl=http://mirrors.ucloud.cn/centos/$releasever/extras/$basearch/os/
  79. gpgcheck=1
  80. enabled=1
  81. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  82. #CentOS-fasttrack.repo
  83. [fasttrack]
  84. name=CentOS-$releasever - fasttrack
  85. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=fasttrack&infra=$infra
  86. #baseurl=http://mirror.centos.org/$contentdir/$releasever/fasttrack/$basearch/os/
  87. gpgcheck=1
  88. enabled=0
  89. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  90. # CentOS-Media.repo
  91. #
  92. # This repo can be used with mounted DVD media, verify the mount point for
  93. # CentOS-8. You can use this repo and yum to install items directly off the
  94. # DVD ISO that we release.
  95. #
  96. # To use this repo, put in your DVD and use it with the other repos too:
  97. # yum --enablerepo=c8-media [command]
  98. #
  99. # or for ONLY the media repo, do this:
  100. #
  101. # yum --disablerepo=\* --enablerepo=c8-media [command]
  102. [c8-media-BaseOS]
  103. name=CentOS-BaseOS-$releasever - Media
  104. baseurl=file:///media/CentOS/BaseOS
  105. file:///media/cdrom/BaseOS
  106. file:///media/cdrecorder/BaseOS
  107. gpgcheck=1
  108. enabled=0
  109. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  110. [c8-media-AppStream]
  111. name=CentOS-AppStream-$releasever - Media
  112. baseurl=file:///media/CentOS/AppStream
  113. file:///media/cdrom/AppStream
  114. file:///media/cdrecorder/AppStream
  115. gpgcheck=1
  116. enabled=0
  117. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  118. # CentOS-PowerTools.repo
  119. #
  120. # The mirror system uses the connecting IP address of the client and the
  121. # update status of each mirror to pick mirrors that are updated to and
  122. # geographically close to the client. You should use this for CentOS updates
  123. # unless you are manually picking other mirrors.
  124. #
  125. # If the mirrorlist= does not work for you, as a fall back you can try the
  126. # remarked out baseurl= line instead.
  127. #
  128. #
  129. [PowerTools]
  130. name=CentOS-$releasever - PowerTools
  131. mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra
  132. #baseurl=http://mirror.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/
  133. gpgcheck=1
  134. enabled=0
  135. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  136. # CentOS-Sources.repo
  137. #
  138. # The mirror system uses the connecting IP address of the client and the
  139. # update status of each mirror to pick mirrors that are updated to and
  140. # geographically close to the client. You should use this for CentOS updates
  141. # unless you are manually picking other mirrors.
  142. #
  143. # If the mirrorlist= does not work for you, as a fall back you can try the
  144. # remarked out baseurl= line instead.
  145. #
  146. #
  147. [BaseOS-source]
  148. name=CentOS-$releasever - BaseOS Sources
  149. baseurl=http://vault.centos.org/$contentdir/$releasever/BaseOS/Source/
  150. gpgcheck=1
  151. enabled=0
  152. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  153. #AppStream
  154. [AppStream-source]
  155. name=CentOS-$releasever - AppStream Sources
  156. baseurl=http://vault.centos.org/$contentdir/$releasever/AppStream/Source/
  157. gpgcheck=1
  158. enabled=0
  159. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  160. #additional packages that may be useful
  161. [extras-source]
  162. name=CentOS-$releasever - Extras Sources
  163. baseurl=http://vault.centos.org/$contentdir/$releasever/extras/Source/
  164. gpgcheck=1
  165. enabled=0
  166. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  167. #additional packages that extend functionality of existing packages
  168. [centosplus-source]
  169. name=CentOS-$releasever - Plus Sources
  170. baseurl=http://vault.centos.org/$contentdir/$releasever/centosplus/Source/
  171. gpgcheck=1
  172. enabled=0
  173. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
  174. # CentOS Vault contains rpms from older releases in the CentOS-8
  175. # tree.
  176. [epel]
  177. name=Extra Packages for Enterprise Linux $releasever - $basearch
  178. baseurl=http://mirrors.ucloud.cn/epel/$releasever/Everything/$basearch
  179. enabled=1
  180. gpgcheck=1
  181. gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8
  182. [root@liabio k8s-install]# ll /etc/yum.repos.d/
  183. total 48
  184. -rw-r--r--. 1 root root 203 Mar 10 21:16 CentOS-AppStream.repo
  185. -rw-r--r--. 1 root root 606 Mar 10 21:16 CentOS-Base.repo
  186. -rw-r--r--. 1 root root 200 Mar 10 21:16 CentOS-centosplus.repo
  187. -rw-r--r--. 1 root root 1320 Aug 14 2019 CentOS-CR.repo
  188. -rw-r--r--. 1 root root 668 Aug 14 2019 CentOS-Debuginfo.repo
  189. -rw-r--r--. 1 root root 194 Mar 10 21:16 CentOS-Extras.repo
  190. -rw-r--r--. 1 root root 338 Aug 14 2019 CentOS-fasttrack.repo
  191. -rw-r--r--. 1 root root 928 Aug 14 2019 CentOS-Media.repo
  192. -rw-r--r--. 1 root root 736 Aug 14 2019 CentOS-PowerTools.repo
  193. -rw-r--r--. 1 root root 1382 Aug 14 2019 CentOS-Sources.repo
  194. -rw-r--r--. 1 root root 74 Aug 14 2019 CentOS-Vault.repo
  195. -rw-r--r-- 1 root root 214 Jul 15 23:44 epel.repo
  196. [root@liabio k8s-install]# cd /etc/yum.repos.d/
  197. [root@liabio yum.repos.d]# ll
  198. total 48
  199. -rw-r--r--. 1 root root 203 Mar 10 21:16 CentOS-AppStream.repo
  200. -rw-r--r--. 1 root root 606 Mar 10 21:16 CentOS-Base.repo
  201. -rw-r--r--. 1 root root 200 Mar 10 21:16 CentOS-centosplus.repo
  202. -rw-r--r--. 1 root root 1320 Aug 14 2019 CentOS-CR.repo
  203. -rw-r--r--. 1 root root 668 Aug 14 2019 CentOS-Debuginfo.repo
  204. -rw-r--r--. 1 root root 194 Mar 10 21:16 CentOS-Extras.repo
  205. -rw-r--r--. 1 root root 338 Aug 14 2019 CentOS-fasttrack.repo
  206. -rw-r--r--. 1 root root 928 Aug 14 2019 CentOS-Media.repo
  207. -rw-r--r--. 1 root root 736 Aug 14 2019 CentOS-PowerTools.repo
  208. -rw-r--r--. 1 root root 1382 Aug 14 2019 CentOS-Sources.repo
  209. -rw-r--r--. 1 root root 74 Aug 14 2019 CentOS-Vault.repo
  210. -rw-r--r-- 1 root root 214 Jul 15 23:44 epel.repo
  211. [root@liabio yum.repos.d]# mkdir bak
  212. [root@liabio yum.repos.d]# mv ./* bak/
  213. mv: cannot move './bak' to a subdirectory of itself, 'bak/bak'
  214. [root@liabio yum.repos.d]# ll
  215. total 0
  216. drwxr-xr-x 2 root root 319 Jul 29 23:56 bak
  217. [root@liabio yum.repos.d]# curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
  218. % Total % Received % Xferd Average Speed Time Time Time Current
  219. Dload Upload Total Spent Left Speed
  220. 100 2595 100 2595 0 0 5965 0 --:--:-- --:--:-- --:--:-- 5965
  221. [root@liabio yum.repos.d]# ll
  222. total 4
  223. drwxr-xr-x 2 root root 319 Jul 29 23:56 bak
  224. -rw-r--r-- 1 root root 2595 Jul 29 23:56 CentOS-Base.repo
  225. [root@liabio yum.repos.d]# swapoff -a
  226. [root@liabio yum.repos.d]# cat /etc/fstab
  227. #
  228. # /etc/fstab
  229. # Created by anaconda on Tue Dec 10 17:36:27 2019
  230. #
  231. # Accessible filesystems, by reference, are maintained under '/dev/disk/'.
  232. # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info.
  233. #
  234. # After editing this file, run 'systemctl daemon-reload' to update systemd
  235. # units generated from this file.
  236. #
  237. UUID=2029425f-6f3f-4000-8a9c-20f2bc9fa564 / xfs defaults 0 0
  238. UUID=e263119d-dc24-42d5-80fc-a831251f4268 /mnt ext4 defaults 0 0
  239. [root@liabio yum.repos.d]# yum install vim bash-completion net-tools gcc -y
  240. CentOS-8 - AppStream - mirrors.aliyun.com 4.3 MB/s | 5.8 MB 00:01
  241. CentOS-8 - Base - mirrors.aliyun.com 9.2 MB/s | 2.2 MB 00:00
  242. CentOS-8 - Extras - mirrors.aliyun.com 37 kB/s | 7.0 kB 00:00
  243. Package vim-enhanced-2:8.0.1763-10.el8.x86_64 is already installed.
  244. Package bash-completion-1:2.7-5.el8.noarch is already installed.
  245. Package net-tools-2.0-0.51.20160912git.el8.x86_64 is already installed.
  246. Dependencies resolved.
  247. =================================================================================================================================================
  248. Package Arch Version Repository Size
  249. =================================================================================================================================================
  250. Installing:
  251. gcc x86_64 8.3.1-5.el8.0.2 AppStream 23 M
  252. Upgrading:
  253. vim-common x86_64 2:8.0.1763-13.el8 AppStream 6.3 M
  254. vim-enhanced x86_64 2:8.0.1763-13.el8 AppStream 1.4 M
  255. glibc x86_64 2.28-101.el8 base 3.7 M
  256. glibc-common x86_64 2.28-101.el8 base 1.3 M
  257. glibc-langpack-en x86_64 2.28-101.el8 base 821 k
  258. libgcc x86_64 8.3.1-5.el8.0.2 base 78 k
  259. libgomp x86_64 8.3.1-5.el8.0.2 base 203 k
  260. Installing dependencies:
  261. cpp x86_64 8.3.1-5.el8.0.2 AppStream 10 M
  262. isl x86_64 0.16.1-6.el8 AppStream 841 k
  263. libmpc x86_64 1.0.2-9.el8 AppStream 59 k
  264. glibc-devel x86_64 2.28-101.el8 base 1.0 M
  265. glibc-headers x86_64 2.28-101.el8 base 473 k
  266. kernel-headers x86_64 4.18.0-193.6.3.el8_2 base 4.0 M
  267. libxcrypt-devel x86_64 4.1.1-4.el8 base 25 k
  268. Transaction Summary
  269. =================================================================================================================================================
  270. Install 8 Packages
  271. Upgrade 7 Packages
  272. Total download size: 54 M
  273. Downloading Packages:
  274. (1/15): isl-0.16.1-6.el8.x86_64.rpm 1.2 MB/s | 841 kB 00:00
  275. (2/15): libmpc-1.0.2-9.el8.x86_64.rpm 80 kB/s | 59 kB 00:00
  276. (3/15): cpp-8.3.1-5.el8.0.2.x86_64.rpm 4.7 MB/s | 10 MB 00:02
  277. (4/15): glibc-headers-2.28-101.el8.x86_64.rpm 1.3 MB/s | 473 kB 00:00
  278. (5/15): glibc-devel-2.28-101.el8.x86_64.rpm 764 kB/s | 1.0 MB 00:01
  279. (6/15): libxcrypt-devel-4.1.1-4.el8.x86_64.rpm 17 kB/s | 25 kB 00:01
  280. (7/15): kernel-headers-4.18.0-193.6.3.el8_2.x86_64.rpm 1.6 MB/s | 4.0 MB 00:02
  281. (8/15): vim-common-8.0.1763-13.el8.x86_64.rpm 3.3 MB/s | 6.3 MB 00:01
  282. (9/15): vim-enhanced-8.0.1763-13.el8.x86_64.rpm 1.0 MB/s | 1.4 MB 00:01
  283. (10/15): gcc-8.3.1-5.el8.0.2.x86_64.rpm 3.2 MB/s | 23 MB 00:07
  284. (11/15): glibc-common-2.28-101.el8.x86_64.rpm 1.5 MB/s | 1.3 MB 00:00
  285. (12/15): glibc-2.28-101.el8.x86_64.rpm 1.8 MB/s | 3.7 MB 00:02
  286. (13/15): libgcc-8.3.1-5.el8.0.2.x86_64.rpm 55 kB/s | 78 kB 00:01
  287. (14/15): glibc-langpack-en-2.28-101.el8.x86_64.rpm 553 kB/s | 821 kB 00:01
  288. (15/15): libgomp-8.3.1-5.el8.0.2.x86_64.rpm 429 kB/s | 203 kB 00:00
  289. -------------------------------------------------------------------------------------------------------------------------------------------------
  290. Total 6.2 MB/s | 54 MB 00:08
  291. Running transaction check
  292. Transaction check succeeded.
  293. Running transaction test
  294. Transaction test succeeded.
  295. Running transaction
  296. Preparing : 1/1
  297. Upgrading : glibc-common-2.28-101.el8.x86_64 1/22
  298. Upgrading : glibc-langpack-en-2.28-101.el8.x86_64 2/22
  299. Running scriptlet: glibc-2.28-101.el8.x86_64 3/22
  300. Upgrading : glibc-2.28-101.el8.x86_64 3/22
  301. Running scriptlet: glibc-2.28-101.el8.x86_64 3/22
  302. warning: /etc/nsswitch.conf created as /etc/nsswitch.conf.rpmnew
  303. Installing : libmpc-1.0.2-9.el8.x86_64 4/22
  304. Running scriptlet: libmpc-1.0.2-9.el8.x86_64 4/22
  305. Upgrading : libgcc-8.3.1-5.el8.0.2.x86_64 5/22
  306. Running scriptlet: libgcc-8.3.1-5.el8.0.2.x86_64 5/22
  307. Installing : cpp-8.3.1-5.el8.0.2.x86_64 6/22
  308. Running scriptlet: cpp-8.3.1-5.el8.0.2.x86_64 6/22
  309. Installing : isl-0.16.1-6.el8.x86_64 7/22
  310. Running scriptlet: isl-0.16.1-6.el8.x86_64 7/22
  311. Upgrading : vim-common-2:8.0.1763-13.el8.x86_64 8/22
  312. Upgrading : libgomp-8.3.1-5.el8.0.2.x86_64 9/22
  313. Running scriptlet: libgomp-8.3.1-5.el8.0.2.x86_64 9/22
  314. Installing : kernel-headers-4.18.0-193.6.3.el8_2.x86_64 10/22
  315. Running scriptlet: glibc-headers-2.28-101.el8.x86_64 11/22
  316. Installing : glibc-headers-2.28-101.el8.x86_64 11/22
  317. Installing : libxcrypt-devel-4.1.1-4.el8.x86_64 12/22
  318. Installing : glibc-devel-2.28-101.el8.x86_64 13/22
  319. Running scriptlet: glibc-devel-2.28-101.el8.x86_64 13/22
  320. Installing : gcc-8.3.1-5.el8.0.2.x86_64 14/22
  321. Running scriptlet: gcc-8.3.1-5.el8.0.2.x86_64 14/22
  322. Upgrading : vim-enhanced-2:8.0.1763-13.el8.x86_64 15/22
  323. Cleanup : vim-enhanced-2:8.0.1763-10.el8.x86_64 16/22
  324. Running scriptlet: libgomp-8.2.1-3.5.el8.x86_64 17/22
  325. Cleanup : libgomp-8.2.1-3.5.el8.x86_64 17/22
  326. Running scriptlet: libgomp-8.2.1-3.5.el8.x86_64 17/22
  327. Cleanup : vim-common-2:8.0.1763-10.el8.x86_64 18/22
  328. Cleanup : glibc-2.28-42.el8.1.x86_64 19/22
  329. Cleanup : glibc-langpack-en-2.28-42.el8.1.x86_64 20/22
  330. Cleanup : glibc-common-2.28-42.el8.1.x86_64 21/22
  331. Cleanup : libgcc-8.2.1-3.5.el8.x86_64 22/22
  332. Running scriptlet: libgcc-8.2.1-3.5.el8.x86_64 22/22
  333. Running scriptlet: glibc-common-2.28-101.el8.x86_64 22/22
  334. Running scriptlet: vim-common-2:8.0.1763-13.el8.x86_64 22/22
  335. Verifying : cpp-8.3.1-5.el8.0.2.x86_64 1/22
  336. Verifying : gcc-8.3.1-5.el8.0.2.x86_64 2/22
  337. Verifying : isl-0.16.1-6.el8.x86_64 3/22
  338. Verifying : libmpc-1.0.2-9.el8.x86_64 4/22
  339. Verifying : glibc-devel-2.28-101.el8.x86_64 5/22
  340. Verifying : glibc-headers-2.28-101.el8.x86_64 6/22
  341. Verifying : kernel-headers-4.18.0-193.6.3.el8_2.x86_64 7/22
  342. Verifying : libxcrypt-devel-4.1.1-4.el8.x86_64 8/22
  343. Verifying : vim-common-2:8.0.1763-13.el8.x86_64 9/22
  344. Verifying : vim-common-2:8.0.1763-10.el8.x86_64 10/22
  345. Verifying : vim-enhanced-2:8.0.1763-13.el8.x86_64 11/22
  346. Verifying : vim-enhanced-2:8.0.1763-10.el8.x86_64 12/22
  347. Verifying : glibc-2.28-101.el8.x86_64 13/22
  348. Verifying : glibc-2.28-42.el8.1.x86_64 14/22
  349. Verifying : glibc-common-2.28-101.el8.x86_64 15/22
  350. Verifying : glibc-common-2.28-42.el8.1.x86_64 16/22
  351. Verifying : glibc-langpack-en-2.28-101.el8.x86_64 17/22
  352. Verifying : glibc-langpack-en-2.28-42.el8.1.x86_64 18/22
  353. Verifying : libgcc-8.3.1-5.el8.0.2.x86_64 19/22
  354. Verifying : libgcc-8.2.1-3.5.el8.x86_64 20/22
  355. Verifying : libgomp-8.3.1-5.el8.0.2.x86_64 21/22
  356. Verifying : libgomp-8.2.1-3.5.el8.x86_64 22/22
  357. Upgraded:
  358. 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_64
  359. glibc-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_64
  360. Installed:
  361. 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_64
  362. libmpc-1.0.2-9.el8.x86_64 glibc-devel-2.28-101.el8.x86_64 glibc-headers-2.28-101.el8.x86_64
  363. kernel-headers-4.18.0-193.6.3.el8_2.x86_64 libxcrypt-devel-4.1.1-4.el8.x86_64
  364. Complete!
  365. [root@liabio yum.repos.d]# yum install -y yum-utils device-mapper-persistent-data lvm2
  366. Last metadata expiration check: 0:00:41 ago on Wed 29 Jul 2020 11:56:46 PM HKT.
  367. Package device-mapper-persistent-data-0.7.6-1.el8.x86_64 is already installed.
  368. Package lvm2-8:2.03.02-6.el8.x86_64 is already installed.
  369. Dependencies resolved.
  370. =================================================================================================================================================
  371. Package Arch Version Repository Size
  372. =================================================================================================================================================
  373. Installing:
  374. yum-utils noarch 4.0.12-3.el8 base 66 k
  375. Upgrading:
  376. device-mapper x86_64 8:1.02.169-3.el8 base 372 k
  377. device-mapper-event x86_64 8:1.02.169-3.el8 base 267 k
  378. device-mapper-event-libs x86_64 8:1.02.169-3.el8 base 266 k
  379. device-mapper-libs x86_64 8:1.02.169-3.el8 base 405 k
  380. device-mapper-persistent-data x86_64 0.8.5-3.el8 base 470 k
  381. dnf noarch 4.2.17-6.el8 base 469 k
  382. dnf-data noarch 4.2.17-6.el8 base 145 k
  383. dnf-plugins-core noarch 4.0.12-3.el8 base 64 k
  384. libdnf x86_64 0.39.1-5.el8 base 620 k
  385. librepo x86_64 1.11.0-2.el8 base 90 k
  386. libsolv x86_64 0.7.7-1.el8 base 356 k
  387. lvm2 x86_64 8:2.03.08-3.el8 base 1.5 M
  388. lvm2-libs x86_64 8:2.03.08-3.el8 base 1.1 M
  389. python3-dnf noarch 4.2.17-6.el8 base 521 k
  390. python3-dnf-plugins-core noarch 4.0.12-3.el8 base 203 k
  391. python3-hawkey x86_64 0.39.1-5.el8 base 99 k
  392. python3-libdnf x86_64 0.39.1-5.el8 base 689 k
  393. python3-librepo x86_64 1.11.0-2.el8 base 52 k
  394. python3-rpm x86_64 4.14.2-37.el8 base 156 k
  395. rpm x86_64 4.14.2-37.el8 base 540 k
  396. rpm-build-libs x86_64 4.14.2-37.el8 base 154 k
  397. rpm-libs x86_64 4.14.2-37.el8 base 337 k
  398. rpm-plugin-selinux x86_64 4.14.2-37.el8 base 75 k
  399. rpm-plugin-systemd-inhibit x86_64 4.14.2-37.el8 base 76 k
  400. yum noarch 4.2.17-6.el8 base 193 k
  401. Installing dependencies:
  402. libzstd x86_64 1.4.2-2.el8 base 260 k
  403. Transaction Summary
  404. =================================================================================================================================================
  405. Install 2 Packages
  406. Upgrade 25 Packages
  407. Total download size: 9.4 M
  408. Downloading Packages:
  409. (1/27): device-mapper-1.02.169-3.el8.x86_64.rpm 337 kB/s | 372 kB 00:01
  410. (2/27): yum-utils-4.0.12-3.el8.noarch.rpm 56 kB/s | 66 kB 00:01
  411. (3/27): libzstd-1.4.2-2.el8.x86_64.rpm 213 kB/s | 260 kB 00:01
  412. (4/27): device-mapper-event-libs-1.02.169-3.el8.x86_64.rpm 2.4 MB/s | 266 kB 00:00
  413. (5/27): device-mapper-event-1.02.169-3.el8.x86_64.rpm 964 kB/s | 267 kB 00:00
  414. (6/27): device-mapper-libs-1.02.169-3.el8.x86_64.rpm 1.5 MB/s | 405 kB 00:00
  415. (7/27): device-mapper-persistent-data-0.8.5-3.el8.x86_64.rpm 1.7 MB/s | 470 kB 00:00
  416. (8/27): dnf-4.2.17-6.el8.noarch.rpm 2.6 MB/s | 469 kB 00:00
  417. (9/27): dnf-data-4.2.17-6.el8.noarch.rpm 1.5 MB/s | 145 kB 00:00
  418. (10/27): dnf-plugins-core-4.0.12-3.el8.noarch.rpm 953 kB/s | 64 kB 00:00
  419. (11/27): libdnf-0.39.1-5.el8.x86_64.rpm 5.0 MB/s | 620 kB 00:00
  420. (12/27): libsolv-0.7.7-1.el8.x86_64.rpm 2.8 MB/s | 356 kB 00:00
  421. (13/27): librepo-1.11.0-2.el8.x86_64.rpm 508 kB/s | 90 kB 00:00
  422. (14/27): lvm2-2.03.08-3.el8.x86_64.rpm 11 MB/s | 1.5 MB 00:00
  423. (15/27): lvm2-libs-2.03.08-3.el8.x86_64.rpm 5.8 MB/s | 1.1 MB 00:00
  424. (16/27): python3-dnf-4.2.17-6.el8.noarch.rpm 2.4 MB/s | 521 kB 00:00
  425. (17/27): python3-hawkey-0.39.1-5.el8.x86_64.rpm 1.5 MB/s | 99 kB 00:00
  426. (18/27): python3-dnf-plugins-core-4.0.12-3.el8.noarch.rpm 996 kB/s | 203 kB 00:00
  427. (19/27): python3-libdnf-0.39.1-5.el8.x86_64.rpm 12 MB/s | 689 kB 00:00
  428. (20/27): python3-librepo-1.11.0-2.el8.x86_64.rpm 251 kB/s | 52 kB 00:00
  429. (21/27): rpm-4.14.2-37.el8.x86_64.rpm 3.0 MB/s | 540 kB 00:00
  430. (22/27): python3-rpm-4.14.2-37.el8.x86_64.rpm 732 kB/s | 156 kB 00:00
  431. (23/27): rpm-build-libs-4.14.2-37.el8.x86_64.rpm 1.8 MB/s | 154 kB 00:00
  432. (24/27): rpm-plugin-selinux-4.14.2-37.el8.x86_64.rpm 527 kB/s | 75 kB 00:00
  433. (25/27): rpm-libs-4.14.2-37.el8.x86_64.rpm 950 kB/s | 337 kB 00:00
  434. (26/27): yum-4.2.17-6.el8.noarch.rpm 620 kB/s | 193 kB 00:00
  435. (27/27): rpm-plugin-systemd-inhibit-4.14.2-37.el8.x86_64.rpm 184 kB/s | 76 kB 00:00
  436. -------------------------------------------------------------------------------------------------------------------------------------------------
  437. Total 3.5 MB/s | 9.4 MB 00:02
  438. Running transaction check
  439. Transaction check succeeded.
  440. Running transaction test
  441. Transaction test succeeded.
  442. Running transaction
  443. Preparing : 1/1
  444. Running scriptlet: libzstd-1.4.2-2.el8.x86_64 1/1
  445. Installing : libzstd-1.4.2-2.el8.x86_64 1/52
  446. Upgrading : librepo-1.11.0-2.el8.x86_64 2/52
  447. Upgrading : device-mapper-libs-8:1.02.169-3.el8.x86_64 3/52
  448. Upgrading : device-mapper-8:1.02.169-3.el8.x86_64 4/52
  449. Upgrading : device-mapper-event-libs-8:1.02.169-3.el8.x86_64 5/52
  450. Upgrading : device-mapper-event-8:1.02.169-3.el8.x86_64 6/52
  451. Running scriptlet: device-mapper-event-8:1.02.169-3.el8.x86_64 6/52
  452. Upgrading : lvm2-libs-8:2.03.08-3.el8.x86_64 7/52
  453. Upgrading : rpm-4.14.2-37.el8.x86_64 8/52
  454. Upgrading : rpm-libs-4.14.2-37.el8.x86_64 9/52
  455. Running scriptlet: rpm-libs-4.14.2-37.el8.x86_64 9/52
  456. Upgrading : libsolv-0.7.7-1.el8.x86_64 10/52
  457. Upgrading : libdnf-0.39.1-5.el8.x86_64 11/52
  458. Upgrading : python3-libdnf-0.39.1-5.el8.x86_64 12/52
  459. Upgrading : python3-hawkey-0.39.1-5.el8.x86_64 13/52
  460. Upgrading : rpm-build-libs-4.14.2-37.el8.x86_64 14/52
  461. Running scriptlet: rpm-build-libs-4.14.2-37.el8.x86_64 14/52
  462. Upgrading : python3-rpm-4.14.2-37.el8.x86_64 15/52
  463. Upgrading : rpm-plugin-systemd-inhibit-4.14.2-37.el8.x86_64 16/52
  464. Upgrading : dnf-data-4.2.17-6.el8.noarch 17/52
  465. Upgrading : python3-dnf-4.2.17-6.el8.noarch 18/52
  466. Upgrading : dnf-4.2.17-6.el8.noarch 19/52
  467. Running scriptlet: dnf-4.2.17-6.el8.noarch 19/52
  468. Upgrading : python3-dnf-plugins-core-4.0.12-3.el8.noarch 20/52
  469. Upgrading : dnf-plugins-core-4.0.12-3.el8.noarch 21/52
  470. Upgrading : device-mapper-persistent-data-0.8.5-3.el8.x86_64 22/52
  471. Upgrading : lvm2-8:2.03.08-3.el8.x86_64 23/52
  472. Running scriptlet: lvm2-8:2.03.08-3.el8.x86_64 23/52
  473. Installing : yum-utils-4.0.12-3.el8.noarch 24/52
  474. Upgrading : yum-4.2.17-6.el8.noarch 25/52
  475. Upgrading : rpm-plugin-selinux-4.14.2-37.el8.x86_64 26/52
  476. Upgrading : python3-librepo-1.11.0-2.el8.x86_64 27/52
  477. Cleanup : yum-4.0.9.2-5.el8.noarch 28/52
  478. Running scriptlet: dnf-4.0.9.2-5.el8.noarch 29/52
  479. Cleanup : dnf-4.0.9.2-5.el8.noarch 29/52
  480. Running scriptlet: dnf-4.0.9.2-5.el8.noarch 29/52
  481. Cleanup : dnf-plugins-core-4.0.2.2-3.el8.noarch 30/52
  482. Running scriptlet: lvm2-8:2.03.02-6.el8.x86_64 31/52
  483. Cleanup : lvm2-8:2.03.02-6.el8.x86_64 31/52
  484. Running scriptlet: lvm2-8:2.03.02-6.el8.x86_64 31/52
  485. Cleanup : lvm2-libs-8:2.03.02-6.el8.x86_64 32/52
  486. Running scriptlet: lvm2-libs-8:2.03.02-6.el8.x86_64 32/52
  487. Running scriptlet: device-mapper-event-8:1.02.155-6.el8.x86_64 33/52
  488. Cleanup : device-mapper-event-8:1.02.155-6.el8.x86_64 33/52
  489. Cleanup : device-mapper-event-libs-8:1.02.155-6.el8.x86_64 34/52
  490. Running scriptlet: device-mapper-event-libs-8:1.02.155-6.el8.x86_64 34/52
  491. Cleanup : rpm-plugin-selinux-4.14.2-9.el8.x86_64 35/52
  492. Cleanup : python3-dnf-plugins-core-4.0.2.2-3.el8.noarch 36/52
  493. Cleanup : python3-dnf-4.0.9.2-5.el8.noarch 37/52
  494. Cleanup : python3-hawkey-0.22.5-4.el8.x86_64 38/52
  495. Cleanup : python3-libdnf-0.22.5-4.el8.x86_64 39/52
  496. Cleanup : libdnf-0.22.5-4.el8.x86_64 40/52
  497. Cleanup : python3-rpm-4.14.2-9.el8.x86_64 41/52
  498. Cleanup : rpm-build-libs-4.14.2-9.el8.x86_64 42/52
  499. Running scriptlet: rpm-build-libs-4.14.2-9.el8.x86_64 42/52
  500. Cleanup : rpm-plugin-systemd-inhibit-4.14.2-9.el8.x86_64 43/52
  501. Cleanup : libsolv-0.6.35-6.el8.x86_64 44/52
  502. Cleanup : python3-librepo-1.9.2-1.el8.x86_64 45/52
  503. Cleanup : rpm-4.14.2-9.el8.x86_64 46/52
  504. Cleanup : rpm-libs-4.14.2-9.el8.x86_64 47/52
  505. Running scriptlet: rpm-libs-4.14.2-9.el8.x86_64 47/52
  506. Cleanup : device-mapper-libs-8:1.02.155-6.el8.x86_64 48/52
  507. Running scriptlet: device-mapper-libs-8:1.02.155-6.el8.x86_64 48/52
  508. Cleanup : device-mapper-8:1.02.155-6.el8.x86_64 49/52
  509. Cleanup : dnf-data-4.0.9.2-5.el8.noarch 50/52
  510. Cleanup : librepo-1.9.2-1.el8.x86_64 51/52
  511. Cleanup : device-mapper-persistent-data-0.7.6-1.el8.x86_64 52/52
  512. Running scriptlet: device-mapper-persistent-data-0.7.6-1.el8.x86_64 52/52
  513. Verifying : libzstd-1.4.2-2.el8.x86_64 1/52
  514. Verifying : yum-utils-4.0.12-3.el8.noarch 2/52
  515. Verifying : device-mapper-8:1.02.169-3.el8.x86_64 3/52
  516. Verifying : device-mapper-8:1.02.155-6.el8.x86_64 4/52
  517. Verifying : device-mapper-event-8:1.02.169-3.el8.x86_64 5/52
  518. Verifying : device-mapper-event-8:1.02.155-6.el8.x86_64 6/52
  519. Verifying : device-mapper-event-libs-8:1.02.169-3.el8.x86_64 7/52
  520. Verifying : device-mapper-event-libs-8:1.02.155-6.el8.x86_64 8/52
  521. Verifying : device-mapper-libs-8:1.02.169-3.el8.x86_64 9/52
  522. Verifying : device-mapper-libs-8:1.02.155-6.el8.x86_64 10/52
  523. Verifying : device-mapper-persistent-data-0.8.5-3.el8.x86_64 11/52
  524. Verifying : device-mapper-persistent-data-0.7.6-1.el8.x86_64 12/52
  525. Verifying : dnf-4.2.17-6.el8.noarch 13/52
  526. Verifying : dnf-4.0.9.2-5.el8.noarch 14/52
  527. Verifying : dnf-data-4.2.17-6.el8.noarch 15/52
  528. Verifying : dnf-data-4.0.9.2-5.el8.noarch 16/52
  529. Verifying : dnf-plugins-core-4.0.12-3.el8.noarch 17/52
  530. Verifying : dnf-plugins-core-4.0.2.2-3.el8.noarch 18/52
  531. Verifying : libdnf-0.39.1-5.el8.x86_64 19/52
  532. Verifying : libdnf-0.22.5-4.el8.x86_64 20/52
  533. Verifying : librepo-1.11.0-2.el8.x86_64 21/52
  534. Verifying : librepo-1.9.2-1.el8.x86_64 22/52
  535. Verifying : libsolv-0.7.7-1.el8.x86_64 23/52
  536. Verifying : libsolv-0.6.35-6.el8.x86_64 24/52
  537. Verifying : lvm2-8:2.03.08-3.el8.x86_64 25/52
  538. Verifying : lvm2-8:2.03.02-6.el8.x86_64 26/52
  539. Verifying : lvm2-libs-8:2.03.08-3.el8.x86_64 27/52
  540. Verifying : lvm2-libs-8:2.03.02-6.el8.x86_64 28/52
  541. Verifying : python3-dnf-4.2.17-6.el8.noarch 29/52
  542. Verifying : python3-dnf-4.0.9.2-5.el8.noarch 30/52
  543. Verifying : python3-dnf-plugins-core-4.0.12-3.el8.noarch 31/52
  544. Verifying : python3-dnf-plugins-core-4.0.2.2-3.el8.noarch 32/52
  545. Verifying : python3-hawkey-0.39.1-5.el8.x86_64 33/52
  546. Verifying : python3-hawkey-0.22.5-4.el8.x86_64 34/52
  547. Verifying : python3-libdnf-0.39.1-5.el8.x86_64 35/52
  548. Verifying : python3-libdnf-0.22.5-4.el8.x86_64 36/52
  549. Verifying : python3-librepo-1.11.0-2.el8.x86_64 37/52
  550. Verifying : python3-librepo-1.9.2-1.el8.x86_64 38/52
  551. Verifying : python3-rpm-4.14.2-37.el8.x86_64 39/52
  552. Verifying : python3-rpm-4.14.2-9.el8.x86_64 40/52
  553. Verifying : rpm-4.14.2-37.el8.x86_64 41/52
  554. Verifying : rpm-4.14.2-9.el8.x86_64 42/52
  555. Verifying : rpm-build-libs-4.14.2-37.el8.x86_64 43/52
  556. Verifying : rpm-build-libs-4.14.2-9.el8.x86_64 44/52
  557. Verifying : rpm-libs-4.14.2-37.el8.x86_64 45/52
  558. Verifying : rpm-libs-4.14.2-9.el8.x86_64 46/52
  559. Verifying : rpm-plugin-selinux-4.14.2-37.el8.x86_64 47/52
  560. Verifying : rpm-plugin-selinux-4.14.2-9.el8.x86_64 48/52
  561. Verifying : rpm-plugin-systemd-inhibit-4.14.2-37.el8.x86_64 49/52
  562. Verifying : rpm-plugin-systemd-inhibit-4.14.2-9.el8.x86_64 50/52
  563. Verifying : yum-4.2.17-6.el8.noarch 51/52
  564. Verifying : yum-4.0.9.2-5.el8.noarch 52/52
  565. Upgraded:
  566. 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_64
  567. device-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-6.el8.noarch
  568. dnf-data-4.2.17-6.el8.noarch dnf-plugins-core-4.0.12-3.el8.noarch libdnf-0.39.1-5.el8.x86_64
  569. librepo-1.11.0-2.el8.x86_64 libsolv-0.7.7-1.el8.x86_64 lvm2-8:2.03.08-3.el8.x86_64
  570. lvm2-libs-8:2.03.08-3.el8.x86_64 python3-dnf-4.2.17-6.el8.noarch python3-dnf-plugins-core-4.0.12-3.el8.noarch
  571. python3-hawkey-0.39.1-5.el8.x86_64 python3-libdnf-0.39.1-5.el8.x86_64 python3-librepo-1.11.0-2.el8.x86_64
  572. python3-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_64
  573. rpm-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_64
  574. yum-4.2.17-6.el8.noarch
  575. Installed:
  576. yum-utils-4.0.12-3.el8.noarch libzstd-1.4.2-2.el8.x86_64
  577. Complete!
  578. [root@liabio yum.repos.d]# yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
  579. Adding repo from: https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
  580. [root@liabio yum.repos.d]# yum -y install docker-ce
  581. Docker CE Stable - x86_64 124 kB/s | 25 kB 00:00
  582. Last metadata expiration check: 0:00:01 ago on Wed 29 Jul 2020 11:57:52 PM HKT.
  583. Error:
  584. Problem: package docker-ce-3:19.03.12-3.el7.x86_64 requires containerd.io >= 1.2.2-3, but none of the providers can be installed
  585. - cannot install the best candidate for the job
  586. - package containerd.io-1.2.10-3.2.el7.x86_64 is filtered out by modular filtering
  587. - package containerd.io-1.2.13-3.1.el7.x86_64 is filtered out by modular filtering
  588. - package containerd.io-1.2.13-3.2.el7.x86_64 is filtered out by modular filtering
  589. - package containerd.io-1.2.2-3.3.el7.x86_64 is filtered out by modular filtering
  590. - package containerd.io-1.2.2-3.el7.x86_64 is filtered out by modular filtering
  591. - package containerd.io-1.2.4-3.1.el7.x86_64 is filtered out by modular filtering
  592. - package containerd.io-1.2.5-3.1.el7.x86_64 is filtered out by modular filtering
  593. - package containerd.io-1.2.6-3.3.el7.x86_64 is filtered out by modular filtering
  594. (try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
  595. [root@liabio yum.repos.d]# wget https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.e
  596. --2020-07-29 23:58:12-- https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.e
  597. Resolving download.docker.com (download.docker.com)... 13.224.153.78, 13.224.153.43, 13.224.153.27, ...
  598. Connecting to download.docker.com (download.docker.com)|13.224.153.78|:443... connected.
  599. HTTP request sent, awaiting response... 404 Not Found
  600. 2020-07-29 23:58:13 ERROR 404: Not Found.
  601. [root@liabio 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
  602. --2020-07-29 23:58:18-- https://download.docker.com/linux/centos/7/x86_64/edge/Packages/containerd.io-1.2.6-3.3.el7.x86_64.rpm
  603. Resolving download.docker.com (download.docker.com)... 13.224.153.78, 13.224.153.32, 13.224.153.43, ...
  604. Connecting to download.docker.com (download.docker.com)|13.224.153.78|:443... connected.
  605. HTTP request sent, awaiting response... 200 OK
  606. Length: 27119348 (26M) [application/x-redhat-package-manager]
  607. Saving to: ‘containerd.io-1.2.6-3.3.el7.x86_64.rpm’
  608. containerd.io-1.2.6-3.3.el7.x86_64.r 100%[===================================================================>] 25.86M 10.7MB/s in 2.4s
  609. 2020-07-29 23:58:21 (10.7 MB/s) - ‘containerd.io-1.2.6-3.3.el7.x86_64.rpm’ saved [27119348/27119348]
  610. [root@liabio yum.repos.d]# yum install containerd.io-1.2.6-3.3.el7.x86_64.rpm
  611. Last metadata expiration check: 0:00:35 ago on Wed 29 Jul 2020 11:57:52 PM HKT.
  612. Dependencies resolved.
  613. =================================================================================================================================================
  614. Package Architecture Version Repository Size
  615. =================================================================================================================================================
  616. Installing:
  617. containerd.io x86_64 1.2.6-3.3.el7 @commandline 26 M
  618. replacing runc.x86_64 1.0.0-55.rc5.dev.git2abd837.module_el8.0.0+58+91b614e7
  619. Transaction Summary
  620. =================================================================================================================================================
  621. Install 1 Package
  622. Total size: 26 M
  623. Is this ok [y/N]: y
  624. Downloading Packages:
  625. Running transaction check
  626. Transaction check succeeded.
  627. Running transaction test
  628. Transaction test succeeded.
  629. Running transaction
  630. Preparing : 1/1
  631. Installing : containerd.io-1.2.6-3.3.el7.x86_64 1/2
  632. Running scriptlet: containerd.io-1.2.6-3.3.el7.x86_64 1/2
  633. Obsoleting : runc-1.0.0-55.rc5.dev.git2abd837.module_el8.0.0+58+91b614e7.x86_64 2/2
  634. Running scriptlet: runc-1.0.0-55.rc5.dev.git2abd837.module_el8.0.0+58+91b614e7.x86_64 2/2
  635. Verifying : containerd.io-1.2.6-3.3.el7.x86_64 1/2
  636. Verifying : runc-1.0.0-55.rc5.dev.git2abd837.module_el8.0.0+58+91b614e7.x86_64 2/2
  637. Installed:
  638. containerd.io-1.2.6-3.3.el7.x86_64
  639. Complete!
  640. [root@liabio yum.repos.d]# docker info
  641. -bash: docker: command not found
  642. [root@liabio yum.repos.d]# yum -y install docker-ce
  643. Last metadata expiration check: 0:00:57 ago on Wed 29 Jul 2020 11:57:52 PM HKT.
  644. Dependencies resolved.
  645. =================================================================================================================================================
  646. Package Architecture Version Repository Size
  647. =================================================================================================================================================
  648. Installing:
  649. docker-ce x86_64 3:19.03.12-3.el7 docker-ce-stable 24 M
  650. Installing dependencies:
  651. docker-ce-cli x86_64 1:19.03.12-3.el7 docker-ce-stable 38 M
  652. libcgroup x86_64 0.41-19.el8 base 70 k
  653. Transaction Summary
  654. =================================================================================================================================================
  655. Install 3 Packages
  656. Total download size: 62 M
  657. Installed size: 263 M
  658. Downloading Packages:
  659. (1/3): libcgroup-0.41-19.el8.x86_64.rpm 71 kB/s | 70 kB 00:00
  660. (2/3): docker-ce-cli-19.03.12-3.el7.x86_64.rpm 3.8 MB/s | 38 MB 00:09
  661. (3/3): docker-ce-19.03.12-3.el7.x86_64.rpm 2.4 MB/s | 24 MB 00:10
  662. -------------------------------------------------------------------------------------------------------------------------------------------------
  663. Total 6.2 MB/s | 62 MB 00:10
  664. warning: /var/cache/dnf/docker-ce-stable-3e5647bf4960c796/packages/docker-ce-19.03.12-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
  665. Docker CE Stable - x86_64 8.9 kB/s | 1.6 kB 00:00
  666. Importing GPG key 0x621E9F35:
  667. Userid : "Docker Release (CE rpm) <docker@docker.com>"
  668. Fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
  669. From : https://mirrors.aliyun.com/docker-ce/linux/centos/gpg
  670. Key imported successfully
  671. Running transaction check
  672. Transaction check succeeded.
  673. Running transaction test
  674. Transaction test succeeded.
  675. Running transaction
  676. Preparing : 1/1
  677. Installing : docker-ce-cli-1:19.03.12-3.el7.x86_64 1/3
  678. Running scriptlet: docker-ce-cli-1:19.03.12-3.el7.x86_64 1/3
  679. Running scriptlet: libcgroup-0.41-19.el8.x86_64 2/3
  680. Installing : libcgroup-0.41-19.el8.x86_64 2/3
  681. Running scriptlet: libcgroup-0.41-19.el8.x86_64 2/3
  682. Installing : docker-ce-3:19.03.12-3.el7.x86_64 3/3
  683. Running scriptlet: docker-ce-3:19.03.12-3.el7.x86_64 3/3
  684. Verifying : libcgroup-0.41-19.el8.x86_64 1/3
  685. Verifying : docker-ce-3:19.03.12-3.el7.x86_64 2/3
  686. Verifying : docker-ce-cli-1:19.03.12-3.el7.x86_64 3/3
  687. Installed:
  688. docker-ce-3:19.03.12-3.el7.x86_64 docker-ce-cli-1:19.03.12-3.el7.x86_64 libcgroup-0.41-19.el8.x86_64
  689. Complete!
  690. [root@liabio yum.repos.d]# docker info
  691. Client:
  692. Debug Mode: false
  693. Server:
  694. ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  695. errors pretty printing info
  696. [root@liabio yum.repos.d]# mkdir -p /etc/docker
  697. [root@liabio yum.repos.d]# tee /etc/docker/daemon.json <<-'EOF'
  698. > {
  699. > "registry-mirrors": ["https://fl791z1h.mirror.aliyuncs.com"]
  700. > }
  701. > EOF
  702. {
  703. "registry-mirrors": ["https://fl791z1h.mirror.aliyuncs.com"]
  704. }
  705. [root@liabio yum.repos.d]# cat /etc/docker/daemon.json
  706. {
  707. "registry-mirrors": ["https://fl791z1h.mirror.aliyuncs.com"]
  708. }
  709. [root@liabio yum.repos.d]# cat <<EOF > /etc/yum.repos.d/kubernetes.repo
  710. > [kubernetes]
  711. > name=Kubernetes
  712. > baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
  713. > enabled=1
  714. > gpgcheck=1
  715. > repo_gpgcheck=1
  716. > gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
  717. > EOF
  718. [root@liabio yum.repos.d]# yum install kubectl kubelet kubeadm
  719. Kubernetes 3.5 kB/s | 454 B 00:00
  720. Kubernetes 33 kB/s | 1.8 kB 00:00
  721. Importing GPG key 0xA7317B0F:
  722. Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"
  723. Fingerprint: D0BC 747F D8CA F711 7500 D6FA 3746 C208 A731 7B0F
  724. From : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
  725. Is this ok [y/N]: y^CImporting GPG key 0xBA07F4FB:
  726. Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"
  727. Fingerprint: 54A6 47F9 048D 5688 D7DA 2ABE 6A03 0B21 BA07 F4FB
  728. From : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
  729. Is this ok [y/N]: ^CKubernetes [ === ] --- B/s | ^CError: SWIG director method error. Error detected when calling 'RepoCB.progress'
  730. [root@liabio yum.repos.d]# ^C
  731. [root@liabio yum.repos.d]# yum list kubectl
  732. Kubernetes 863 B/s | 454 B 00:00
  733. Kubernetes 113 kB/s | 1.8 kB 00:00
  734. Importing GPG key 0xA7317B0F:
  735. Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"
  736. Fingerprint: D0BC 747F D8CA F711 7500 D6FA 3746 C208 A731 7B0F
  737. From : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
  738. Is this ok [y/N]: y
  739. Importing GPG key 0xBA07F4FB:
  740. Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"
  741. Fingerprint: 54A6 47F9 048D 5688 D7DA 2ABE 6A03 0B21 BA07 F4FB
  742. From : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
  743. Is this ok [y/N]: y
  744. Kubernetes 4.5 kB/s | 975 B 00:00
  745. Importing GPG key 0x3E1BA8D5:
  746. Userid : "Google Cloud Packages RPM Signing Key <gc-team@google.com>"
  747. Fingerprint: 3749 E1BA 95A8 6CE0 5454 6ED2 F09C 394C 3E1B A8D5
  748. From : https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
  749. Is this ok [y/N]: y
  750. Kubernetes 138 kB/s | 99 kB 00:00
  751. Available Packages
  752. kubectl.x86_64 1.18.6-0 kubernetes
  753. [root@liabio yum.repos.d]# yum install kubectl kubelet kubeadm
  754. Last metadata expiration check: 0:00:06 ago on Thu 30 Jul 2020 12:01:57 AM HKT.
  755. Dependencies resolved.
  756. =================================================================================================================================================
  757. Package Architecture Version Repository Size
  758. =================================================================================================================================================
  759. Installing:
  760. kubeadm x86_64 1.18.6-0 kubernetes 8.8 M
  761. kubectl x86_64 1.18.6-0 kubernetes 9.5 M
  762. kubelet x86_64 1.18.6-0 kubernetes 21 M
  763. Installing dependencies:
  764. conntrack-tools x86_64 1.4.4-10.el8 base 204 k
  765. cri-tools x86_64 1.13.0-0 kubernetes 5.1 M
  766. kubernetes-cni x86_64 0.8.6-0 kubernetes 18 M
  767. libnetfilter_cthelper x86_64 1.0.0-15.el8 base 24 k
  768. libnetfilter_cttimeout x86_64 1.0.0-11.el8 base 24 k
  769. libnetfilter_queue x86_64 1.0.2-11.el8 base 30 k
  770. socat x86_64 1.7.3.3-2.el8 AppStream 302 k
  771. Transaction Summary
  772. =================================================================================================================================================
  773. Install 10 Packages
  774. Total download size: 62 M
  775. Installed size: 265 M
  776. Is this ok [y/N]: y
  777. Downloading Packages:
  778. (1/10): libnetfilter_cttimeout-1.0.0-11.el8.x86_64.rpm 39 kB/s | 24 kB 00:00
  779. (2/10): conntrack-tools-1.4.4-10.el8.x86_64.rpm 325 kB/s | 204 kB 00:00
  780. (3/10): libnetfilter_cthelper-1.0.0-15.el8.x86_64.rpm 36 kB/s | 24 kB 00:00
  781. (4/10): 14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm 15 MB/s | 5.1 MB 00:00
  782. (5/10): socat-1.7.3.3-2.el8.x86_64.rpm 596 kB/s | 302 kB 00:00
  783. (6/10): libnetfilter_queue-1.0.2-11.el8.x86_64.rpm 47 kB/s | 30 kB 00:00
  784. (7/10): 20eefd52d2aee73b3c52abc3d43ed689cb1d79387f5d627faa4a1acc7b4406f9-kubeadm-1.18.6-0.x86_64.rpm 7.1 MB/s | 8.8 MB 00:01
  785. (8/10): 9fe14ad1137ad4e42eca5df1df99c735098e1ef43ead5184ee2af108d31ecb44-kubectl-1.18.6-0.x86_64.rpm 2.8 MB/s | 9.5 MB 00:03
  786. (9/10): 029bc0d7b2112098bdfa3f4621f2ce325d7a2c336f98fa80395a3a112ab2a713-kubernetes-cni-0.8.6-0.x86_64.rpm 2.4 MB/s | 18 MB 00:07
  787. (10/10): 155c953863e5dc40f1d0cd5010d4df91b45d8c62edc5e93f7fc508516015fcb1-kubelet-1.18.6-0.x86_64.rpm 2.5 MB/s | 21 MB 00:08
  788. -------------------------------------------------------------------------------------------------------------------------------------------------
  789. Total 6.4 MB/s | 62 MB 00:09
  790. warning: /var/cache/dnf/kubernetes-d03a9fe438e18cac/packages/14bfe6e75a9efc8eca3f638eb22c7e2ce759c67f95b43b16fae4ebabde1549f3-cri-tools-1.13.0-0.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 3e1ba8d5: NOKEY
  791. Kubernetes 87 kB/s | 1.8 kB 00:00
  792. Importing GPG key 0xA7317B0F:
  793. Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"
  794. Fingerprint: D0BC 747F D8CA F711 7500 D6FA 3746 C208 A731 7B0F
  795. From : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
  796. Is this ok [y/N]: y
  797. Key imported successfully
  798. Importing GPG key 0xBA07F4FB:
  799. Userid : "Google Cloud Packages Automatic Signing Key <gc-team@google.com>"
  800. Fingerprint: 54A6 47F9 048D 5688 D7DA 2ABE 6A03 0B21 BA07 F4FB
  801. From : https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg
  802. Is this ok [y/N]: y
  803. Key imported successfully
  804. Kubernetes 45 kB/s | 975 B 00:00
  805. Importing GPG key 0x3E1BA8D5:
  806. Userid : "Google Cloud Packages RPM Signing Key <gc-team@google.com>"
  807. Fingerprint: 3749 E1BA 95A8 6CE0 5454 6ED2 F09C 394C 3E1B A8D5
  808. From : https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
  809. Is this ok [y/N]: y
  810. Key imported successfully
  811. Running transaction check
  812. Transaction check succeeded.
  813. Running transaction test
  814. Transaction test succeeded.
  815. Running transaction
  816. Preparing : 1/1
  817. Installing : kubectl-1.18.6-0.x86_64 1/10
  818. Installing : cri-tools-1.13.0-0.x86_64 2/10
  819. Installing : socat-1.7.3.3-2.el8.x86_64 3/10
  820. Installing : libnetfilter_queue-1.0.2-11.el8.x86_64 4/10
  821. Running scriptlet: libnetfilter_queue-1.0.2-11.el8.x86_64 4/10
  822. Installing : libnetfilter_cttimeout-1.0.0-11.el8.x86_64 5/10
  823. Running scriptlet: libnetfilter_cttimeout-1.0.0-11.el8.x86_64 5/10
  824. Installing : libnetfilter_cthelper-1.0.0-15.el8.x86_64 6/10
  825. Running scriptlet: libnetfilter_cthelper-1.0.0-15.el8.x86_64 6/10
  826. Installing : conntrack-tools-1.4.4-10.el8.x86_64 7/10
  827. Running scriptlet: conntrack-tools-1.4.4-10.el8.x86_64 7/10
  828. Installing : kubernetes-cni-0.8.6-0.x86_64 8/10
  829. Installing : kubelet-1.18.6-0.x86_64 9/10
  830. Installing : kubeadm-1.18.6-0.x86_64 10/10
  831. Running scriptlet: kubeadm-1.18.6-0.x86_64 10/10
  832. Verifying : conntrack-tools-1.4.4-10.el8.x86_64 1/10
  833. Verifying : libnetfilter_cthelper-1.0.0-15.el8.x86_64 2/10
  834. Verifying : libnetfilter_cttimeout-1.0.0-11.el8.x86_64 3/10
  835. Verifying : libnetfilter_queue-1.0.2-11.el8.x86_64 4/10
  836. Verifying : socat-1.7.3.3-2.el8.x86_64 5/10
  837. Verifying : cri-tools-1.13.0-0.x86_64 6/10
  838. Verifying : kubeadm-1.18.6-0.x86_64 7/10
  839. Verifying : kubectl-1.18.6-0.x86_64 8/10
  840. Verifying : kubelet-1.18.6-0.x86_64 9/10
  841. Verifying : kubernetes-cni-0.8.6-0.x86_64 10/10
  842. Installed:
  843. conntrack-tools-1.4.4-10.el8.x86_64 cri-tools-1.13.0-0.x86_64 kubeadm-1.18.6-0.x86_64
  844. kubectl-1.18.6-0.x86_64 kubelet-1.18.6-0.x86_64 kubernetes-cni-0.8.6-0.x86_64
  845. libnetfilter_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_64
  846. socat-1.7.3.3-2.el8.x86_64
  847. Complete!
  848. [root@liabio yum.repos.d]# systemctl enable kubelet
  849. Created symlink /etc/systemd/system/multi-user.target.wants/kubelet.service → /usr/lib/systemd/system/kubelet.service.
  850. [root@liabio yum.repos.d]# systemctl enable docker
  851. Created symlink /etc/systemd/system/multi-user.target.wants/docker.service → /usr/lib/systemd/system/docker.service.
  852. [root@liabio yum.repos.d]# ifconfig
  853. eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1454
  854. inet 10.0.9.52 netmask 255.255.240.0 broadcast 10.0.15.255
  855. inet6 fe80::5054:ff:fefa:f95 prefixlen 64 scopeid 0x20<link>
  856. ether 52:54:00:fa:0f:95 txqueuelen 1000 (Ethernet)
  857. RX packets 754711 bytes 1015384856 (968.3 MiB)
  858. RX errors 0 dropped 0 overruns 0 frame 0
  859. TX packets 335978 bytes 68631914 (65.4 MiB)
  860. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  861. eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1454
  862. ether 52:54:00:fa:0f:95 txqueuelen 1000 (Ethernet)
  863. RX packets 0 bytes 0 (0.0 B)
  864. RX errors 0 dropped 0 overruns 0 frame 0
  865. TX packets 2 bytes 180 (180.0 B)
  866. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  867. eth2: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1454
  868. ether 52:54:00:fa:0f:95 txqueuelen 1000 (Ethernet)
  869. RX packets 754711 bytes 1015384856 (968.3 MiB)
  870. RX errors 0 dropped 0 overruns 0 frame 0
  871. TX packets 335976 bytes 68631734 (65.4 MiB)
  872. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  873. lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
  874. inet 127.0.0.1 netmask 255.0.0.0
  875. inet6 ::1 prefixlen 128 scopeid 0x10<host>
  876. loop txqueuelen 1000 (Local Loopback)
  877. RX packets 0 bytes 0 (0.0 B)
  878. RX errors 0 dropped 0 overruns 0 frame 0
  879. TX packets 0 bytes 0 (0.0 B)
  880. TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
  881. [root@liabio yum.repos.d]# kubeadm init --kubernetes-version=1.18.6 \
  882. > --apiserver-advertise-address=10.0.9.52 \
  883. > --image-repository registry.aliyuncs.com/google_containers \
  884. > --service-cidr=10.10.0.0/16 --pod-network-cidr=192.168.0.0/16
  885. W0730 00:03:30.359801 42922 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
  886. [init] Using Kubernetes version: v1.18.6
  887. [preflight] Running pre-flight checks
  888. [WARNING FileExisting-tc]: tc not found in system path
  889. [preflight] The system verification failed. Printing the output from the verification:
  890. KERNEL_VERSION: 4.18.0-147.5.1.el8_1.x86_64
  891. CONFIG_NAMESPACES: enabled
  892. CONFIG_NET_NS: enabled
  893. CONFIG_PID_NS: enabled
  894. CONFIG_IPC_NS: enabled
  895. CONFIG_UTS_NS: enabled
  896. CONFIG_CGROUPS: enabled
  897. CONFIG_CGROUP_CPUACCT: enabled
  898. CONFIG_CGROUP_DEVICE: enabled
  899. CONFIG_CGROUP_FREEZER: enabled
  900. CONFIG_CGROUP_SCHED: enabled
  901. CONFIG_CPUSETS: enabled
  902. CONFIG_MEMCG: enabled
  903. CONFIG_INET: enabled
  904. CONFIG_EXT4_FS: enabled (as module)
  905. CONFIG_PROC_FS: enabled
  906. CONFIG_NETFILTER_XT_TARGET_REDIRECT: enabled (as module)
  907. CONFIG_NETFILTER_XT_MATCH_COMMENT: enabled (as module)
  908. CONFIG_OVERLAY_FS: enabled (as module)
  909. CONFIG_AUFS_FS: not set - Required for aufs.
  910. CONFIG_BLK_DEV_DM: enabled (as module)
  911. OS: Linux
  912. CGROUPS_CPU: enabled
  913. CGROUPS_CPUACCT: enabled
  914. CGROUPS_CPUSET: enabled
  915. CGROUPS_DEVICES: enabled
  916. CGROUPS_FREEZER: enabled
  917. CGROUPS_MEMORY: enabled
  918. error execution phase preflight: [preflight] Some fatal errors occurred:
  919. [ERROR CRI]: container runtime is not running: output: Client:
  920. Debug Mode: false
  921. Server:
  922. ERROR: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
  923. errors pretty printing info
  924. , error: exit status 1
  925. [ERROR Service-Docker]: docker service is not active, please run 'systemctl start docker.service'
  926. [ERROR IsDockerSystemdCheck]: cannot execute 'docker info -f {{.CgroupDriver}}': exit status 2
  927. [ERROR FileContent--proc-sys-net-bridge-bridge-nf-call-iptables]: /proc/sys/net/bridge/bridge-nf-call-iptables does not exist
  928. [ERROR FileContent--proc-sys-net-ipv4-ip_forward]: /proc/sys/net/ipv4/ip_forward contents are not set to 1
  929. [ERROR SystemVerification]: error verifying Docker info: "Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"
  930. [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
  931. To see the stack trace of this error execute with --v=5 or higher
  932. [root@liabio yum.repos.d]# systemctl start docker
  933. [root@liabio 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
  934. W0730 00:03:56.890811 43173 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
  935. [init] Using Kubernetes version: v1.18.6
  936. [preflight] Running pre-flight checks
  937. [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/
  938. [WARNING FileExisting-tc]: tc not found in system path
  939. [preflight] Pulling images required for setting up a Kubernetes cluster
  940. [preflight] This might take a minute or two, depending on the speed of your internet connection
  941. [preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
  942. error execution phase preflight: [preflight] Some fatal errors occurred:
  943. [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-apiserver:v1.18.6: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/kube-apiserver:v1.18.6 not found: manifest unknown: manifest unknown
  944. , error: exit status 1
  945. [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-controller-manager:v1.18.6: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/kube-controller-manager:v1.18.6 not found: manifest unknown: manifest unknown
  946. , error: exit status 1
  947. [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-scheduler:v1.18.6: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/kube-scheduler:v1.18.6 not found: manifest unknown: manifest unknown
  948. , error: exit status 1
  949. [ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-proxy:v1.18.6: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/kube-proxy:v1.18.6 not found: manifest unknown: manifest unknown
  950. , error: exit status 1
  951. [preflight] If you know what you are doing, you can make a check non-fatal with `--ignore-preflight-errors=...`
  952. To see the stack trace of this error execute with --v=5 or higher
  953. [root@liabio yum.repos.d]# kubeadm init --kubernetes-version=1.18.6 --apiserver-advertise-address=10.0.9.52 --service-cidr=10.10.0.0/16 --pod-network-cidr=192.168.0.0/16
  954. W0730 00:05:30.760839 43625 configset.go:202] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io]
  955. [init] Using Kubernetes version: v1.18.6
  956. [preflight] Running pre-flight checks
  957. [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/
  958. [WARNING FileExisting-tc]: tc not found in system path
  959. [preflight] Pulling images required for setting up a Kubernetes cluster
  960. [preflight] This might take a minute or two, depending on the speed of your internet connection
  961. [preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
  962. [kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env"
  963. [kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml"
  964. [kubelet-start] Starting the kubelet
  965. [certs] Using certificateDir folder "/etc/kubernetes/pki"
  966. [certs] Generating "ca" certificate and key
  967. [certs] Generating "apiserver" certificate and key
  968. [certs] apiserver serving cert is signed for DNS names [liabio kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.10.0.1 10.0.9.52]
  969. [certs] Generating "apiserver-kubelet-client" certificate and key
  970. [certs] Generating "front-proxy-ca" certificate and key
  971. [certs] Generating "front-proxy-client" certificate and key
  972. [certs] Generating "etcd/ca" certificate and key
  973. [certs] Generating "etcd/server" certificate and key
  974. [certs] etcd/server serving cert is signed for DNS names [liabio localhost] and IPs [10.0.9.52 127.0.0.1 ::1]
  975. [certs] Generating "etcd/peer" certificate and key
  976. [certs] etcd/peer serving cert is signed for DNS names [liabio localhost] and IPs [10.0.9.52 127.0.0.1 ::1]
  977. [certs] Generating "etcd/healthcheck-client" certificate and key
  978. [certs] Generating "apiserver-etcd-client" certificate and key
  979. [certs] Generating "sa" key and public key
  980. [kubeconfig] Using kubeconfig folder "/etc/kubernetes"
  981. [kubeconfig] Writing "admin.conf" kubeconfig file
  982. [kubeconfig] Writing "kubelet.conf" kubeconfig file
  983. [kubeconfig] Writing "controller-manager.conf" kubeconfig file
  984. [kubeconfig] Writing "scheduler.conf" kubeconfig file
  985. [control-plane] Using manifest folder "/etc/kubernetes/manifests"
  986. [control-plane] Creating static Pod manifest for "kube-apiserver"
  987. [control-plane] Creating static Pod manifest for "kube-controller-manager"
  988. W0730 00:05:57.101185 43625 manifests.go:225] the default kube-apiserver authorization-mode is "Node,RBAC"; using "Node,RBAC"
  989. [control-plane] Creating static Pod manifest for "kube-scheduler"
  990. W0730 00:05:57.102095 43625 manifests.go:225] the default kube-apiserver authorization-mode is "Node,RBAC"; using "Node,RBAC"
  991. [etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests"
  992. [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
  993. [apiclient] All control plane components are healthy after 22.003180 seconds
  994. [upload-config] Storing the configuration used in ConfigMap "kubeadm-config" in the "kube-system" Namespace
  995. [kubelet] Creating a ConfigMap "kubelet-config-1.18" in namespace kube-system with the configuration for the kubelets in the cluster
  996. [upload-certs] Skipping phase. Please see --upload-certs
  997. [mark-control-plane] Marking the node liabio as control-plane by adding the label "node-role.kubernetes.io/master=''"
  998. [mark-control-plane] Marking the node liabio as control-plane by adding the taints [node-role.kubernetes.io/master:NoSchedule]
  999. [bootstrap-token] Using token: ppjclx.4wu4b15r6ey1p3om
  1000. [bootstrap-token] Configuring bootstrap tokens, cluster-info ConfigMap, RBAC Roles
  1001. [bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to get nodes
  1002. [bootstrap-token] configured RBAC rules to allow Node Bootstrap tokens to post CSRs in order for nodes to get long term certificate credentials
  1003. [bootstrap-token] configured RBAC rules to allow the csrapprover controller automatically approve CSRs from a Node Bootstrap Token
  1004. [bootstrap-token] configured RBAC rules to allow certificate rotation for all node client certificates in the cluster
  1005. [bootstrap-token] Creating the "cluster-info" ConfigMap in the "kube-public" namespace
  1006. [kubelet-finalize] Updating "/etc/kubernetes/kubelet.conf" to point to a rotatable kubelet client certificate and key
  1007. [addons] Applied essential addon: CoreDNS
  1008. [addons] Applied essential addon: kube-proxy
  1009. Your Kubernetes control-plane has initialized successfully!
  1010. To start using your cluster, you need to run the following as a regular user:
  1011. mkdir -p $HOME/.kube
  1012. sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  1013. sudo chown $(id -u):$(id -g) $HOME/.kube/config
  1014. You should now deploy a pod network to the cluster.
  1015. Run "kubectl apply -f [podnetwork].yaml" with one of the options listed at:
  1016. https://kubernetes.io/docs/concepts/cluster-administration/addons/
  1017. Then you can join any number of worker nodes by running the following on each as root:
  1018. kubeadm join 10.0.9.52:6443 --token ppjclx.4wu4b15r6ey1p3om \
  1019. --discovery-token-ca-cert-hash sha256:3ee4223ba870d1f1597d2fc6f98002f8d103a75340c5a7818186ef3aa33171f3
  1020. [root@liabio yum.repos.d]#
  1021. [root@liabio yum.repos.d]# mkdir -p $HOME/.kube
  1022. [root@liabio yum.repos.d]# sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
  1023. [root@liabio yum.repos.d]# sudo chown $(id -u):$(id -g) $HOME/.kube/config
  1024. [root@liabio ~]# echo "source <(kubectl completion bash)" >> ~/.bashrc

参考

https://www.kubernetes.org.cn/7189.html