
The description and examples are updated for the airshipctl commands, which will be inturn used for generating documentation. Please ignore the .md file changes in this PS. They are added for zuul gates to pass. Here is the PS with generated documention files https://review.opendev.org/c/airship/airshipctl/+/789250 Relates-To: #280 Change-Id: I7c088528842ff859f502d4484ff9a3847ebb1177
23 lines
694 B
Plaintext
23 lines
694 B
Plaintext
Retrieves kubeconfig of the cluster and prints it to stdout.
|
|
|
|
If you specify clusterName, kubeconfig will have a CurrentContext set to clusterName and
|
|
will have its context defined.
|
|
|
|
If you don't specify clusterName, kubeconfig will have multiple contexts for every cluster
|
|
in the airship site. Context names will correspond to cluster names. CurrentContext will be empty.
|
|
|
|
Usage:
|
|
get-kubeconfig CLUSTER_NAME [flags]
|
|
|
|
Examples:
|
|
|
|
Retrieve target-cluster kubeconfig
|
|
# airshipctl cluster get-kubeconfig target-cluster
|
|
|
|
Retrieve kubeconfig for the entire site; the kubeconfig will have context for every cluster
|
|
# airshipctl cluster get-kubeconfig
|
|
|
|
|
|
Flags:
|
|
-h, --help help for get-kubeconfig
|