pod运行到指定node节点

利用labels

1、一般来说都每个节点有自己特有的labels  比如

 2、利用nodeSelector

nodeSelector:

kubernetes.io/hostname: master3 

这样就可以指定跑在某个node上了

要注意nodeSelector的位置

参考:https://yq.aliyun.com/articles/702931

原文地址:https://www.cnblogs.com/myfrank/p/11642753.html