astroctl_clusters
astroctl clusters
Clusters information
Synopsis
Clusters information and deployment commands. Supports file-based and stdin input methods, with flexible credential options via environment variables.
astroctl clusters [flags]
Examples
# Get all the clusters
astroctl clusters get
# Get all the clusters for a specific provider
astroctl clusters get --provider-id aws
# Get cluster information for a specific cluster
astroctl clusters get --provider-id aws --cluster-name my-cluster
# Apply the cluster configuration from file
astroctl clusters apply -f cluster.yaml
# Apply cluster configuration from stdin (useful for automation)
cat cluster.yaml | astroctl clusters apply -f -
echo 'clusterName: test...' | astroctl clusters apply -f -
# Get supported Kubernetes versions
astroctl clusters k8s-versions --provisioner-type eks --cloud-provider aws
# Get the original specification used to create the cluster
astroctl clusters spec my-cluster
# Get the cluster spec in JSON format for upgrade workflows
astroctl clusters spec my-cluster -o json
# Approve a cluster creation request
astroctl clusters approve my-cluster --token abc123 --action APPROVE
# Examples with environment variables for credentials:
# For AWS: export AWS_ACCESS_KEY_ID=... && export AWS_SECRET_ACCESS_KEY=...
# For GCP: export GOOGLE_APPLICATION_CREDENTIALS=... or export GOOGLE_CREDENTIALS='{...}'
Options
-h, --help help for clusters
Options inherited from parent commands
-o, --output string Output format (json|yaml) (default "yaml")
SEE ALSO
- astroctl - Astro Platform CLI tool
- astroctl clusters apply - Apply the cluster configurations to create a new cluster
- astroctl clusters approve - Approve or reject a cluster creation request
- astroctl clusters delete - Delete a k8s cluster
- astroctl clusters delete-context - Delete the context for the cluster
- astroctl clusters generate-kubeconfig - Generate kubeconfig for Kubernetes clusters
- astroctl clusters get - Get information about clusters
- astroctl clusters get-context - Get the context for the cluster
- astroctl clusters k8s-version - Get supported Kubernetes versions
- astroctl clusters progress - Cluster progress and operations tracking
- astroctl clusters set-context - Set the context for Kubernetes clusters
- astroctl clusters spec - Get the original specification of a cluster
- astroctl clusters sync - Sync cluster authentication configuration