vela cluster export-config
Export multi-cluster kubeconfig.
Synopsis
Export multi-cluster kubeconfig
Load existing cluster kubeconfig and list clusters registered in KubeVela. Export the proxy access of these clusters to KubeConfig and print it out.
vela cluster export-config [flags]
Examples
# Export all clusters to kubeconfig
vela cluster export-config
# Export clusters with specified kubeconfig
KUBECONFIG=./my-hub-cluster.kubeconfig vela cluster export-config
# Export clusters with specified labels
vela cluster export-config -l gpu-cluster=true
# Export clusters to kubeconfig and save in file
vela cluster export-config > my-vela.kubeconfig
# Use the exported kubeconfig in kubectl
KUBECONFIG=my-vela.kubeconfig kubectl get namespaces --cluster c2
Options
-h, --help help for export-config
-l, --selector string LabelSelector for select clusters to export.
Options inherited from parent commands
-V, --verbosity Level number for the log level verbosity
-y, --yes Assume yes for all user prompts
SEE ALSO
- vela cluster - Manage Kubernetes clusters.