Skip to main content

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 one person in your team registers the cluster and your cluster administrator installs the agent. The cluster must already be registered with 'astroctl infra k8s register --cluster-name prod-01 --no-install'.

The agent opens a secure connection to AstroPulse, so AstroPulse can manage the cluster without your cluster's API server being exposed.

Terminal
astroctl infra kubernetes register agent [cluster-name] [flags]

Examples​

Terminal

# 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​

Terminal
-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 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​