rancher安装过程中,一直在报错导致安装失败:

Not using `--random-fully` in the MASQUERADE rule for iptables because the local version of iptables does not support it

原因是默认的iptables版本为v1.6.0不能被支持导致的,解决方法就是升级iptable是的版本,可以通过执行如下命令:

docker run -it rancher/hyperkube:v1.16.2-k8s1

在出现的命令行中,再执行

cat > /etc/apt/sources.list << EOF
deb https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian/ stretch-backports main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
deb-src https://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free
EOFapt-get updateapt remove --purge iptables && \
apt autoremove -y && \
clean-install libip4tc0=1.6.2-1.1~bpo9+1 \libip6tc0=1.6.2-1.1~bpo9+1 \libiptc0=1.6.2-1.1~bpo9+1 \libxtables12=1.6.2-1.1~bpo9+1 \iptables=1.6.2-1.1~bpo9+1

将iptables的版本升级到1.6.2

此时,再启动一个新的终端界面执行:

[root@node1 ~]# docker ps|grep hyper
aec0112233        rancher/hyperkube:v1.16.2-k8s1                    "/bin/sh"   

于是执行docker commit将修改后的容器导出成镜像,并覆盖之前的镜像:

docker commit aec0112233 rancher/hyperkube:v1.16.2-k8s1  

重新开始安装worker结点的流程即可

参考:https://github.com/rancher/rancher/issues/23552

rancher报错Not using `--random-fully` in the MASQUERADE rule for iptables because the local version of相关推荐

  1. 云原生|kubernetes|解决kube-proxy报错:Not using `--random-fully` in the MASQUERADE rule for iptables

    前言: kubernetes的网络系统主要由kube-proxy负责,其支持iptables和ipvs以及userspace三种网络负载均衡,在更新负载均衡策略为ipvs后,查看kube-proxy的 ...

  2. SAP LSMW 导入物料主数据报错 - You have not fully maintained the descriptions - 之分析

    SAP LSMW 导入物料主数据报错 - You have not fully maintained the descriptions - 之分析 近日,笔者忙于在D项目上的主数据导入.这是D项目上的 ...

  3. python import random 报错_Python import random报错处理办法

    python安装失败:make的时候报错: /usr/include/tkDecls.h:1542: error: expected ')' before '*' token /usr/include ...

  4. 黑马的ssm课程中class报错:Description : The fully qualified name of the bean‘s class, except if it serves onl

    黑马的ssm课程中class报错 <bean id="userDao" class="com.itheima.dao.impl.UserDaoImpl"& ...

  5. Nginx启动报错: could not open error log file: open() q unable to find local peer: 192.168.10.102:8848,

    记录本人1个Nginx+3个nacos注册中心+1个mysql报错解决 nacos报错nacos集群模式部署 unable to find local peer: 192.168.10.102:884 ...

  6. 报错: The option setting ‘android.enableR8=false‘ is deprecated. It will be removed in version...

    一.症状 从Unity3D中发布APK到android一体机(PICO G2 4K)时报错: The option setting 'android.enableR8=false' is deprec ...

  7. vue cli3.0创项目报错‘This may cause things to work incorrectly. Make sure to use the same version for b’

    错误: throw new Error(^Error:Vue packages version mismatch:- vue@2.6.12 (C:\Users\Administrator\AppDat ...

  8. Android Studio报错——The device might have stale dexed jars that don‘t match the current version

    问题:运行ViewPager项目后出现以下提示 有的博主通过设置Instant Run 解决了,但是不适用我的情况. 新版Android Studio 的Instant run Android Stu ...

  9. bee run 报错 main.go:4:2: package myproject/routers is not in GOROOT (/usr/local/go/src/myproject/rout

    在当前的项目文件夹中执行命令 go mod init 搞定!

  10. ClickHouse系列教程七:centos下源码编译安装及报错解决

    ClickHouse系列教程: ClickHouse系列教程 参考上一篇博客: ClickHouse系列教程六:源码分析之Debug编译运行 先安装 gcc 8, g++ 8, cmake 3, ni ...

最新文章

  1. Fibonacci数列Linux程序,Linux shell实现斐波那契数列编程
  2. 【Linux】【服务器】 CentOS7下安装Redis详细过程步骤
  3. idea 中 git 修改了文件却无法提交(No Changes detected)
  4. Example - RCP Text Editor
  5. Objective-C NSFileManager 文件管理总结
  6. a.out、coff、elf三种文件格式
  7. 如何用FineReport制作一张报表(二)
  8. 【搜索引擎】全文索引数据结构和算法
  9. android模拟器与PC的端口映射(转)
  10. mysql publishedtime_MySQL数据库中的Date,DateTime,TimeStamp和Time类型
  11. Provisional headers are shown问题
  12. jupyter修改默认目录
  13. python爬取天气预报并发送短信_Python3爬虫教程之利用Python实现发送天气预报邮件...
  14. 秒杀场景下MySQL的低效原因和改进
  15. SOA概念的三个比喻
  16. CSS控制多行文本省略--显示省略号
  17. java数组初始化的方式_java数组初始化方式
  18. 一文带你走进CI/CD
  19. scanf来代替gets
  20. 从0开始的技术美术之路(美术篇)(一)美术理论基础

热门文章

  1. CSDN 迷你博客错误
  2. 通用线性模型(GLMs,Generalized Linear Models)
  3. 魔板(最小步数模型)
  4. 通达OA任意用户登录漏洞手工复现
  5. GBASE 8s UDR内存管理_03_mi_realloc
  6. stata面板数据gmm回归_stata面板数据回归操作之GMM
  7. 银河麒麟安装Wine
  8. androd欢迎页播放视频和广告页面
  9. 算法设计与分析 ——10-7课程总结
  10. Effective C++学习笔记(条款1-34)