cub worker upgrade
cub worker upgrade
Upgrade worker image to match server version
Synopsis
Upgrade the worker container image to the latest release.
This command updates the worker container image reference to the latest release. You can upgrade either a local configuration file or a unit stored in ConfigHub.
Exactly one of --filename or --unit must be specified.
Examples:
# Upgrade worker in a local file cub worker upgrade --filename worker.yaml
# Upgrade worker in a unit cub worker upgrade --space my-space --unit my-worker-unit
The command uses the "get-image-reference" function to check the current image and "set-image-reference" function to update it if needed. The container name used is "worker".
cub worker upgrade [flags]
Options
--filename string local file containing worker configuration
-h, --help help for upgrade
--reference string target image reference (e.g., :v1.0); overrides server version
--space string space ID to perform command on
--timeout string completion timeout as a duration with units, such as 10s or 2m (default "10m0s")
--unit string unit slug containing worker configuration
--wait wait for completion (default true)
Options inherited from parent commands
--context string The context to use for this command
--debug Debug output
SEE ALSO
- cub worker - Manage workers