astroctl cloud gcp selfHosted
Self-hosted cluster prerequisite management
Synopsis
Manage prerequisites for self-hosted (vanilla Kubernetes) clusters on GCP.
Credentials are stored in AstroPulse's encrypted vault, never in cluster YAML.
Two ways to set up:
Terminal
Fully automated (recommended):
setup → creates service account, roles, APIs, GCS bucket via gcloud
→ auto-stores SA key in vault (no manual copy needed)
apply → cluster YAML uses credentials.type: Vault
Bring your own credentials (BYOC):
connect → AstroPulse checks your SA key + stores it in vault
apply → cluster YAML uses credentials.type: Vault
Commands:
Terminal
setup Deploy prerequisites + auto-store credentials in vault
connect Send your own SA key; AstroPulse checks and stores it
disconnect Delete the stored key from the vault (the key stays valid in GCP)
status Show the recorded setup steps (alias: validate)
forget Forget the recorded setup (nothing in the cloud changes)
cleanup Remove GCP resources + purge vault credentials
Terminal
astroctl cloud gcp selfHosted [flags]
Examples
Terminal
# Fully automated: setup creates everything + stores creds in vault
astroctl cloud gcp selfHosted setup --project-id my-proj --region us-central1
# Bring your own credentials: connect stores your SA key in vault
astroctl cloud gcp selfHosted connect --project-id my-proj --region us-central1 \
--credentials /path/to/key.json --cluster-name prod
# Rotate the key: create a new key for the service account, then replace the stored one
astroctl cloud gcp selfHosted connect --project-id my-proj --region us-central1 \
--credentials /path/to/new-key.json --cluster-name prod --replace
# Cleanup everything
astroctl cloud gcp selfHosted cleanup --project-id my-proj
Options
Terminal
-h, --help help for selfHosted
Options inherited from parent commands
Terminal
-o, --output string Output format (table|json|yaml) (default "table")
SEE ALSO
- astroctl cloud gcp - GCP cloud operations
- astroctl cloud gcp selfHosted cleanup - Remove GCP resources created by setup
- astroctl cloud gcp selfHosted connect - Store your own GCP credentials in AstroPulse's encrypted vault
- astroctl cloud gcp selfHosted disconnect - Delete the stored credentials from AstroPulse's encrypted vault
- astroctl cloud gcp selfHosted forget - Forget a cluster's recorded setup
- astroctl cloud gcp selfHosted setup - Create GCP resources and auto-store credentials in vault
- astroctl cloud gcp selfHosted status - Show the recorded setup steps for a cluster