上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: Kubernetes Scheduler当前提供的默认调度流程分为以下两步。(1)预选调度过程,即遍历所有目标Node,筛选出符合要求的候选节点。为此,Kubernetes内置了多种预选策略(xxx Predicates)供用户选择。(2)确定最优节点,在第1步的基础上,采用优选策略(xxx Pri 阅读全文
posted @ 2020-07-13 14:46 caonw 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 首先创建2个netns [root@zabbix-server ~]# ip netns add netns1 [root@zabbix-server ~]# ip netns add netns2 创建1对veth [root@zabbix-server ~]# ip link add veth1 阅读全文
posted @ 2020-07-10 16:08 caonw 阅读(379) 评论(0) 推荐(0) 编辑
摘要: /etc/NetworkManager/system-connections systemctl restart network-manger 阅读全文
posted @ 2020-07-10 11:46 caonw 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1> 创建测试资源 1.命令获取deployment yaml模板 kubectl create deployment web --image=nginx:1.14 -o yaml --dry-run >deploy-web.yaml 修改deployment -web模板,添加pod限制 apiV 阅读全文
posted @ 2020-07-09 14:37 caonw 阅读(2315) 评论(0) 推荐(0) 编辑
摘要: docker容器网络分为4种 1.bridge 默认网络,Docker启动后创建一个docker0网桥,默认创建的容器加入到网桥里。查看可以使用yum install bridge-utils -y 中的 brctl show docker0命令进行查看。 [root@worker1 ~]# brc 阅读全文
posted @ 2020-07-07 17:23 caonw 阅读(765) 评论(0) 推荐(0) 编辑
摘要: docker 持久化主要有2种bind 和volume bind方式直接挂载 注意:如果源文件不存在或者挂载的目录在容器中非空目录 则该目录现有的内容将被隐藏。例如挂载到nginx访问目录 原有的index.html 50x.html 将被隐藏 [root@worker1 ~]# docker co 阅读全文
posted @ 2020-07-07 16:47 caonw 阅读(5803) 评论(0) 推荐(2) 编辑
摘要: 1.创建容器 docker container run -d --name=web -p 80:80 --network=test --mount type=bind,src=/root/,dst=/opt --cpus="1" --memory="100M" --memory-swap="200M 阅读全文
posted @ 2020-07-07 15:57 caonw 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 1.查看docker 空间使用情况 [root@worker1 ~]# docker system df TYPE TOTAL ACTIVE SIZE RECLAIMABLE Images 3 0 319.9MB 319.9MB (100%) Containers 0 0 0B 0B Local V 阅读全文
posted @ 2020-07-07 11:24 caonw 阅读(2127) 评论(0) 推荐(0) 编辑
摘要: 1.创建镜像build [root@worker1 ~]# docker image build -t harbor.rzl.com/test/nginx:v1 . Sending build context to Docker daemon 130.8MB Step 1/6 : FROM ngin 阅读全文
posted @ 2020-07-07 10:25 caonw 阅读(367) 评论(0) 推荐(0) 编辑
摘要: 1.查看集群信息 [root@manager ~]# docker node ls ID HOSTNAME STATUS AVAILABILITY MANAGER STATUS ENGINE VERSION 4tlp5w6pbuhbw1vdm5eyfgvht * manager Ready Acti 阅读全文
posted @ 2020-07-07 09:55 caonw 阅读(338) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页