Skip to main content

astroctl infra kubernetes register manifest

Download agent manifest for a registered cluster

Synopsis​

Download the agent deployment manifest for a registered cluster.

The manifest is output to stdout as raw YAML, making it easy to pipe to kubectl or save for review. The cluster must already be registered with 'astroctl infra k8s register -c prod-01 --no-install'.

This is useful for:

  • GitOps pipelines (commit the manifest to your repo)
  • Manual review before deployment

The manifest has no TLS Secret for the agent: the agent's key is made on the machine that installs it, and AstroPulse signs only a request for it. Install the agent with 'astroctl infra k8s register agent --cluster-name my-cluster', which writes the Secret; after applying the manifest yourself, run it too.

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

Examples​

Terminal

# Download manifest and pipe to kubectl
astroctl infra k8s register manifest --cluster-name my-cluster | kubectl apply -f -

# Save manifest to file for review
astroctl infra k8s register manifest --cluster-name my-cluster > agent.yaml

# Download as JSON
astroctl infra k8s register manifest --cluster-name my-cluster -o json

Options​

Terminal
-c, --cluster-name string Name of the registered cluster
-h, --help help for manifest
-o, --output string Output format (yaml|json) (default "yaml")

SEE ALSO​