# Migrate from Vultr Kubernetes Engine (VKE) to Kubernetes on Quake AI

Source: https://docs.quake.ai/docs/kubernetes/migration/migrate-from-vke
Markdown: https://docs.quake.ai/docs/kubernetes/migration/migrate-from-vke.md

---

# Migrate from Vultr Kubernetes Engine (VKE) to Kubernetes on Quake AI

## Service mapping

<MigrationTable provider="vultr" service="kubernetes" />

## 1. Overview

[Vultr Kubernetes Engine](https://docs.vultr.com/products/kubernetes) (VKE) is Vultr's managed Kubernetes service. VKE ships vanilla upstream Kubernetes with a small set of Vultr-specific add-ons: a Vultr cloud controller manager (handles `Service type: LoadBalancer` provisioning of Vultr Load Balancers and node lifecycle), a Vultr Block Storage CSI driver, and integration with the [Vultr Container Registry](https://docs.vultr.com/vultr-container-registry) for images. VKE offers a free control plane (single region) and optional HA control plane upgrades.

On Quake AI, you provision Kubernetes through [Magnum](/docs/kubernetes), the Container Infrastructure Management service. Magnum gives you a control plane and worker nodes from a curated cluster template (`openstack coe cluster create`). The us-east-1 region ships platform templates pre-wired with Calico CNI, the OpenStack cloud-provider stack (CCM + Cinder CSI), and a load-balanced API endpoint. Run `openstack coe cluster template list` for the current template catalog and Kubernetes versions, or see the [cluster templates reference](/reference/kubernetes/console/cluster-templates).

For teams that need a non-Magnum stack (custom CNI, custom kubelet flags, custom CRI, or a Kubernetes version outside the template catalog), **self-managed RKE2 or k3s on Nova instances** is documented as an alternative later in this tutorial. VKE users accustomed to a fully managed control plane should plan for the operational shift: on Magnum you own the cluster after creation (upgrades, node-pool sizing, etcd backups), and on the self-managed path you also own the bootstrap, the CNI, and the CCM/CSI install.

**Migration complexity: Low to medium.** VKE has no IRSA-style pod identity, no proprietary CNI, and only a handful of vendor-specific annotations. The primary tasks are swapping the CCM and CSI driver, mirroring container images, and rebuilding a stable Kubernetes API endpoint. Expect **1 to 2 weeks** for a typical production migration.

## 2. Workload portability matrix

| Resource type | Portability | Notes |
|---|---|---|
| Deployment | Portable | No changes needed |
| StatefulSet (manifest) | Portable | Data migrated separately |
| DaemonSet | Portable | No changes needed |
| ConfigMap | Portable | Update any Vultr-specific endpoint values |
| Secret (values) | Portable | Remove `VULTR_API_KEY` references |
| Service (ClusterIP, NodePort) | Portable | No changes |
| Service (LoadBalancer) | Needs adaptation | Remove `service.beta.kubernetes.io/vultr-loadbalancer-*` annotations |
| Ingress | Portable | nginx-ingress is commonly used on VKE already |
| PersistentVolumeClaim | Needs adaptation | Change `storageClassName` from `vultr-block-storage` to `cinder-flash` |
| PersistentVolume (data) | Not portable | Migrate data via Velero filesystem backup or application-level dump/restore |
| NetworkPolicy | Portable | VKE supports standard NetworkPolicy through Calico/Cilium-compatible CNIs |
| HPA / VPA / PDB | Portable | No changes |
| CronJob / Job | Portable | No changes |
| RBAC resources | Portable | No changes |
| Vultr CSI driver (`block.csi.vultr.com`) | Provider-specific | Replace with Cinder CSI |
| Vultr CCM (`vultr`) | Provider-specific | Replace with openstack-cloud-controller-manager |
| Vultr Container Registry images | Provider-specific | Mirror to Docker Hub, Harbor, or Quay.io |

## 3. Pre-migration: export and audit

```bash
kubectl get all --all-namespaces -o yaml > cluster-export.yaml

kubectl get pvc,pv --all-namespaces -o yaml > storage.yaml

kubectl get svc --all-namespaces -o yaml | grep 'vultr-loadbalancer' > vultr-lb-services.txt

helm list --all-namespaces > helm-releases.txt
```

**Inventory checklist:**

- [ ] All PVCs using `vultr-block-storage` StorageClass
- [ ] All Services with `service.beta.kubernetes.io/vultr-loadbalancer-*` annotations
- [ ] Images hosted on the Vultr Container Registry
- [ ] Helm releases and versions
- [ ] external-dns configuration (if using a managed DNS provider)
- [ ] Any references to `VULTR_API_KEY` in Secrets

## 4. Provision Kubernetes on Quake AI

### 4.1 Primary path: Magnum

Provision a cluster from a Magnum template. The platform creates the control plane VMs, worker VMs, security groups, networking, and a stable endpoint for the Kubernetes API.



`openstack coe cluster create` triggers Keystone trust delegation so cluster nodes can call back to OpenStack on your behalf. Trust delegation is not available to Keystone application credentials, so the call fails before any Magnum work begins. Authenticate the CLI session with `OS_USERNAME` and `OS_PASSWORD` (password auth) before running the command. See the [Kubernetes FAQ](/docs/kubernetes/faq) for the full troubleshooting flow.



```bash
openstack coe cluster template list
openstack coe cluster create production-k8s \
  --cluster-template Standard-v2.0-k8s-calico-fc38_v1.24.16 \
  --master-count 3 \
  --node-count 3 \
  --keypair MY_KEYPAIR
```

For the full walkthrough including Console and quota guidance, see [Create a Kubernetes cluster](/docs/kubernetes/how-to/create-cluster). To roll your own template (custom flavors, alternate Kubernetes version), see [Create a cluster template](/docs/kubernetes/how-to/create-cluster-template).

Once the cluster reports `CREATE_COMPLETE`, fetch the kubeconfig:

```bash
openstack coe cluster config production-k8s --dir ~/.kube
kubectl get nodes
kubectl get storageclass
```

The template pre-installs the Cinder CSI driver and the OpenStack cloud-provider stack; the Magnum path needs no manual CCM, CSI, or CNI install.

### 4.2 Alternative: self-managed RKE2 or k3s

If the Magnum template catalog does not match your version, CNI, or CRI constraints, build the cluster yourself on Nova instances. Use OpenTofu with the `openstack` provider to create the infrastructure:

- Neutron network + subnet
- Security groups (Kubernetes API 6443, NodePort 30000-32767, inter-node)
- Nova instances: 3 control plane + N workers
- Stable endpoint for the Kubernetes API

Install RKE2 or k3s, then deploy on the cluster:

1. `openstack-cloud-controller-manager` with [application credentials](/docs/identity/how-to/create-application-credential)
2. Cinder CSI driver with the `cinder-flash` StorageClass
3. Calico (VXLAN) or Cilium as the CNI

```bash
# Example: minimal RKE2 control plane bootstrap on a Nova instance
curl -sfL https://get.rke2.io | sh -
sudo systemctl enable --now rke2-server
sudo cat /etc/rancher/rke2/rke2.yaml  # kubeconfig
```

Point the kubeconfig `server:` value at the control-plane endpoint on port 6443.

## 5. Adapt provider-specific resources

### CSI driver: Vultr Block Storage to Cinder

Replace the StorageClass reference in all PVCs:

```yaml
# Before (VKE)
storageClassName: vultr-block-storage

# After (Quake AI)
storageClassName: cinder-flash
```

VKE volumes are standard RWO block storage; Cinder is a 1:1 replacement. If you depended on a retain-on-delete behavior, create or use a Cinder StorageClass with `reclaimPolicy: Retain`.

### Ingress controller

If your VKE cluster already uses nginx-ingress (the most common pattern), **no ingress changes are needed** beyond DNS updates. nginx-ingress is fully portable.

If you used the Vultr cloud controller manager to provision Vultr Load Balancers directly through `Service type: LoadBalancer`, remove Vultr-specific annotations:

```yaml
# Remove these Vultr-specific annotations from Service manifests
service.beta.kubernetes.io/vultr-loadbalancer-algorithm
service.beta.kubernetes.io/vultr-loadbalancer-protocol
service.beta.kubernetes.io/vultr-loadbalancer-ssl
service.beta.kubernetes.io/vultr-loadbalancer-sticky-sessions
service.beta.kubernetes.io/vultr-loadbalancer-healthcheck-path
service.beta.kubernetes.io/vultr-loadbalancer-firewall-rules
```

The cloud controller assigns public endpoints to Kubernetes Services with `type: LoadBalancer` without requiring provider-specific annotations.

### Pod identity

VKE has no IAM-for-pods mechanism. Pods on VKE that call Vultr APIs (for example, `external-dns` with the Vultr DNS provider) use long-lived API keys stored in K8s Secrets.

- Remove any `VULTR_API_KEY` Secret references that are not still required.
- For applications that called Vultr APIs, reconfigure to point at the target service:

```yaml
# Before: external-dns with Vultr DNS
args:
  - --provider=vultr

# After: external-dns with Cloudflare (or other)
args:
  - --provider=cloudflare
```

### Service type LoadBalancer

The standard Kubernetes `LoadBalancer` Service fields remain portable. Remove any `vultr-loadbalancer-*` annotations before applying on Quake AI.

### Container images: Vultr Container Registry to a portable registry

The Vultr Container Registry is Vultr-specific. Mirror all images before cutover:

```bash
docker pull <region>.vultrcr.com/MY_NAMESPACE/MY_IMAGE:TAG
docker tag  <region>.vultrcr.com/MY_NAMESPACE/MY_IMAGE:TAG docker.io/ORG/MY_IMAGE:TAG
docker push docker.io/ORG/MY_IMAGE:TAG
```

Update all Deployment and StatefulSet manifests with the new image references. This is the most manual step in a VKE migration.

## 6. Apply and validate

**Migrate data with Velero:**

```bash
# On VKE: install Velero with an S3-compatible backend
velero install \
  --provider aws \
  --plugins velero/velero-plugin-for-aws:v1.9.0 \
  --bucket vke-migration \
  --use-node-agent \
  --default-volumes-to-fs-backup \
  --backup-location-config \
    region=ewr,s3ForcePathStyle=true,s3Url=https://ewr1.vultrobjects.com

velero backup create vke-full --include-namespaces production

# On Quake AI: restore with StorageClass remapping
kubectl apply -f - <<EOF
apiVersion: v1
kind: ConfigMap
metadata:
  name: change-storage-class-config
  namespace: velero
  labels:
    velero.io/plugin-config: ""
    velero.io/change-storage-class: RestoreItemAction
data:
  vultr-block-storage: cinder-flash
EOF

velero restore create --from-backup vke-full --restore-volumes=true
```

**Deploy and verify:**

```bash
kubectl get pods --all-namespaces -o wide
kubectl get pvc --all-namespaces
kubectl get svc --all-namespaces
```

For stateful workloads (databases), prefer application-level dump/restore (`pg_dump`, `mysqldump`) over Velero filesystem backup for guaranteed consistency.

## 7. Observability setup

Most VKE users already run self-managed Prometheus + Grafana. If so, these migrate as-is; only PVC StorageClass references need updating.

If starting fresh, install the self-managed observability stack:

```bash
helm upgrade --install kube-prometheus-stack \
  prometheus-community/kube-prometheus-stack \
  --version 72.9.1 \
  --namespace monitoring --create-namespace

helm upgrade --install loki grafana/loki-stack \
  --namespace monitoring \
  --set promtail.enabled=true \
  --set loki.persistence.storageClassName=cinder-flash
```

Match the chart version to your cluster's Kubernetes version. From chart version 73.0.0 the `kube-prometheus-stack` chart requires Kubernetes 1.25 or later. Quake AI Magnum cluster templates run Kubernetes 1.24.16, so pin `--version 72.9.1`, the last chart release that supports 1.24. On a cluster running Kubernetes 1.25 or later, omit the `--version` flag to install the current chart.

VKE's basic node and cluster metrics in the Vultr Customer Portal have no equivalent on Quake AI. All monitoring is self-managed.

## 8. Auto-scaling alternatives

| VKE feature | Quake AI equivalent |
|---|---|
| Managed node-pool autoscaling (VKE API) | Cluster Autoscaler with OpenStack provider, or manual Nova scaling via OpenTofu |
| HPA | Fully portable |
| VPA | Fully portable |

VKE node-pool autoscaling supports min/max bounds per pool. The equivalent on Quake AI is the OpenStack Cluster Autoscaler or manual scaling of the OpenTofu-managed worker pool.

## 9. Validation checklist

- [ ] All pods in Running or Completed state
- [ ] PVCs bound to Cinder volumes with correct data
- [ ] Ingress routes working through the ingress controller's public `LoadBalancer` Service
- [ ] DNS resolves to new Floating IPs
- [ ] Prometheus scraping all targets
- [ ] No `vultr-loadbalancer-*` annotations remaining
- [ ] No Vultr Container Registry image references remaining
- [ ] No `VULTR_API_KEY` Secrets remaining (unless an external Vultr integration is still required)
- [ ] StatefulSet data integrity verified
- [ ] Application health checks passing

## 10. Provider-specific gotchas

| Gotcha | Impact | Mitigation |
|---|---|---|
| Vultr Container Registry credentials are account-scoped | Quake AI cannot pull from VCR without active credentials | Mirror all images before migration |
| Vultr-specific LB annotations are ignored by the OpenStack CCM | LB may not have the desired configuration | Review and remove `vultr-loadbalancer-*` annotations |
| VKE-injected operator labels / annotations | Vultr-injected metadata may persist in exports | Strip Vultr-injected metadata before restoring on Quake AI |
| VKE HA control plane SLA | Quake AI has no managed-control-plane SLA | Plan control-plane HA with 3 control-plane Nova instances across host aggregates, a stable control-plane endpoint, and regular etcd backups |
| VKE auto-upgrades | Quake AI does not auto-upgrade Kubernetes | Track upstream releases and schedule kubeadm/k3s/RKE2 upgrades on your own cadence |
| Vultr Load Balancer health-check semantics | The destination ingress controller may behave differently | Re-test health checks under load after migration |

## See also

- [Kubernetes migration overview](/docs/kubernetes/migration): all provider guides and portability matrix
- [Migrating from Vultr](/resources/migration/from-vultr): cross-service Vultr migration hub
- [Coming from Vultr](/resources/migration/coming-from-vultr): concept-translation reference
- [Network migration from Vultr VPC](/docs/network/migration/migrate-from-vultr-vpc): networking-specific migration
- [Object storage migration from Vultr](/docs/object/migration/migrate-from-vultr): storage migration
