Skip to main content

astroctl_infra_kubernetes_register_upgrade

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.

This re-registers the cluster, which causes the platform to resolve the latest agent image and re-apply the manifest to the cluster. The cluster stays registered throughout — no data is lost.

The cluster name in the platform 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.

astroctl infra kubernetes register upgrade [flags]

Examples


# 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

-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 for the agent (default "astroplatform-system")

Options inherited from parent commands

-o, --output string Output format (json|yaml) (default "yaml")

SEE ALSO