lbcli upgrade server

Upgrades a server. 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).

lbcli upgrade server [flags]

Examples:

# Upgrade a server from a local RPM. The URI must point at the lightos RPM
# itself, not at the directory containing it:
lbcli upgrade server --uuid=32e7b7ab-4e6d-4b6c-8c4e-92710bcd9301 --install-pkg-uri=file:///tmp/pkgs/lightos-3.20.0-1.x86_64.rpm
# Upgrade from an HTTPS package repository, forcing the upgrade:
lbcli upgrade server --uuid=32e7b7ab-4e6d-4b6c-8c4e-92710bcd9301 --install-pkg-uri=https://my-repo/pkgs/lightos-3.20.0-1.x86_64.rpm --force
# Upgrade through an HTTP proxy (username and password are required with --proxy-url):
lbcli upgrade server --uuid=32e7b7ab-4e6d-4b6c-8c4e-92710bcd9301 --install-pkg-uri=https://my-repo/pkgs/lightos-3.20.0-1.x86_64.rpm --proxy-url=http://10.10.0.1:3128 --proxy-username=proxyuser --proxy-password=proxypass
# Container deployments: the URI is a <repo>:<tag> image reference,
# --registry-token may be required to authenticate image pull:
lbcli upgrade server --uuid=32e7b7ab-4e6d-4b6c-8c4e-92710bcd9301 --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 server.

--etag


string


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

--install-pkg-uri


string


Path to install package (required).

--uuid


string


Server UUID (required).

--force


bool


Force upgrade (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).

Note

This is an async operation. The server Upgradeability state must be ‘Upgradeable’ to apply this operation.


On This Page
lbcli upgrade server