Version: Next

Adding more nodes

You can easily add auto-scaling nodes to your Onepanel cluster by:

  1. Adding the node to your Kubernetes cluster
  2. Adding information about the node to your params.yaml file
  3. Applying the updates to Onepanel by running opctl apply

Step 1. Add nodes to Kubernetes provider

You can add additional auto-scaling node pools (node groups in EKS) to your Kubernetes cluster by running the following commands for your provider.

az aks nodepool add --resource-group <resource-group> --cluster-name <cluster-name> \
--name <nodepool-name> \
--node-vm-size <node-vm-size> \
--enable-cluster-autoscaler \
--node-count 1 \
--min-count 0 \
--max-count <max-count>

For example, to add a node pool with 1 Tesla V100 GPU that scales from 0 to 5 nodes:

az aks nodepool add --resource-group my-resource-group --cluster-name my-cluster-name \
--name mygpunode \
--node-vm-size Standard_NC6s_v3 \
--enable-cluster-autoscaler \
--node-count 1 \
--min-count 0 \
--max-count 5

Step 2. Update params.yaml

Next, you need to add the new nodes in your params.yaml file. Note that you can set name to anything, but we recommend using a value that is descriptive since this will show in the web UI.

Setting resources.limits is only required if you are adding GPU nodes.

nodePool:
...
options:
- name: 'CPU: 4, RAM: 16GB'
value: Standard_D4s_v3
- name: 'GPU: 1xV100, CPU: 6, RAM: 112GB'
value: Standard_NC6s_v3
resources:
limits:
nvidia.com/gpu: 1

Step 3. Apply updates to Onepanel

In the final step, you need to apply your changes so that Onepanel can recognize the new node pools:

opctl apply