assign role to kubernetes node code example
Example 1: set node role kubernetes
kubectl label node <node name> node-role.kubernetes.io/<role name>=<key - (any name)>
Example 2: add role to node kubernetes
kubectl label node nodeName node-role.kubernetes.io/worker=worker