Manage worker nodes via CLI

Context

Worker nodes can be managed with our web UI as described in manage node deployments.
Alternatively, you can also manage creation, deletion or node upgrades with kubectl.

Prerequisites

This tutorial requires a MetaKube cluster and access to it via kubectl.

Steps

List all available nodes

To get a list of all nodes execute:

kubectl get nodes -o wide

Every node is managed by a machine resource in the kube-system namespace, which are bundled into machineDeployments (further explanation can be found in cluster management API). To list all machineDeployment resources, execute:

kubectl get machinedeployments --namespace kube-system

Manage sets worker nodes

When you want to change a Machine Deployment you can edit the machineDeployment resource directly:

kubectl edit machineDeployment ${machineDeployment} --namespace kube-system

When a machineDeployment is edited the machine controller will take care of updating the respective machines. Further explanation to the existing fields and update strategies can be found in cluster management API.

Validation

If you get the results from the examples above, the test is successful.

Clean-up

No clean-up required.