Retrieving a 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 cluster effectively. Vultr Kubernetes Engine provides straightforward methods to retrieve these configurations, ensuring you have the necessary information to operate and scale your cluster efficiently.
Follow this guide to retrieve the Kubernetes Cluster configuration on your Vultr account using the Vultr Customer Portal, API, or CLI.
Navigate to Products and click Kubernetes.
Click your target Kubernetes Cluster to open its management page.
Click Download Configuration.
Send a GET
request to the List Kubernetes Clusters endpoint and note the target Kubernetes Cluster's ID.
$ curl -X GET "https://api.vultr.com/v2/kubernetes/clusters" \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json"
Send a GET
request to the Kubernetes Clusters Config endpoint to get the config file for the target Kubernetes Cluster.
$ curl -X GET "https://api.vultr.com/v2/kubernetes/clusters/<cluster-id>/config" \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
-o kubeconfig.yaml
List the available Kubernetes subscriptions in your Vultr account and note the target Kubernetes Cluster's ID.
$ vultr-cli kubernetes list --summarize
Get the Kubernetes Cluster configuration file.
$ vultr-cli kubernetes config <cluster-id> --output yaml