Oh_My_Ada 2020-07-13 22:47:00
①首先我把Ubuntu内部的源都改成了国内阿里云镜像
Oh_My_Ada 2020-07-13 22:47:18
虽然我不知道这一步有没有影响,反正下载速度是挺快的
Oh_My_Ada 2020-07-13 22:47:28
参考资料https://www.cnblogs.com/zhishifenzi/p/9559259.html
Oh_My_Ada 2020-07-13 22:47:58
②然后我就装了docker.io
Oh_My_Ada 2020-07-13 22:48:05
Oh_My_Ada 2020-07-13 22:48:33
安好之后,查看版本为
Oh_My_Ada 2020-07-13 22:48:36
Oh_My_Ada 2020-07-13 22:48:59
③之后我安装了nvidia-docker2
Oh_My_Ada 2020-07-13 22:49:23
参考资料https://blog.csdn.net/BigData_Mining/article/details/99681168
Oh_My_Ada 2020-07-13 22:49:40
Oh_My_Ada 2020-07-13 22:49:46
Oh_My_Ada 2020-07-13 22:49:48
这是截图
Oh_My_Ada 2020-07-13 22:50:54
④之后装那三个,首先把地址添加进去,然后update,直接装就行
Oh_My_Ada 2020-07-13 22:51:39
参考资料:
Oh_My_Ada 2020-07-13 22:51:42
Oh_My_Ada 2020-07-13 22:51:47
https://blog.csdn.net/happyworld1/article/details/106383464?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
Oh_My_Ada 2020-07-13 22:52:45
⑤拉取镜像,从阿里云里拉,我装的是1.18.3
Oh_My_Ada 2020-07-13 22:52:58
Oh_My_Ada 2020-07-13 22:53:02
整一个这样的文件
Oh_My_Ada 2020-07-13 22:53:56
然后sudo bash ./k8s_cript
Oh_My_Ada 2020-07-13 22:54:04
就能运行这个脚本
Oh_My_Ada 2020-07-13 22:54:24
参考资料
Oh_My_Ada 2020-07-13 22:54:31
Oh_My_Ada 2020-07-13 22:54:34
https://blog.csdn.net/BigData_Mining/article/details/98956971?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.nonecase
Oh_My_Ada 2020-07-13 22:55:12
⑥init
Oh_My_Ada 2020-07-13 22:55:19
我使用的是这个命令
Oh_My_Ada 2020-07-13 22:55:27
Oh_My_Ada 2020-07-13 22:55:45
然后就能成功
Oh_My_Ada 2020-07-13 22:56:10
Oh_My_Ada 2020-07-13 22:57:23
最后还要执行一下这三个命令
Oh_My_Ada 2020-07-13 22:57:25
Oh_My_Ada 2020-07-13 22:57:54
然后kubernetes就装好了,下面就可以安装flannel网络
Oh_My_Ada 2020-07-13 23:17:31
还有,大家记得sudo swapoff -a
09-02
2万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-27
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
09-05