# 命令 ```bash # 指定lab kubectl label nodes k8s-1 node-type=grafana ``` 修改 Deployment 配置,添加 nodeSelector 字段: ``` spec: template: spec: nodeSelector: node-type: grafana ```