Azure (AKS) - Updating a cluster
Change SKUs, node count, Kubernetes version, and the PodVM image on a running Verifiable Confidential Containers deployment on AKS.
Once a cluster is provisioned with the Azure (AKS) walkthrough, it can be changed by re-opening the same deploy link and selecting the update mode. The deployment process picks up the existing cluster and only modifies changed values.
Open the template in update mode
- Visit https://azure-vcoco.prod.eqtylab.io.
- Select the same
subscription,resource group, andregionused to deploy. - Set
Deployment modetoUpdate an existing verifiable compute clusterthen clickNext - Pick the previously deployed cluster from the dropdown then click
Next. - All the deployment fields are prefilled with the existing values. Update fields that need to be changed, then click
Nextand deploy.
Confirm the update
Pull fresh credentials and check the runtime class is still installed:
az aks get-credentials -g <rg> -n <cluster>
kubectl get runtimeclassThen verify modified fields.
Node count and node size.
kubectl get nodes -o wide
kubectl get nodes -o jsonpath='{range .items[*]}{.metadata.name}{"\t"}{.metadata.labels.node\.kubernetes\.io/instance-type}{"\n"}{end}'Kubernetes version. Check the VERSION column from kubectl get nodes. For the control plane:
kubectl versionConfidential node size, pod disk size, scratch disk, and PodVM image. Get the values in the peer-pods-cm ConfigMap which is read by the Cloud API Adaptor.
kubectl get cm peer-pods-cm -n confidential-containers-system -o yamlLook for AZURE_INSTANCE_SIZE (confidential pod SKU), the root volume and scratch disk entries, and the Azure image ID. After a change, the adaptor should be restarted automatically. Confirm the new values were picked up:
kubectl rollout status ds/cloud-api-adaptor-daemonset -n confidential-containers-system
kubectl logs -n confidential-containers-system -l app=cloud-api-adaptor | grep -E "Size:|ImageId:"To test that new pods use the new configuration, schedule a pod with the kata-remote runtime class and inspect the confidential VM it creates in the Azure Portal or with az vm list -g <peer-pod-rg>.
Notes
- An update can take up to 30 minutes, the same as the initial deploy, depending on which fields changed.
- Existing peer pods keep the SKU, disk size, scratch setting, and PodVM image they were created with. New values only apply to peer pods scheduled after the update finishes. Redeploy workloads to pick up the new configuration.
Region,resource group, andcluster namerequire a fresh deploy to change.- Leaving the
PodVM download linkblank keeps the currently installed PodVM image. Provide a new URL only when updating the PodVM image. - AKS allows moving a control plane forward one minor version at a time and does not support Kubernetes downgrades.