High availability is a key feature of Vultr Kubernetes Engine (VKE) cluster that ensures your VKE cluster remain resilient and operational, even in the face of unexpected failures. By enabling high availability, your VKE cluster is distributed across multiple nodes and regions, reducing the risk of downtime and ensuring continuous availability of your applications. This feature integrates seamlessly with Vultr’s global cloud infrastructure, providing reliable performance and redundancy.
Follow this guide to enable and configure High Availability for your VKE clusters using the Vultr Customer Portal, API, or CLI.
Navigate to Products and click Kubernetes.
Click Add Cluster.
Provide a Cluster Name.
Click on Enable High Availability.
Choose a Server Location.
Provide a Label, and select Number of Nodes.
Select a Node Pool Type and a Plan.
Click Deploy Now.
Send a POST
request to the Create Kubernetes Clusters endpoint to create a VKE cluster with high availability, note the created cluster's ID.
$ curl -X POST "https://api.vultr.com/v2/kubernetes/clusters" \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"label": "vke",
"region": "lax",
"version": "v1.30.0+1",
"ha_controlplanes": true,
"node_pools": [
{
"node_quantity": 2,
"min_nodes": 2,
"max_nodes": 5,
"auto_scaler": true,
"label": "my-label",
"plan": "vc2-1c-2gb",
"tag": "my-tag"
}
]
}'
Send a GET
request to the Kubernetes Cluster endpoint to get the cluster info of the target VKE cluster.
$ curl -X GET "https://api.vultr.com/v2/kubernetes/clusters/<cluster-id>" \
-H "Authorization: Bearer ${VULTR_API_KEY}" \
-H "Content-Type: application/json"
Create a VKE cluster with --high-avail
flag, note the created cluster's ID.
$ vultr-cli kubernetes create --high-avail --label "my-cluster" --region="ewr" --version="v1.30.0+1" --node-pools="quantity:3,plan:vc2-1c-2gb,label:my-nodepool,tag:my-tag"
Get the VKE cluster.
$ vultr-cli kubernetes get <cluster-id>