2019年8月1日
摘要: kubernetes特性:自动装箱,自我修复,自动水平扩展,自动服务发现,服务自动负载均衡,自动发布和回滚 秘钥和配置管理,存储编排,批量处理执行 kubernetes架构:master/node master:最多3个 用途:控制 组件:apiserver 接收处理请求 scheduler 调度器 阅读全文
posted @ 2019-08-01 17:18 SZ_文彬 阅读(203) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash /usr/bin/yum install lrzsz wget vim -y cd /etc/yum.repos.d/ wget https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo cat << E 阅读全文
posted @ 2019-08-01 02:48 SZ_文彬 阅读(333) 评论(0) 推荐(0) 编辑
  2019年7月30日
摘要: 部署环境 centos7.4 master01: 192.168.85.110 node01: 192.168.85.120 node02: 192.168.85.130 所有节点都要写入hosts [root@master01 ~]# cat /etc/hosts 127.0.0.1 localh 阅读全文
posted @ 2019-07-30 20:44 SZ_文彬 阅读(922) 评论(0) 推荐(0) 编辑
摘要: 1、必要条件 >所有机器都要安装ntp服务器。 1、查看是否安装 > rpm -qa | grep ntp 2、yum安装ntp服务器 ==> yum install -y ntp 3、如果时间不是CST,而是EDT的,那么需要改为shanghai时间 mv /etc/localtime /etc/ 阅读全文
posted @ 2019-07-30 17:37 SZ_文彬 阅读(605) 评论(0) 推荐(0) 编辑
  2019年7月19日
摘要: docker run -d --name node2 -e "container=docker" --privileged=true new/centos_sshd /usr/sbin/init 创建node2 docker exec -it node2 bash 进入node2 yum insta 阅读全文
posted @ 2019-07-19 20:08 SZ_文彬 阅读(192) 评论(0) 推荐(0) 编辑
摘要: docker run -it --name node1 docker.io/centos bash 创建node1容器 docker exec -it node1 bash 进入node1 yum install openssh-server –y 安装ssh yum install net-too 阅读全文
posted @ 2019-07-19 15:06 SZ_文彬 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 1.前期配置 aliyun镜像地址 https://cr.console.aliyun.com/cn-hangzhou/instances/mirrors 加速度地址:https://lvb4p7mn.mirror.aliyuncs.com 针对Docker客户端版本大于 1.10.0 的用户 您可 阅读全文
posted @ 2019-07-19 00:06 SZ_文彬 阅读(224) 评论(0) 推荐(0) 编辑
摘要: 1.镜像源 阿里云镜像源 https://opsx.alibaba.com/mirror/ 基于centos镜像的nginx镜像制作 vi /etc/nginx/nginx.conf user nginx; daemon off; 检查语法 nginx -t docker commit --help 阅读全文
posted @ 2019-07-19 00:03 SZ_文彬 阅读(319) 评论(0) 推荐(0) 编辑
  2019年7月15日
摘要: elk日志搜索安装: yum install elasticsearch-5.4.0.rpm hostnamectl set-hostname linux-host1.example.com && reboot vi /etc/security/limits.conf 添加开启文件最大数 * sof 阅读全文
posted @ 2019-07-15 17:14 SZ_文彬 阅读(381) 评论(0) 推荐(0) 编辑
  2019年7月13日
摘要: 1.配置yum源:上传epel.repo yum clean all yum update 安装ansible 查询是否有ansible yum list *ansile 查看该ansible的信息 yum info ansible.noarch 安装ansible yum install ansi 阅读全文
posted @ 2019-07-13 00:46 SZ_文彬 阅读(245) 评论(0) 推荐(0) 编辑