Skip to main content

astroctl_infra_kubernetes_register_agent

astroctl infra kubernetes register agent

Install the registration agent on a cluster

Synopsis

Install the Astro agent on a cluster that was registered with --no-install.

This is for split-team scenarios where the platform admin registers the cluster and the cluster admin installs the agent. The cluster must already be registered with 'astroctl infra k8s register --cluster-name <name> --no-install'.

The agent creates a reverse tunnel back to the platform, enabling management without exposing your cluster's API server.

astroctl infra kubernetes register agent [flags]

Examples


# Install agent on a pre-registered cluster
astroctl infra k8s register agent --cluster-name my-cluster

# Install using specific kubeconfig
astroctl infra k8s register agent --cluster-name my-cluster --kubeconfig /path/to/kubeconfig

# Install with specific kubectl context
astroctl infra k8s register agent --cluster-name my-cluster --context prod-context

Options

-c, --cluster-name string Cluster name from the register step
--context string Kubectl context to use
-h, --help help for agent
--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