NC Cloud云原生模式为pod指定运行的节点/指定uao-fs到指定节点运行

已邀请:

1、为指定资源池节点配置标签

kubectl label nodes 节点IP name=标签名


2、修改欲执行节点运行的服务的配置文件
kubectl edit deployment 环境类型-服务名 -n c87e2267-1001-4c70-bb2a-ab41f3b81aa3
/uploads/answer/20210517/5728e25258ae9993def9cb09cbd42688.png

3、在第二个spec端下增加如下

nodeSelector:
    name: "你设置的node名"

4、保存修改后会自动重启pod,这时可以看到pod已经运行在相应标签的node上

要回复问题请先登录注册