Read about Nodes groups and Node group membership rules if you are unfamiliar with them.
Group nodes that meet your application requirements into a node group.
(dependent on configuration)
If the node you add does not satisfy the node group membership rules for the target node group, the add node operation fails with an error message.