Deploying Lightbits CLI on a Non-Lightbits Server
Lightbits supports running lbcli remotely against a cluster from a non-Lightbits server. The limitation is that it has to be a x86_64 Linux server. Make sure that the remote server has IP connectivity to the management or data IP, and run the following steps on the server:
Set up the repository based on the OS flavor.
- For Debian/Ubuntu connectivity, run the following command:
curl -1sLf 'https://dl.lightbitslabs.com/public/lbcli/setup.deb.sh' | sudo -E bash
- For Yum/Red Hat based distributions, run the following command:
curl -1sLf 'https://dl.lightbitslabs.com/public/lbcli/setup.rpm.sh' | sudo -E bash
- For Debian/Ubuntu connectivity, run the following command:
Install the
management-lbcli
package.
x
# Debian/Ubuntu
apt-get install management-lbcli
# Yum/Red Hat
yum install management-lbcli
- Edit the
/etc/lbcli/lbcli.yaml
file, specifying the management or data IP for the endpoint. Then add the JWT.
output-format human-readable
dial-timeout 5s
command-timeout 60s
insecure-transportfalse
insecure-skip-tls-verifytrue
debugfalse
api-version2
logger-max-size-mib100
logger-max-backups5
logger-max-age-days10
endpoint https //<ENDPOINT-IP>443
jwt eyJhbGciOi<remaining jwt content>BaFEuMsT9gQNQA
You can only provide one endpoint.
Was this page helpful?