Retrieving a Vultr Kubernetes Engine (VKE) cluster configuration allows you to access essential details about your Kubernetes cluster, including API endpoints, authentication credentials, and resource specifications. This process is crucial for managing and interacting with your VKE cluster effectively. Vultr Kubernetes Engine provides straightforward methods to retrieve these configurations, ensuring you have the necessary information to operate and scale your VKE cluster efficiently.
Follow this guide to retrieve the Vultr Kubernetes Engine cluster configuration from your Vultr account using the Vultr Customer Portal, API, or CLI.
Send a GET
request to the List all Kubernetes Clusters endpoint and note the target VKE cluster's ID.
$ curl "https://api.vultr.com/v2/kubernetes/clusters" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Send a GET
request to the Get Kubernetes Cluster Kubeconfig endpoint to retrieve the config file for the target VKE cluster.
$ curl "https://api.vultr.com/v2/kubernetes/clusters/{cluster-id}/config" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-o kubeconfig.yaml
List the available VKE clusters in your Vultr account and note the target VKE cluster's ID.
$ vultr-cli kubernetes list --summarize
Retrieve the VKE cluster configuration file.
$ vultr-cli kubernetes config <cluster-id> --output-file "<your-path>"
No comments yet.