astroctl_infra_kubernetes_register_manifest
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 --name <name> --no-install'.
This is useful for:
- GitOps pipelines (commit the manifest to your repo)
- Manual review before deployment
- Environments where astroctl is not available on the cluster machine
astroctl infra kubernetes register manifest [flags]
Examples
# 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
-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
- astroctl infra kubernetes register - Register an existing Kubernetes cluster