Adding a master node to a cluster

The system does not prevent you from adding another master node even if doing so does not conform to the recommended number of master nodes.
Use the following command to add a master node:
/root/bin/setup-k8s.sh addmaster

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.
    In the workernode section of the input.json file, the added section for the master node should be similar to the following:
         {
           "hostip": "192.0.2.195",
           "ip6": "",
           "hostname": "fss-computendrplc-06",
           "role": "master"
          }
  2. Display the existing configuration.
    [root@fss-deployer ~]# kubectl get nodes -owide
    [root@fss-deployerndrplc userdata]# 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   57m     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   57m     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   57m     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>                 56m     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>                 6m32s   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
  3. Add a new master node.
    In this example, you are adding compute node fss-computendrplc-06.
    [root@fss-deployer ~]# /root/bin/setup-k8s.sh addmaster
    Start adding master node/s
    SUCCESS: Added master node
  4. Verify the addition of the master node.
    [root@fss-deployer ~]# 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   73m    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   73m    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   73m    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>                 72m    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>                 22m    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
    fss-computendrplc-06   Ready    control-plane,master   3m7s   v1.23.1   192.0.2.195   <none>        Rocky Linux 8.7 (Green Obsidian)   4.18.0-425.13.1.el8_7.x86_64   containerd://1.6.15