astroctl infra kubernetes register upgrade
Upgrade the agent on a registered cluster to the latest version
Synopsis
Upgrade the Astro agent on a registered cluster to the latest version.
An agent applied as the astro-agent add-on is upgraded through the add-on. Otherwise this re-registers the cluster, which causes AstroPulse to resolve the latest agent image and re-apply the manifest to the cluster. The cluster stays registered throughout, so no data is lost.
The cluster name in AstroPulse remains unchanged. Cloud provider connections (aws, gcp, azure) remain intact.
By default the upgrade proceeds without prompting. Use --interactive to review the current and target versions before confirming.
Terminal
astroctl infra kubernetes register upgrade [cluster-name] [flags]
Examples
Terminal
# Upgrade agent (non-interactive: proceeds immediately)
astroctl infra k8s register upgrade --cluster-name my-cluster
# Upgrade with version confirmation prompt
astroctl infra k8s register upgrade --cluster-name my-cluster --interactive
# Upgrade using a specific kubeconfig
astroctl infra k8s register upgrade --cluster-name my-cluster --kubeconfig /path/to/kubeconfig
Options
Terminal
-c, --cluster-name string Name of the registered cluster
--context string Kubectl context to use
-h, --help help for upgrade
-i, --interactive Prompt for confirmation before upgrading
--kubeconfig string Path to kubeconfig file (defaults to current context)
-n, --namespace string Namespace of the agent (defaults to the registered namespace; required when none is recorded)
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl infra kubernetes register - Register an existing Kubernetes cluster