dmscli attach cluster
Attaches a new Lightbits storage cluster to the DMS system.
Synopsis
dmscli attach cluster [flags]
Attaching a new Lightbits cluster to the DMS system is a two-step process.
Step 1: Get credentials from the DMS service and add them to the Lightbits cluster.
Invoke this command to get a Base64-encoded public key and the public key ID. The Base64-encoded public key will be saved to: ~/.local/dms/<pubKeyId>.pem
.
The file should then be copied to the Lightbits cluster:
scp ~/.local/dms/<pubKeyId>.pem <user>@<LightbitsServer>:<FILE_PATH>
It should then be passed as an argument to the following command issued to the relevant cluster:
lbcli create credential --project-name=system --id=<PUBKEY ID> --type=rsa256pubkey <FILE_PATH>
Step 2: Attach the Lightbits cluster to the DMS system. This is the second step for attaching a cluster.
To connect the Lightbits cluster to the DMS system, use the attach command providing a Lightbits cluster API endpoint address.
Example:
dmscli attach cluster --api-endpoint <api-endpoint>
Flag | Short | Type | Default | Description |
---|---|---|---|---|
--help | -h | bool | Help for cluster . | |
--api-endpoint | bool | Lightbits storage cluster API endpoint address. |