上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页
摘要: 集群规划 主机名 角色 ip HDss7-12.host.com ectc lead 192.168.12.12 HDss7-21.host.com ectc follow 192.168.12.21 HDss7-22.host.com ectc follow 192.168.12.22 1. hd 阅读全文
posted @ 2020-06-06 15:20 地铁昌平线 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 1.200机器安装harbor仓库 [root@hdss7-200 ~]# mkdir -p /opt/src [root@hdss7-200 ~]# cd /opt/src [root@hdss7-200 src]# ll total 566428 -rw-r--r-- 1 root root 5 阅读全文
posted @ 2020-06-06 12:20 地铁昌平线 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 1.在node 21上安装docker [root@hdss7-21 ~]# curl -fsSL https://get.docker.com | bash -s docker --mirror Aliyun [root@hdss7-21 ~]# mkdir -p /data/docker [ro 阅读全文
posted @ 2020-06-06 11:49 地铁昌平线 阅读(422) 评论(0) 推荐(0) 编辑
摘要: 1.证书签发准备 准备签发证书环境 运维主机 HDSS7-200.host.com上: 安装CFSSL 证书签发工具CFSSL:R1.2 cfssl下载地址 cfssl-json下载地址 cfssl-certinfo下载地址 [root@hdss7-200 ~]# wget https://pkg. 阅读全文
posted @ 2020-06-06 11:22 地铁昌平线 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 主机名 角色 IP 部署服务 hdss7-11.host.com k8s前端代理节点1 192.168.12.11 bind9 nginx(四层代理)keepalived supervisior hdss7-21.host.com k8s前端代理节点2 192.168.12.12 etcd ngin 阅读全文
posted @ 2020-06-06 11:05 地铁昌平线 阅读(1259) 评论(0) 推荐(0) 编辑
摘要: 背景 随着小步快跑、快速迭代的开发模式被越来越多的互联网企业认同和采用,应用的变更、升级频率变得越来越频繁。为了应对不同的升级需求,保证升级过程平稳顺利地进行,诞生了一系列的部署发布模式。 停机发布 - 把老版的应用实例完全停止,再发布新的版本。这种发布模式主要为了解决新老版本互不兼容、无法共存的问 阅读全文
posted @ 2020-06-05 16:54 地铁昌平线 阅读(531) 评论(0) 推荐(0) 编辑
摘要: 1.先上本次安装部署的流程图 省略zabbix-server安装部分 2.分发秘钥 批量安装 2.1 脚本 #!/bin/bash . /etc/rc.d/init.d/functions for ip in `cat /root/list.txt` do echo 分发Key $ip sshpas 阅读全文
posted @ 2020-06-05 10:52 地铁昌平线 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1.通过ansible 每天对线上的机器磁盘、内存、负载进行巡检 [root@BS003 probject]# cat cpu.yaml - name: Statistics CPU Memory Disk Utilization hosts: zabbix-agent tasks: become: 阅读全文
posted @ 2020-06-05 10:23 地铁昌平线 阅读(1237) 评论(0) 推荐(0) 编辑
摘要: 日志清理目前覆盖58台服务器如下 此处省略 #!/bin/sh . /etc/rc.d/init.d/functions currTime=$(date +"%Y-%m-%d %T") logpath=/home/local/logs TarlogPath=/data/home/deploy/out 阅读全文
posted @ 2020-06-05 10:11 地铁昌平线 阅读(552) 评论(0) 推荐(0) 编辑
摘要: 以下Ansible-Ploybook功能: 🚫禁止Root用户登录 lineinfile 模块替换前备份(格式为sshd_config.13019.2020-05-25@17:48:55~) shell 模块支持正则 查看修改后的内容是否有变化 systemd 服务模块(restarted sto 阅读全文
posted @ 2020-06-05 10:08 地铁昌平线 阅读(773) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 17 下一页