Skip to content

Agent

agent

agent主要用做跳板机,当前运行gitlab

基本配置

访问地址

内网IP 10.135.6.150
外网IP 123.207.250.186
内部域名 agent.guanmai.cn

内部域名解析配置 /etc/hosts

10.143.80.155 worker2.cluster.gm
10.104.166.157 worker3.cluster.gm
10.221.77.79 worker4.cluster.gm
10.221.77.79 static.cluster.gm
10.221.77.79 bshop.cluster.gm
10.221.77.79 station.cluster.gm
10.221.77.79 manage.cluster.gm
10.221.77.79 thrift.cluster.gm
10.221.77.79 merchandise.cluster.gm
10.143.80.155 docker.guanmai.cn
10.8.0.26 dev.guanmai.cn
10.143.80.155 rabbitmq.cluster.gm

其它配置

登录用户 superman/1qaz2wsx
挂载云硬盘 /etc/fstab /dev/vdb1 /data ext4 defaults 0 0
禁止密码登录 /etc/ssh/sshd.config PasswordAuthentication no

基本软件

sshd nginx docker gitlab

服务列表

gitlab

提供基于git的代码版本管理
sudo docker run --detach \
    --hostname code.guanmai.com \
    --publish 13337:80 --publish 13338:22 \
    --name gitlab \
    --restart always \
    --volume /data/gitlab/config:/etc/gitlab \
    --volume /data/gitlab/logs:/var/log/gitlab \
    --volume /data/gitlab/data:/var/opt/gitlab \
    docker.guanmai.cn/gitlab/gitlab-ce:10.1.5