Deploying Lightbits CLI on a Non-Lightbits Server

AI Tools

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:

  1. Set up the repository based on the OS flavor.

    1. For Debian/Ubuntu connectivity, run the following command: curl -1sLf 'https://dl.lightbitslabs.com/public/lbcli/setup.deb.sh' | sudo -E bash

    2. For Yum/Red Hat based distributions, run the following command: curl -1sLf 'https://dl.lightbitslabs.com/public/lbcli/setup.rpm.sh' | sudo -E bash

  2. Install the management-lbcli package.

# Debian/Ubuntu apt-get install management-lbcli # Yum/Red Hat yum install management-lbcli
  1. 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-transport: false insecure-skip-tls-verify: true debug: false api-version: 2 logger-max-size-mib: 100 logger-max-backups: 5 logger-max-age-days: 10 endpoint: https://<ENDPOINT-IP>:443 jwt: eyJhbGciOi<remaining jwt content>BaFEuMsT9gQNQA
Note

You can only provide one endpoint.