k8s操作手册 2.3pods on it. # kubectl describe node master1.cof-lee.com | grep -i Taints #查看master结 点的污点 # kubectl taint nodes --all node-role.kubernetes.io/control-plane- # kubectl taint nodes --all #刚刚加入集群的node结点 ★将node结点移出k8s集群 master结点上# kubectl taint node 结点名 keyrm:NoExecute #先打上污点,驱 逐工作负载pod,等待几分钟,确认目标node结点上没有工作pod运行后,再删 除 master结点上# kubectl delete nodes 结点名 #将目标结点从集群里删除 #查看定义的deployment ★DaemonSet控制器 DaemonSet用于在集群中的全部节点上同时运行一份指定的pod副本(master打 了污点,所以默认不运行,可以设置容忍度)后续新加入集群的工作节点也会 自动创建一个相关的pod副本,这些pod一般是执行系统级操作任务的服务,如 应用代理,监控,日志收集等 # vi monit.daemonset0 码力 | 126 页 | 4.33 MB | 1 年前3
共 1 条
- 1













