摘要: ## 拓扑调度 ```sh # 为所有node添加标识 [22:57:52 root@master1 scheduler]#kubectl label node master1 node=master1 zone=zoneA node/master1 labeled [22:59:35 root@m 阅读全文
posted @ 2022-01-16 23:14 每天都在学习的自己 阅读(92) 评论(0) 推荐(0) 编辑
摘要: ## CRD实践 ```sh # 因为实际中,我们CRD都是根据业务需求去使用它,关键在于我们如何在控制器和operator中如何使用它 [23:07:07 root@master1 scheduler]#cat 17-scheduler-crd-user-v1.yaml apiVersion: a 阅读全文
posted @ 2022-01-16 23:14 每天都在学习的自己 阅读(109) 评论(0) 推荐(0) 编辑
摘要: ## 污点和容忍度 - NoSchedule,preferNoScheduler,NoExecute ### node - 污点taints ```sh # 查看当前node的污点 [22:32:45 root@master1 scheduler]#kubectl get nodes node1.n 阅读全文
posted @ 2022-01-16 23:13 每天都在学习的自己 阅读(73) 评论(0) 推荐(0) 编辑
摘要: ## Pod调度 - 亲和podAffinity ### 硬亲和requiredDuringSchedulingIgnoredDuringExecution ```sh [15:25:06 root@master1 scheduler]#cat 07-scheduler-pod-affinity-b 阅读全文
posted @ 2022-01-16 15:50 每天都在学习的自己 阅读(262) 评论(0) 推荐(0) 编辑
摘要: 5.调度策略 自定义调度策略 # 自定义一个demo-scheduler的资源策略配置文件 ​ [14:47:54 root@master1 scheduler]#mkdir /etc/kubernetes/scheduler [14:48:39 root@master1 scheduler]#cd 阅读全文
posted @ 2022-01-16 15:42 每天都在学习的自己 阅读(543) 评论(0) 推荐(0) 编辑
摘要: # 下载安装 [16:54:01 root@master1 ~]#wget https://github.com/vmware-tanzu/octant/releases/download/v0.24.0/octant_0.24.0_Linux-64bit.deb [16:54:26 root@ma 阅读全文
posted @ 2022-01-09 17:11 每天都在学习的自己 阅读(118) 评论(0) 推荐(0) 编辑
摘要: # 3.安全机制 ## 3.1 SA ```sh # 创建测试SA,我们发现一个SA有相对应的secrets [19:25:06 root@master1 security]#kubectl create -f - <<EOF > apiVersion: v1 > kind: ServiceAcco 阅读全文
posted @ 2022-01-09 16:45 每天都在学习的自己 阅读(204) 评论(0) 推荐(0) 编辑
摘要: # 3.安全机制 ## 3.1 SA ```sh # 创建测试SA,我们发现一个SA有相对应的secrets [19:25:06 root@master1 security]#kubectl create -f - <<EOF > apiVersion: v1 > kind: ServiceAcco 阅读全文
posted @ 2022-01-03 17:33 每天都在学习的自己 阅读(736) 评论(0) 推荐(0) 编辑
摘要: # 网络calico ## BGP进阶 ```sh cd /usr/local/bin/ curl -o calicoctl -O -L https://github.com/projectcalico/calicoctl/releases/download/v3.20.2/calicoctl [0 阅读全文
posted @ 2022-01-02 22:56 每天都在学习的自己 阅读(195) 评论(0) 推荐(0) 编辑
摘要: ################################ # redis 实验 # 配置nfs [16:42:17 root@nfs nfs-data]#mkdir ./pv/redis{1..6} -p [16:42:50 root@nfs nfs-data]#for i in {1..6 阅读全文
posted @ 2021-12-19 20:01 每天都在学习的自己 阅读(239) 评论(0) 推荐(0) 编辑