release clusters kubeconfig

Command reference doc for the Release CLI

Downloads the Kubernetes config file for one or more clusters

release clusters kubeconfig [OUT_DIR] [flags]

Examples


Download kubeconfig file for the default cluster to the given directory:
> release clusters kubeconfig ~/.kube

Download kubeconfig file for a specific cluster to the given directory:
> release clusters kubeconfig --cluster my-cluster-context ~/.kube

Download kubeconfig file for a all clusters to the given directory:
> release clusters kubeconfig --all-clusters ~/.kube

Download kubeconfig file for a all clusters to the given directory,
overwriting existing files if present:
> release clusters kubeconfig --overwrite --all-clusters ~/.kube

Options

--account <string>

Account name or ID (default: $RELEASE_ACCOUNT or "account" in config file)

--all-clusters

Download kubeconfig for all clusters

--cluster <string>

Cluster context or ID

--overwrite

Overwrite existing files

Options inherited from parent commands

--config <string>

config file (default is $HOME/.release.yaml)

--debug

enable debug logging

Last updated