Skip to main content

Hub

The hub facilitates a control plane. The hub is split into two parts: the hub server and the hub client. The hub server is a centralized service that nodes can connect to. The hub client is a service that runs on each node and connects to the hub server.

Hosting a hub server

To host a hub server, you need to enable the hubServer section in the configuration file.

config.yaml
node:
name: server
http:
address: 127.0.0.1:8769

hubServer:
authenticationByRequest:
timeout: 5m

Connecting a node to the hub server

On the node you want to connect to the hub server, run:

sudo np authenticate-by-request http://localhost:8769

Replace http://localhost:8769 with the actual HTTP address of the node hosting the hub server.

To approve the authentication request, on the node hosting the hub server run:

sudo np authentication-requests

A list of pending authentication requests will be displayed. Select the client and press ENTER to approve the request.