ekz get kubeconfig
Get kubeconfig

Synopsis

This command obtains the KubeConfig of the EKS-D cluster and writes to the target file.
1
ekz get kubeconfig [flags]
Copied!

Examples

1
# Get the KubeConfig from the cluster and write to $HOME/.kube/config
2
ekz get kubeconfig
3
​
4
# Get the KubeConfig of the 'dev' cluster
5
ekz get kubeconfig --name=dev
6
​
7
# Get the KubeConfig of the 'dev' cluster (alternative syntax)
8
ekz get kubeconfig dev
9
​
10
# Get the KubeConfig and save to $PWD/kubeconfig
11
ekz get kubeconfig -o $PWD/kubeconfig
12
​
13
# Get the KubeConfig from the default KIND-based cluster
14
ekz get kubeconfig --provider=kind
15
​
16
# Get the KubeConfig from the 'dev' KIND-based cluster
17
ekz get kubeconfig --provider=kind --name=dev
Copied!

Options

1
-h, --help help for kubeconfig
2
--name string cluster name (default "ekz")
3
-o, --output string specify output file to write kubeconfig to (default "~/.kube/config")
Copied!

Options inherited from parent commands

1
-p, --provider string cluster provider possible values: "ekz", "kind". env: EKZ_PROVIDER (default "ekz")
2
--verbose run verbosely
Copied!

SEE ALSO

    ​ekz get - Get properties of an EKS-D cluster
Last modified 5mo ago