From b3083ce369ee3da3b6170f80a0fa79373e78b491 Mon Sep 17 00:00:00 2001 From: Behnam Mozafari Date: Tue, 1 Dec 2026 14:22:44 +1100 Subject: [PATCH] UID2-6791: Document Confidential Space image refresh for GCP private operators Co-Authored-By: Claude Sonnet 5.5 --- .../operator-private-gcp-confidential-space.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/guides/operator-private-gcp-confidential-space.md b/docs/guides/operator-private-gcp-confidential-space.md index 7cb820720..cd226e1d4 100644 --- a/docs/guides/operator-private-gcp-confidential-space.md +++ b/docs/guides/operator-private-gcp-confidential-space.md @@ -532,10 +532,26 @@ If you're upgrading to a new version, the upgrade process depends on the deploym If you previously deployed the Private Operator for GCP using the Terraform template, compare the latest version of the template with the one you used when you deployed. If there are changes, make sure to redeploy to include all the updates. +When you apply a version of the template that references the Confidential Space image family, the managed instance group replaces all of its VMs once, one batch at a time, without reducing capacity. Make sure your project has quota for three additional VMs of the configured machine type during the replacement. + +### Refreshing the Confidential Space image + +A VM keeps the Confidential Space image it was created with, and restarting a VM doesn't change it. Google keeps each image `STABLE` for only about six months, and UID2 accepts only operators that run a `STABLE` image. Refresh your VMs at least every 5 months, and whenever UID2 notifies you that your image is being retired. + +For the Terraform template, replace all the VMs in the managed instance group so that they're created from the latest image in the family: + +``` +gcloud compute instance-groups managed rolling-action replace {MIG_NAME} --region {REGION} +``` + +Don't use `rolling-action restart`, which keeps the existing boot disk and image. Re-running `terraform apply` doesn't refresh the image if the template hasn't changed. + ### Upgrading—gcloud CLI If you deployed using the gcloud CLI, you must manually bring up new instances that use the new `{OPERATOR_IMAGE}` and then shut down old instances. +Create the new instances with `--image-family=confidential-space` so that they use the latest Confidential Space image. Rebooting or restarting an existing instance doesn't update its image. Recreate your instances at least every 5 months; see [Refreshing the Confidential Space image](#refreshing-the-confidential-space-image). + If you previously set up a load balancer manually, you'll also need to update the mapping for the load balancer. ## Scraping metrics