Optional: Managing Nodes for the MapR Kubernetes Ecosystem

During the bootstrapping phase, the bootstrapinstall utility validates the nodes in the Kubernetes environment for the deployment of compute spaces and applies labels and annotations on the nodes for scheduling pods. Before deploying compute spaces, you can optionally modify how the detected nodes are used by changing the value of these labels and annotations. For more information about labels and annotations, see What Are Kubernetes Labels and Annotations?
Note: This feature is supported only on Kubernetes version 1.13 or later.
For example, to view the list of labels and annotations attached to a node, run the following command:
kubectl describe node <nodename>
MapR software automatically uses all nodes in the Kubernetes cluster unless you update the label for the node. You must update the label before using the bootstrapinstall utility:
  • To update the label so that MapR software is not installed on a Kubernetes node, use this command:
    kubectl label node --overwrite <node_name> "mapr.com/usenode=false"
  • To update the label so that MapR software is installed on a Kubernetes node, use this command:
    kubectl label node --overwrite <node_name> "mapr.com/usenode=true"
    Typically, all nodes are already labeled true, so this command is seldom needed.