1、给node打上label
kubectl label nodes cn-hongkong.i-j6c5pm0b59y9kaos565o apptype=monitoring
2、查看结果
kubectl get nodes --show-labels
3、应用配置该标签
nodeSelector: apptype: monitoring
参考:https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
1、给node打上label
kubectl label nodes cn-hongkong.i-j6c5pm0b59y9kaos565o apptype=monitoring
2、查看结果
kubectl get nodes --show-labels
3、应用配置该标签
nodeSelector: apptype: monitoring
参考:https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
转载于:https://www.cnblogs.com/Dev0ps/p/11314421.html