k8s安装问题

2019-04-16  本文已影响0人  霹雳解锋镝

1、kube-proxy组件添加路由规则失败
iptables版本:iptables-1.4.21-28.el7.x86_64

Opened local port "nodePort for default/nginx-service:" (:20000/tcp)
Failed to execute iptables-restore: exit status 1 (iptables-restore: invalid option -- '5'
Try `iptables-restore -h' for more information.

处理办法将iptables版本降低为:iptables-1.4.21-24.1.el7_5.x86
http://rpm.pbone.net/index.php3/stat/26/dist/95/size/425176/name/iptables-1.4.21-24.1.el7_5.x86_64.rpm

2、harbor安装

1、docker-compose安装
    yum -y install epel-release
    yum -y install python-pip
    pip install docker-compose
2、下载harbor:https://github.com/vmware/harbor/releases/download
修改harbor.cfg配置hostname=ip
3、修改docker配置 
    find / -name docker.service -type f
    vim /usr/lib/systemd/system/docker.service
在ExecStart后面添加配置:
     --insecure-registry=ip
systemctl daemon-reload 
systemctl restart docker
上一篇 下一篇

猜你喜欢

热点阅读