Skip to main content

astroctl infra kubernetes set-context

Set the context for Kubernetes clusters

Synopsis​

Set the context for Kubernetes clusters managed by AstroPulse

Terminal
astroctl infra kubernetes set-context [cluster-name] [flags]

Examples​

Terminal

# Set the context for the cluster
astroctl infra k8s set-context --cluster-name my-cluster

# Or name the cluster directly
astroctl infra k8s set-context my-cluster

Options​

Terminal
-c, --cluster-name string cluster name
-h, --help help for set-context
--stdout write the kubeconfig to the stdout

Options inherited from parent commands​

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

SEE ALSO​