How to set node label by bare meta Ubuntu getting started guide?

11/24/2015

I have install k8s by bare meta Ubuntu getting started guide. How to set node label? I think to set several categories for nodes. And I create rc on same caterory nodes. How write rc file(yml or json)?

-- ttyyll
kubernetes

1 Answer

12/16/2015

to add a label to the node you've chosen, run kubectl label nodes <node-name> <label-key>=<label-value>

from the doc quoted above.

-- MrE
Source: StackOverflow