Skip to main content

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