美文网首页
k8s安装问题

k8s安装问题

作者: 霹雳解锋镝 | 来源:发表于2019-04-16 15:28 被阅读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

    相关文章

      网友评论

          本文标题:k8s安装问题

          本文链接:https://www.haomeiwen.com/subject/krpbwqtx.html