目录
目标
通过配置NodeSelector与NodeName实现Pod运行(或优先运行)在我们期望的节点之上。了解这两种实现方法的区别。
版本
Kubernets v1.25.0
官网
概述
NodeSelector
官方定义
nodeSelector
is the simplest recommended form of node selection constraint. You can add thenodeSelector
field to your Pod specification and specify the node labels you want the target node t