Adding a worker node to a cluster

Use the following command to add a worker node. The worker node can also be a Digital Sandbox.
/root/bin/setup-k8s.sh addworker <workernode_name>
Note:
  • You cannot add a new storage node; you can only replace an existing one.
  • You can only replace with a new node that matches the exact configuration. For example, the storage disk names must be the same.

Ensure that the new node is reachable from the deployer VM. As root user, you can connect to the new node with the root login using a passwordless SSH connection with the SSH key in the deployer. This requirement is similar to the requirement for installing the Fabric Services System.

  1. Update the deployer installation file.
    This procedure adds a Digital Sandbox node. In the workernode section of the input.json file, the added section for this node should be similar to the following:
         {
           "hostip": "192.0.2.129",
           "ip6": "",
           "hostname": "fss-computendrplc-05",
           "role": "digitalsandbox"
          }
  2. Display the existing configuration.
    [root@fss~]# kubectl get nodes -owide
    NAME                   STATUS   ROLES                  AGE   VERSION   INTERNAL-IP       EXTERNAL-IP   OS-IMAGE                           KERNEL-VERSION                 CONTAINER-RUNTIME
    fss-computendrplc-01   Ready    control-plane,master   45m   v1.23.1   192.0.2.119   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15
    fss-computendrplc-02   Ready    control-plane,master   44m   v1.23.1   192.0.2.158   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15
    fss-computendrplc-03   Ready    control-plane,master   44m   v1.23.1   192.0.2.155   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15
    fss-computendrplc-04   Ready    <none>                 43m   v1.23.1   192.0.2.124   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15
  3. Add a new worker node.
    In this example, you are adding compute node fss-computendrplc-05.
    [root@fss]# /root/bin/setup-k8s.sh addworker fss-computendrplc-05
    Start adding worker node fss-computendrplc-05
    SUCCESS: Added worker node fss-computendrplc-05
  4. Display system configuration:
    [root@fss ~]# kubectl get nodes -owide
    NAME                   STATUS   ROLES                  AGE     VERSION   INTERNAL-IP       EXTERNAL-IP   OS-IMAGE                           KERNEL-VERSION                 CONTAINER-RUNTIME
    fss-computendrplc-01   Ready    control-plane,master   53m     v1.23.1   192.0.2.119   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15
    fss-computendrplc-02   Ready    control-plane,master   53m     v1.23.1   192.0.2.158   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15
    fss-computendrplc-03   Ready    control-plane,master   53m     v1.23.1   192.0.2.155   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15
    fss-computendrplc-04   Ready    <none>                 52m     v1.23.1   192.0.2.124   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15
    fss-computendrplc-05   Ready    <none>                 2m32s   v1.23.1   192.0.2.129   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15