2019年8月1日
摘要:
kubectl -->apiserver 管理工具 管理k8s集群 增删改查node kubectl get service/node/replicaset/deployment/statefulet/daemonset/job/cronjob kubectl --help 查看所有用法 kubec
阅读全文
posted @ 2019-08-01 22:47
SZ_文彬
阅读(447)
推荐(0)
摘要:
kubernetes特性:自动装箱,自我修复,自动水平扩展,自动服务发现,服务自动负载均衡,自动发布和回滚 秘钥和配置管理,存储编排,批量处理执行 kubernetes架构:master/node master:最多3个 用途:控制 组件:apiserver 接收处理请求 scheduler 调度器
阅读全文
posted @ 2019-08-01 17:18
SZ_文彬
阅读(216)
推荐(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_文彬
阅读(347)
推荐(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_文彬
阅读(964)
推荐(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_文彬
阅读(641)
推荐(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_文彬
阅读(201)
推荐(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_文彬
阅读(256)
推荐(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_文彬
阅读(234)
推荐(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_文彬
阅读(358)
推荐(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_文彬
阅读(411)
推荐(0)