Skip to main content

astroctl_infra_kubernetes

astroctl infra kubernetes

Manage Kubernetes clusters

Synopsis

Manage Kubernetes clusters. Supports file-based and stdin input methods, with flexible credential options via environment variables.

astroctl infra kubernetes [flags]

Examples


# Get all clusters
astroctl infra k8s get

# Apply cluster configuration from file
astroctl infra k8s apply -f cluster.yaml

# Upgrade Kubernetes version
astroctl infra k8s upgrade my-cluster --list-versions # See available versions
astroctl infra k8s upgrade my-cluster 1.30 # Upgrade to 1.30

# Scale a node group
astroctl infra k8s scale my-cluster --list # See available node groups
astroctl infra k8s scale my-cluster ng-1 --min 3 --max 10

# Update cluster via YAML (provider-specific, complex changes)
astroctl infra k8s update my-cluster --example # Show YAML examples
astroctl infra k8s update my-cluster -f update.yaml

# Manage kubeconfig
astroctl infra k8s set-context my-cluster
astroctl infra k8s generate-kubeconfig my-cluster

# View operation progress
astroctl infra k8s progress stream my-cluster

Options

-h, --help help for kubernetes

Options inherited from parent commands

-o, --output string Output format (json|yaml) (default "yaml")

SEE ALSO