Uploaded image for project: 'National Data Service'
  1. National Data Service
  2. NDS-251

Script or process for applying node labels in bulk

XMLWordPrintableJSON

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Minor Minor
    • Odum Release
    • None
    • Development
    • None

      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.

              lambert8 Sara Lambert
              lambert8 Sara Lambert
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Time Spent - 3 hours Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - 3 hours Remaining Estimate - 1 hour
                  3h