zoukankan      html  css  js  c++  java
  • shipyard的安装与一般维护

    #一、安装前的准备:

    docker pull alpine

    docker pull library/rethinkdb

    docker pull microbox/etcd

    docker pull shipyard/docker-proxy

    docker pull swarm

    docker pull shipyard/shipyard

    #二、安装脚本:

    curl -s https://shipyard-project.com/deploy | bash -s                      ==》英文版

    curl -sSL http://dockerclub.net/public/script/deploy |  bash -s          ==> 中文版

    shipyard安装完成后使用http://192.168.100.100:8080就可以访问了(iptables防火墙要是开启了,要记得打开8080端口访问)

    shipyard访问页面默认登录用户名:admin,密码:shipyard,登录进去后,可以在"ACCOUNTS"选项里管理用户,可以添加用户,并对用户进行角色授权

    #三、一般维护:

    1)添加node节点:

    curl -sSL http://dockerclub.net/public/script/deploy | ACTION=node DISCOVERY=etcd://<shipyard部署机ip> bash -s                      ##中文版

    curl -sSL https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd://<shipyard部署机ip> bash -s                               ##英文版

    2) 删除shipyard(在节点机上执行,就会将节点从shipyard管理里踢出)

    curl http://dockerclub.net/public/script/deploy | ACTION=remove bash -s    ##中文版

    curl -sSL https://shipyard-project.com/deploy | ACTION=remove bash -s      ##英文版

    3)stop 与start :

    docker stop shipyard-proxy shipyard-certs shipyard-discovery shipyard-rethinkdb shipyard-swarm-agent shipyard-swarm-manager shipyard-controller

    docker start shipyard-proxy shipyard-certs shipyard-discovery shipyard-rethinkdb shipyard-swarm-agent shipyard-swarm-manager shipyard-controller

    4)如果想将安装重新来一遍

    for i in `docker ps |sed '1d'| awk '{print $NF}'`;do docker rm -f $i; done

    docker stop `docker ps -a -q`

    docker rm `docker ps -a -q`

    curl -s https://shipyard-project.com/deploy | bash -s

     

    5)添加节点:

    比如添加182.48.115.235作为一个节点。那么就需要在182.48.115.235这台机器上执行下面的命令:

    curl -sSL https://shipyard-project.com/deploy | ACTION=node DISCOVERY=etcd://192.168.100.100:4001 bash -s

    注意:

    1)上面命令中的192.168.100.100是shipyard的部署机的ip;

    2)192.168.100.100机器的iptables防火墙要打开4001端口。最好是关闭防火墙

     

  • 相关阅读:
    BZOJ-1625 宝石手镯 01背包(傻逼题)
    BZOJ-2929 洞穴攀岩 最大流Dinic(傻逼题)
    BZOJ3252: 攻略 可并堆
    二逼平衡树 Tyvj 1730 BZOJ3196 Loj#106
    [Noi2016]区间 BZOJ4653 洛谷P1712 Loj#2086
    [NOIP2014]飞扬的小鸟 D1 T3 loj2500 洛谷P1941
    BZOJ4554: [Tjoi2016&Heoi2016]游戏 luoguP2825 loj2057
    BZOJ 2599: [IOI2011]Race 点分治
    POJ1038 Bugs Integrated, Inc 状压DP+优化
    JLOI2015 城池攻占
  • 原文地址:https://www.cnblogs.com/liulvzhong/p/11527413.html
Copyright © 2011-2022 走看看