Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions docs/guides/operator-private-gcp-confidential-space.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down