kubeadm init初始化报错解决,亲测
2024-08-26 22:05:56
[preflight] You can also perform this action in beforehand using 'kubeadm config images pull'
error execution phase preflight: [preflight] Some fatal errors occurred:
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-apiserver:v1.15.1: output: Error response from daemon:
Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-controller-manager:v1.15.1: output: Error response from
daemon: Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-scheduler:v1.15.1: output: Error response from daemon:
Get https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/kube-proxy:v1.15.1: output: Error response from daemon: Get
https://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/pause:3.1: output: Error response from daemon: Get https://r
egistry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/etcd:3.3.10: output: Error response from daemon: Get https:/
/registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused, error: exit status 1
[ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/coredns:1.3.1: output: Error response from daemon: Get https
://registry.aliyuncs.com/v2/: proxyconnect tcp: dial tcp 172.96.236.117:10080: connect: connection refused
- 解决
在你原来运行命令的基础上,加如下,指定国内的源
[root@kmaster ~]# kubeadm init --image-repository registry.aliyuncs.com/google_containers --ignore-preflight-errors=Swap
另外
如果你的/usr/lib/systemd/system/docker.service
文件有类似如下两行配置
Environment="HTTPS_PROXY=http://www.ik8s.io:10080"
Environment="NO_PROXY=127.0.0.0/8,172.20.0.0/16"
注释或者删除掉就好了
最新文章
- 【Network】修改docker启动默认网桥docker0为自定义网桥
- 代码在ie9中不能正确执行
- Android Studio导入第三方jar包
- 详细对比IB开发与纯手码开发的优劣。
- haploview出现“more than two alleles”的解决方法
- centos7防火墙那些事
- mysql awr v1.0.1发布
- 04 SQL是关于集合的
- 《Genesis-3D开源游戏引擎--横版格斗游戏制作教程:简介及目录》(附上完整工程文件)
- linux下通过yum安装svn及配置
- .NET支持上下左右移动操作
- jsp显示计算数值, 四舍五入
- Spring SpringMVC MyBatis配置笔记
- SVN客户端操作
- 使外部主机可访问Django服务
- spring注解@Scheduled中fixedDelay、fixedRate和cron表达式的区别
- UI5-学习篇-9-本地Eclipse UI5应用发布到SAP前端服务器
- 读取型CSRF-需要交互的内容劫持
- [JavaScript] 跳出循环方法总结
- 转:FSMT:文件服务器从03迁移到08R2实战演练
热门文章
- wave数据集的回归曲线
- Laya的资源加载
- Cheng MeiChun团队的技术支持
- Error:java: Compilation failed: internal java compiler
- PAT 甲级 1069 The Black Hole of Numbers (20 分)(内含别人string处理的精简代码)
- 模仿系统C键功能菜单
- CSS3动画框架 Animate.css
- docker ubuntu桌面
- SPSS 2019年10月24日 今日学习总结
- Django_静态文件的配置(STATIC_URL)