2019年8月3日
摘要: Pod控制器类型: ReplicationController à Replicaset Replicaset:维持用户期望的pod副本数 标签选择器:以便选定由自己选定管理的pod副本 pod资源模板:完成pod资源的新建 特点:管理无状态的pod资源,精确反映用户所定义的目标数量 K8s不建议直 阅读全文
posted @ 2019-08-03 20:56 SZ_文彬 阅读(1122) 评论(0) 推荐(0)
摘要: pod生命周期: 状态:pending 挂起 没有节点满足条件 running 运行 Failed sucess unkonwn pod生命周期中的重要行为: 初始化容器 容器探测:liveness probe 探测容器是否活着 探测容器 存活性探针 readindess probe 探测容器中主程 阅读全文
posted @ 2019-08-03 00:08 SZ_文彬 阅读(305) 评论(0) 推荐(0)
  2019年8月1日
摘要: 资源:对象 service pod deployment workload:pod,ReplicaSet,Deployment,statefulset,DaemonSet,Job,Crontabjob,... 服务发现和负载均衡:service ,Ingress,.... 配置与存储:Volumn存 阅读全文
posted @ 2019-08-01 22:49 SZ_文彬 阅读(951) 评论(0) 推荐(0)
摘要: kubectl -->apiserver 管理工具 管理k8s集群 增删改查node kubectl get service/node/replicaset/deployment/statefulet/daemonset/job/cronjob kubectl --help 查看所有用法 kubec 阅读全文
posted @ 2019-08-01 22:47 SZ_文彬 阅读(476) 评论(0) 推荐(0)
摘要: kubernetes特性:自动装箱,自我修复,自动水平扩展,自动服务发现,服务自动负载均衡,自动发布和回滚 秘钥和配置管理,存储编排,批量处理执行 kubernetes架构:master/node master:最多3个 用途:控制 组件:apiserver 接收处理请求 scheduler 调度器 阅读全文
posted @ 2019-08-01 17:18 SZ_文彬 阅读(246) 评论(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_文彬 阅读(375) 评论(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_文彬 阅读(987) 评论(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_文彬 阅读(680) 评论(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_文彬 阅读(237) 评论(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_文彬 阅读(293) 评论(0) 推荐(0)