lbcli upgrade cluster

Upgrades a cluster. Note that servers are only upgraded if they are in Upgradeable state and the package version does not break internal operability (i.e., there is no server in the cluster with an old version that will not work properly with the new version).

# Upgrade every upgradeable server in the cluster from a local RPM:
lbcli upgrade cluster --install-pkg-uri=file:///tmp/pkgs/lightos-3.20.0-1.x86_64.rpm
# Upgrade only the listed servers, from an HTTPS package repository:
lbcli upgrade cluster --install-pkg-uri=https://my-repo/pkgs/lightos-3.20.0-1.x86_64.rpm --uuids=32e7b7ab-4e6d-4b6c-8c4e-92710bcd9301,da40a0c1-575f-4941-b2f1-109b26741f77
# Container deployments: the URI is a <repo>:<tag> image reference,
# --registry-token may be required to authenticate image pull:
lbcli upgrade cluster --install-pkg-uri=docker.lightbitslabs.com/lightos-3-20-1-containers:3.20.1 --registry-token=TR..AC

Flag

Short

Type

Default

Description

--help

-h

bool


Help for cluster.

--etag


string


An opaque identifier allowing a client to make conditional requests (optional).

--install-pkg-uri


string


Path to install package (required).

--uuids


Comma Delimited String

Empty

Server UUIDs to upgrade, if empty, all the upgradeable servers are upgraded (optional)

--proxy-password


string


Password for the proxy server (required only if the proxy is provided).

--proxy-url


string


URL of the proxy server (optional). Pattern: http://<server-ip>:<port>

--proxy-username


string


Username for the proxy server (required only if the proxy is provided).

lbcli upgrade cluster [flags]

Examples:

# Upgrade cluster format:
lbcli upgrade cluster --install-pkg-uri=file:///tmp/pkgs/for/upgrade [--uuids=32e7b7ab-4e6d-4b6c-8c4e-92710bcd9301,da40a0c1-575f-4941-b2f1-109b26741f77]
lbcli upgrade cluster --install-pkg-uri=http://my-repo/pkgs/for/upgrade [--uuids=32e7b7ab-4e6d-4b6c-8c4e-92710bcd9301,da40a0c1-575f-4941-b2f1-109b26741f77]
lbcli upgrade cluster --install-pkg-uri=my-registry:5000/lightos:3.20.0 [--uuids=32e7b7ab-4e6d-4b6c-8c4e-92710bcd9301,da40a0c1-575f-4941-b2f1-109b26741f77]

Flag

Short

Type

Default

Description

--help

-h

bool


Help for cluster.

--etag


string


An opaque identifier allowing a client to make conditional requests (optional).

--install-pkg-uri


string


Path to install package (required).

--uuids


Comma Delimited String

Empty

Server UUIDs to upgrade, if empty, all the upgradeable servers are upgraded (optional)

--proxy-password


string


Password for the proxy server (required only if the proxy is provided).

--proxy-url


string


URL of the proxy server (optional). Pattern: http://<server-ip>:<port>

--proxy-username


string


Username for the proxy server (required only if the proxy is provided).

--registry-token


string


Container registry token for image pulls (optional - only used for container-image install URIs).


On This Page
lbcli upgrade cluster