-
Story
-
Resolution: Fixed
-
Minor
-
None
-
None
-
NDS Sprint 3
As a Cluster admin of NDS Labs, I should be able to apply / change node labels in bulk. This, combined with the Ansible deployment scripts, would enable me to quickly spin up a cluster without needing to type several commands per node.
In Kubernetes we can apply a label to a node with the following command:
kubectl label nodes <nodeName> ndslabs-role=<nodeType>
|
In larger clusters, applying these labels by hand is tedious and potentially prone to human error.
I feel like we could easily whip up a script to do this for us programmatically.
This story is complete when we have a script or other process that takes as input some sort of declarative nodeName->role mapping YAML or JSON file. The script should then apply labels to the cluster nodes as defined by the map.