Retrieves and displays the kubeconfig file for a Vultr Kubernetes cluster to enable kubectl connections.
The vultr-cli kubernetes config
command retrieves and displays the kubeconfig file for a specified Vultr Kubernetes cluster, enabling connection to the cluster using kubectl.
$ vultr-cli kubernetes config <Cluster ID> [flags]
# Full example
$ vultr-cli kubernetes config ffd31f18-5f77-454c-9065-212f942c3c35
$ vultr-cli kubernetes config ffd31f18-5f77-454c-9065-212f942c3c35 --output-file /your/path/
# Shortened with alias commands
$ vultr-cli k config ffd31f18-5f77-454c-9065-212f942c3c35
$ vultr-cli k config ffd31f18-5f77-454c-9065-212f942c3c35 -o /your/path/
Shorthand | Long Version | Description |
---|---|---|
- | --output-file | (optional) the file path to write kubeconfig to |
No comments yet.