- 问题描述
- 解决方案
- 使用样例
- 其他
- 参考链接
-
内容介绍
在以DaemonSet方式部署项目之后,没有在Master节点上创建Pod实例。因此不能通过Master节点来访问服务,但是我们希望Master节点中也运行Pod实例
-
方案介绍
除了通过nodeSelector来控制节点调度外,还可以通过容忍策略即tolerations使daemonset pod 调度到"非正常Node"。
... kind: DaemonSet spec: ... template: ... spec: tolerations: - key: node-role.kubernetes.io/master effect: NoSchedule nodeSelector: kubernetes.io/hostname: minikube其他
-
terminationGracePeriodSeconds
terminationGracePeriodSeconds 可以定义优雅关闭的宽限期,即在收到停止请求后,有多少时间来进行资源释放或者做其它 *** 作,如果到了最大时间还没有停止,会被强制结束。
默认值:30。
-
「Kubernetes」- 使用DaemonSet时,主节点没有运行Pod实例 @20210130
https://blog.csdn.net/u013670453/article/details/113444552
-
k8s DaemonSet 介绍与实例
https://www.cnblogs.com/qsing/p/15434348.html
-
DaemonSet
https://jimmysong.io/kubernetes-handbook/concepts/daemonset.html
-
守护进程集
https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)