This guide details how to install a fresh deployment of XManager on Cloud (XMC) as well as how to upgrade existing installations to newer versions:
- Automated Agent Deployment: Using the pre-configured xmc_deploy skill for fresh installations.
- Cluster Toolkit Blueprint v2: The recommended manual pathway for fresh installations using automated orchestration blueprints.
- Terraform and Helm: The direct, hands-on infrastructure deployment pathway.
- Upgrading an Existing Installation: Step-by-step instructions for upgrading existing deployments, running incremental Cloud Spanner schema migrations, building updated container images, and rolling out application upgrades.
- Local KinD Development & Fast Reload: Rapid inner-loop local development using
python3 tools/dev_env/dev_env.py upanddev_env.py reload [-w] [--helm](seedeploy/local/README.md).
Important
Working Directory: All commands in this guide must be executed from the root of the xmc repository directory.
Before launching any deployment pathway, ensure you have the following CLI tools installed:
| CLI Tool | Verification Command | Expected Outcome |
|---|---|---|
gcloud |
gcloud --version |
Prints Google Cloud SDK version info |
kubectl |
kubectl version --client |
Prints Kubernetes client version |
helm |
helm version |
Prints Helm client version (minimum 3.14.0) |
terraform |
terraform --version |
Prints Terraform version (minimum 1.12.2) |
gcluster |
./cluster-toolkit/gcluster version |
Prints gcluster tool version |
If you do not have gcluster installed locally, you must clone and build the Google Cloud HPC Toolkit:
- Clone the repository into a directory named
cluster-toolkitat the root of this workspace:git clone https://github.com/GoogleCloudPlatform/hpc-toolkit.git cluster-toolkit
- Navigate into the folder and build the tool:
cd cluster-toolkit && make && cd ..
This compiles the toolkit and produces the ./cluster-toolkit/gcluster CLI binary.
Before executing any deployment pathway, follow these configuration steps to prepare your environment. The steps described in this section assume highly privileged access to a GCP project and limited constraints stemming from organization policies. Please check your organization policies regarding the resources you are allowed to create - most companies will have very specific requirements around domain registration and certificates management.
Copy the blueprint configuration override template to create your deployment overrides configuration file:
cp deploy/ctk_v2/xmc-deployment-template.yaml deploy/ctk_v2/xmanager-cloud-deployment.yamlYou will configure your deployment variables by editing deploy/ctk_v2/xmanager-cloud-deployment.yaml.
The XMC services require OCI container images built from the codebase. You must build and push these images to Google Artifact Registry (or another registry of your choice) before deploying.
-
Create an Artifact Registry repository in your GCP project:
gcloud artifacts repositories create xmc \ --repository-format=docker \ --location=<LOCATION> \ --description="XMC Container Images" -
Configure Docker authentication to access the repository:
gcloud auth configure-docker <LOCATION>-docker.pkg.dev
-
Set environment variables specifying your target registry path, environment name suffix, and tag:
export XMC_ACR_TARGET="<LOCATION>-docker.pkg.dev/<PROJECT_ID>/xmc" export XMC_ENV="dev" # Match your deployment environment name export BUILD_TAG="<IMAGE_TAG>"
-
Build and push the images using the generated Bazel targets:
bazel run //cmd/xid_service:xid_service_image_push bazel run //cmd/actuator:actuator_image_push bazel run //cmd/experiment_state_server:experiment_state_server_image_push bazel run //cmd/ui:ui_image_push bazel run //cmd/reconciler:reconciler_image_push bazel run //cmd/log_monitor:log_monitor_image_push bazel run //cmd/health_service:health_service_image_push bazel run //cmd/dashboard_service:dashboard_service_image_push bazel run //cmd/rod_data_provider:rod_data_provider_image_push bazel run //cmd/ingestion_gateway:ingestion_gateway_image_push bazel run //cmd/xmc_bridge:xmc_bridge_image_push
-
Update image variables in your deployment configuration file (e.g.
xmanager-cloud-deployment.yaml, copy of xmc-deployment-template.yaml):image_registry: "<LOCATION>-docker.pkg.dev/<PROJECT_ID>/xmc" image_tag: "<IMAGE_TAG>"
XMC relies on GKE Gateway API to expose HTTP, HTTPS, and gRPC endpoints externally on a single global external static IP address.
- Gateway Routing: The Gateway routes incoming traffic to the appropriate service (e.g. UI, ESS backend, or gRPC) using HTTP host headers.
- TLS/SSL Provisioning: Google Trust Services (GTS) or Let's Encrypt requires a valid, publicly resolvable DNS domain to verify domain ownership (via ACME HTTP/DNS challenges) before issuing certificates.
If you are deploying to a development, staging, or testing environment and do not have a dedicated corporate/personal domain name, you have two options to provision DNS records:
If your organization maintains a delegated DNS zone (e.g. in Cloud DNS) for development clusters:
- Set the
domain_namevariable in your configuration to the shared technical domain (e.g.example.com). - Segment your setup using a unique
environmentsuffix (e.g.my-dev). The blueprints automatically route the endpoints to:- UI:
my-dev.example.com - API:
api.my-dev.example.com - gRPC:
grpc.my-dev.example.com
- UI:
- Map the Gateway's static IP (retrieved during deployment) to these domain names by adding A records in the DNS managed zone of your shared domain.
If you do not have any custom domain or DNS zone, you can use Google Cloud Endpoints to register free public DNS records under Google's managed cloud.goog domain.
The domain names will have the following structure:
- UI:
<environment>.endpoints.<project_id>.cloud.goog - API:
api.<environment>.endpoints.<project_id>.cloud.goog - gRPC:
grpc.<environment>.endpoints.<project_id>.cloud.goog
To configure this:
-
In your configuration file (e.g.
xmanager-cloud-deployment.yaml), set thedomain_namevariable to:domain_name: "endpoints.<project_id>.cloud.goog"
(Replace
<project_id>with your Google Cloud Project ID) -
After compiling and deploying the core infrastructure to retrieve the Gateway's global static IP address (Step 6 of the deployment process), you must register the three subdomains. Create three YAML configuration files containing the Endpoint configurations:
ui-dns.yaml:swagger: "2.0" info: description: "UI DNS for XMC" title: "XMC UI DNS" version: "1.0.0" host: "<environment>.endpoints.<project_id>.cloud.goog" x-google-endpoints: - name: "<environment>.endpoints.<project_id>.cloud.goog" target: "<gateway_external_ip>" paths: {}
api-dns.yaml:swagger: "2.0" info: description: "API DNS for XMC" title: "XMC API DNS" version: "1.0.0" host: "api.<environment>.endpoints.<project_id>.cloud.goog" x-google-endpoints: - name: "api.<environment>.endpoints.<project_id>.cloud.goog" target: "<gateway_external_ip>" paths: {}
grpc-dns.yaml:swagger: "2.0" info: description: "gRPC DNS for XMC" title: "XMC gRPC DNS" version: "1.0.0" host: "grpc.<environment>.endpoints.<project_id>.cloud.goog" x-google-endpoints: - name: "grpc.<environment>.endpoints.<project_id>.cloud.goog" target: "<gateway_external_ip>" paths: {}
-
Deploy these service configurations to Google Cloud Endpoints:
gcloud endpoints services deploy ui-dns.yaml gcloud endpoints services deploy api-dns.yaml gcloud endpoints services deploy grpc-dns.yaml
Note: Creating these Endpoints automatically registers public DNS A records pointing to
<gateway_external_ip>under thecloud.googzone.
XMC uses an application-level Google OAuth2 flow. This requires Google OAuth 2.0 Web Client credentials (configured via iap_client_id and iap_client_secret).
- Navigate to the APIs & Services > Credentials console page.
- Select your Google Cloud project.
- Configure the OAuth consent screen if not done previously (choose Internal for restricted/private access, fill in App Name, User support email, and developer contact).
- On the Credentials page, click + Create Credentials > OAuth client ID.
- Select Web application as the application type.
- Name your client (e.g.,
XMC Web Application). - Under Authorized redirect URIs, add:
https://api.<environment>.<domain>/api/callback(Substitute<environment>and<domain>with your configured suffix and domain, e.g.https://api.xmc.example.com/api/callback).
- Click Create and copy the resulting Client ID and Client Secret into your
xmanager-cloud-deployment.yaml:iap_client_id: "YOUR_OAUTH_CLIENT_ID" iap_client_secret: "YOUR_OAUTH_CLIENT_SECRET"
For detailed guidance, refer to the OAuth 2.0 APIs Credentials Documentation.
To configure SSL, XMC needs Google Trust Services (GTS) External Account Binding (EAB) credentials.
- Enable the Public CA API in your Google Cloud Project:
gcloud services enable publicca.googleapis.com - Request a new External Account Key:
gcloud publicca external-account-keys create
- The command will output a
keyIdandb64MacKey(HMAC key). Map these to:gts_key_id/certs.gts.keyId: Alphanumeric ID string (e.g.a1b2c3d4e5f6g7h8i9j0).gts_hmac_key/certs.gts.hmacKey: Base64-encoded HMAC key secret (e.g.A1b2C3d4E5f6G7h8I9j0K1l2==).certs_email: A valid email address registered with GTS to receive certificate expiration alerts (e.g.,admin@example.com).
Configure these in your xmanager-cloud-deployment.yaml:
certs_email: "your-email@example.com"
gts_key_id: "your-gts-key-id"
gts_hmac_key: "your-gts-hmac-key"If you are running an AI-assisted agent session, the agent can automate the entire deployment of the Cluster Toolkit v2 blueprint.
Agent skill for deploying XMC is defined within the workspace:
- Location: The deployment skill is located in the xmc_deploy skill directory.
- Integration: To equip your agent session with this skill, ensure the
.agents/directory is present in the root of the workspace. The agent automatically scans this folder upon startup and registers the workflows. No manual import should be needed.
Instruct the agent:
Deploy XMC using the blueprint configuration at
deploy/ctk_v2/xmanager-cloud-deployment.yaml
- Pre-flight Check: Validates the presence of
gcloud,kubectl,helm,terraform, andgcluster. - Blueprint Compilation:
./cluster-toolkit/gcluster create deploy/ctk_v2/xmanager-cloud.yaml -d <deployment_config_path> -o ctk-out -l WARNING -w --force
- Deploy APIs (
apisgroup):./cluster-toolkit/gcluster deploy ctk-out/<deployment_name> --only apis --auto-approve
- Deploy Core Infrastructure (
primarygroup):./cluster-toolkit/gcluster deploy ctk-out/<deployment_name> --only primary --auto-approve
- Extract Static IP & Pause for DNS / OAuth Settings:
The agent retrieves the global external static IP:
gcloud compute addresses describe xmc-gateway-static-ip-<environment> --global --project=<project_id> --format='value(address)'
[!IMPORTANT] The agent will pause here and ask you to:
- Configure A records in your authoritative DNS for the external IP (e.g.
<environment>.example.com,api.<environment>.example.com,grpc.<environment>.example.com). - Add the OAuth redirect URI in your GCP Console:
https://<environment>.example.com/api/callback.
Once done, reply to the agent to resume execution.
- Configure A records in your authoritative DNS for the external IP (e.g.
- Deploy Compute Cluster (
computegroup):./cluster-toolkit/gcluster deploy ctk-out/<deployment_name> --only compute --auto-approve
- Enable GKE Gateway API standard channel:
Before deploying the system Helm charts, the GKE cluster must have the standard Gateway API controller addon enabled:
gcloud container clusters update <cluster_name> --gateway-api=standard --region=<region> --project=<project_id>
- Install Kubernetes Prerequisites (
kubernetes_prereqsgroup):./cluster-toolkit/gcluster deploy ctk-out/<deployment_name> --only kubernetes_prereqs --auto-approve
- Deploy Application (
xmc_appgroup):./cluster-toolkit/gcluster deploy ctk-out/<deployment_name> --only xmc_app --auto-approve
- Post-Deployment Verification:
The agent runs:
And checks that the gateway status is programmed and GTS certificate is active.
python3 ./deploy/ctk_v2/verify_xmc.py
We provide automated HPC Cluster Toolkit blueprints to compile and deploy the entire GCP and GKE stack:
-
Step-by-step Compilation: Follow the step-by-step instructions on compilation and group-by-group deployments in the deploy/ctk_v2/README.md (including Terraform State Storage (
terraform.tfstate) guidance on storing infrastructure state outside repository worktrees via GCS or an external host directory). -
Execute Deployment: Run
gcluster deploycommand groups sequentially, checking resource state transitions as you go. -
Install Optional Catalog Components (
stable-2026aProfile): Every optional catalog component (redpanda,clickhouse,ingestion-gateway) is disabled by default. Create aprofile-values.yamlthat enables the ones you need (redpanda/clickhouseexpect the BYO add-ons fromdeploy/addons/metricsto be reachable), then install thestable-2026acatalog profile:# profile-values.yaml — enable the metrics pipeline components: redpanda: enabled: true clickhouse: enabled: true ingestion-gateway: enabled: true
helm upgrade --install --reset-then-reuse-values xmc-profile ./deploy/profiles/stable-2026a -n xmc -f profile-values.yaml --wait
If
dashboard-servicewas already running before you enabledclickhouse(orbigquery), wait untilxmc-bridgehas reconciled the enabled component (usecomponent.xmc.dev/bigquerywhen enabling BigQuery) and then restart it once so it picks up the new data engine:kubectl wait component.xmc.dev/clickhouse -n xmc --for=condition=Ready --timeout=120s && kubectl rollout restart deployment/dashboard-service-deployment -n xmc.XMC
1.0.1+also ships the previewstable-2026bprofile (not released yet; it may change incompatibly), installed the same way from./deploy/profiles/stable-2026b.
For direct control over your infrastructure:
- Provision Infrastructure: Use your organization's custom Terraform pipeline to provision the GCP resources:
- VPC network and subnetworks.
- GKE cluster with Workload Identity enabled.
- Cloud Storage FUSE CSI driver add-on enabled on the GKE cluster (required for GCS volumes).
- Cloud Spanner database instance.
- Memorystore Redis cache.
- Deploy Helm Release: Point your local kubeconfig context to the cluster and deploy the application chart:
For details on configuring values, refer to deploy/helm/values.yaml.
helm upgrade --install xmc ./deploy/helm -n xmc --create-namespace -f my-values.yaml
xmc-bridgeis a mandatory controller in1.0.0+: setxmc_bridge_custom_image(andingestion_gateway_custom_image, whichxmc-bridgeuses as the default Ingestion Gateway image) like the other*_custom_imagevalues. Whenxmc_bridge_custom_imageis empty the chart derivesus-docker.pkg.dev/<projectId>/xmc/xmc-bridge-<environment>:<imageTag>, which only matches the push commands above if<LOCATION>isusandimageTagequalsBUILD_TAG. - Install Optional Catalog Components (
stable-2026aProfile): Every optional catalog component (redpanda,clickhouse,ingestion-gateway) is disabled by default. Create aprofile-values.yamlthat enables the ones you need (see the example in Approach 2, step 3), then install thestable-2026acatalog profile:Ifhelm upgrade --install --reset-then-reuse-values xmc-profile ./deploy/profiles/stable-2026a -n xmc -f profile-values.yaml --wait
dashboard-servicewas already running before you enabledclickhouse(orbigquery), wait untilxmc-bridgehas reconciled the enabled component (usecomponent.xmc.dev/bigquerywhen enabling BigQuery) and then restart it once so it picks up the new data engine:kubectl wait component.xmc.dev/clickhouse -n xmc --for=condition=Ready --timeout=120s && kubectl rollout restart deployment/dashboard-service-deployment -n xmc.
When updating an existing XMC installation to a newer version or release branch, infrastructure resources (such as VPC networks, GKE clusters, Spanner instances, and OAuth configuration) remain in place. Upgrading requires applying incremental database schema migrations, building updated container images, and rolling out application workload updates to your Kubernetes cluster.
You can perform the upgrade either using the automated script (recommended for development environments) or manually step-by-step.
Warning
The automated upgrade script is designed only for development and testing environments. It builds and pushes images directly from your local workspace and triggers rolling restarts which are not suitable for production deployments. For production environments, follow the manual upgrade steps (Option B) to ensure proper release management.
To upgrade an existing running XMC development environment on GKE to the latest code in your current local branch (HEAD), you can use the automated upgrade command:
By default, the script uses the deployment configuration file at deploy/ctk_v2/xmanager-cloud-deployment.yaml. You can specify a custom configuration file using the --config (or -c) flag.
Tip
You can optionally define environment variable overrides (e.g., PROJECT_ID, K8S_NAMESPACE, XMANAGER_ENV) in your active shell before running the script to bypass values defined in the YAML configuration. You can copy .env.example to .env and export them:
set -o allexport; source .env; set +o allexportRun the upgrade command (legacy ./tools/upgrade_dev_env.py is also supported):
# Run pre-flight verification checks
python3 ./tools/dev_env/dev_env.py gke-upgrade --only check
# Upgrade environment end-to-end (checks migrations, rebuilds/pushes images, deploys app workloads, and restarts services)
python3 ./tools/dev_env/dev_env.py gke-upgradeIf you are running an agent session, the agent will automatically use the upgrade script. Ask the agent:
Upgrade my XMC environment
The agent will automatically authenticate, check for database migrations, compile and push updated OCI container images from your current branch, upgrade the application workloads using Cluster Toolkit (gcluster), initiate a rolling rollout restart across the microservices, and verify deployment rollout health.
Follow this step-by-step workflow to upgrade an existing XMC deployment manually:
Navigate to the root of your xmc repository workspace and update your local repository:
git checkout main
git pull origin main(If deploying a specific release tag or release branch, check out that tag/branch instead.)
Rebuild all XMC OCI container images from the updated source code and push them to your Google Artifact Registry repository specifying your target release tag (<IMAGE_TAG>) so that Kubernetes workloads pull the updated service binaries. Ensure you also update your deployment configuration file (e.g., xmanager-cloud-deployment.yaml or values.yaml) with the new <IMAGE_TAG> before upgrading:
export XMC_ACR_TARGET="<LOCATION>-docker.pkg.dev/<PROJECT_ID>/xmc"
export XMC_ENV="<ENVIRONMENT>" # Match your deployment environment tag
export BUILD_TAG="<IMAGE_TAG>"
bazel run //cmd/xid_service:xid_service_image_push
bazel run //cmd/actuator:actuator_image_push
bazel run //cmd/experiment_state_server:experiment_state_server_image_push
bazel run //cmd/ui:ui_image_push
bazel run //cmd/reconciler:reconciler_image_push
bazel run //cmd/log_monitor:log_monitor_image_push
bazel run //cmd/health_service:health_service_image_push
bazel run //cmd/dashboard_service:dashboard_service_image_push
bazel run //cmd/rod_data_provider:rod_data_provider_image_push
bazel run //cmd/ingestion_gateway:ingestion_gateway_image_push
bazel run //cmd/xmc_bridge:xmc_bridge_image_pushExisting Cloud Spanner databases (ess and xid) must be upgraded to apply any new incremental DDL migrations introduced in the updated version.
XMC provides a dedicated self-contained CLI migration tool (//internal/storage/spanner/migrations:migrations) built on top of golang-migrate that integrates with Bazel and handles Spanner proto-descriptor updates automatically for DDL execution.
Migration files are embedded into the migration binary and are organized in the codebase under internal/storage/spanner/migrations/ by service component:
internal/storage/spanner/migrations/ess/: Experiment State Server (ess) database migrations.internal/storage/spanner/migrations/xid/: XID Service (xid) database migrations.
Each directory contains sequential pairs of .up.sql and .down.sql migration scripts prefixed with a 3-digit sequential version number (e.g., 001_baseline.up.sql, 002_artifactinfo.up.sql).
The migration tool is executed using bazel run:
bazel run //internal/storage/spanner/migrations:migrations -- [FLAGS] [ARG]| Flag | Description | Mandatory |
|---|---|---|
--command |
The migration command to execute: up, down, version, force, init, create. |
Yes |
--migrations_dir |
Name of the migration directory (ess or xid). |
Yes |
--project |
Google Cloud Project ID. | Yes (except create) |
--instance |
Spanner Instance ID. | Yes (except create) |
--database |
Spanner Database ID. | Yes (except create) |
Before applying migrations, inspect the current schema version and check if either database is marked as "dirty":
# Check ESS database schema version
bazel run //internal/storage/spanner/migrations:migrations -- \
--project="<PROJECT_ID>" \
--instance="<SPANNER_INSTANCE_ID>" \
--database="<ESS_DATABASE_ID>" \
--migrations_dir="ess" \
--command="version"
# Check XID database schema version
bazel run //internal/storage/spanner/migrations:migrations -- \
--project="<PROJECT_ID>" \
--instance="<SPANNER_INSTANCE_ID>" \
--database="<XID_DATABASE_ID>" \
--migrations_dir="xid" \
--command="version"Run the up command against both the ess and xid databases to apply all pending schema migrations sequentially:
# Apply all pending migrations for ESS database
bazel run //internal/storage/spanner/migrations:migrations -- \
--project="<PROJECT_ID>" \
--instance="<SPANNER_INSTANCE_ID>" \
--database="<ESS_DATABASE_ID>" \
--migrations_dir="ess" \
--command="up"
# Apply all pending migrations for XID database
bazel run //internal/storage/spanner/migrations:migrations -- \
--project="<PROJECT_ID>" \
--instance="<SPANNER_INSTANCE_ID>" \
--database="<XID_DATABASE_ID>" \
--migrations_dir="xid" \
--command="up"To apply only a specific number of incremental migration steps (e.g., the next 2 migrations), pass the step count as a positional argument:
bazel run //internal/storage/spanner/migrations:migrations -- \
--project="<PROJECT_ID>" \
--instance="<SPANNER_INSTANCE_ID>" \
--database="<ESS_DATABASE_ID>" \
--migrations_dir="ess" \
--command="up" \
2- Revert Applied Migrations (
down): To roll back applied migrations, rundownwith the number of steps to revert (defaults to1). The command previews SQL changes and prompts for confirmation:bazel run //internal/storage/spanner/migrations:migrations -- \ --project="<PROJECT_ID>" \ --instance="<SPANNER_INSTANCE_ID>" \ --database="<ESS_DATABASE_ID>" \ --migrations_dir="ess" \ --command="down" \ 1
- Clear a Dirty State or Adopt an Existing Database (
force): If a migration fails halfway through execution, the schema version table is marked as "dirty". Additionally, if you are upgrading an existing database that was created before the migration system was introduced, you must use this command to set the initial schema version (e.g., 1) so that subsequent migrations can be applied. After resolving the database state, force the schema version number:bazel run //internal/storage/spanner/migrations:migrations -- \ --project="<PROJECT_ID>" \ --instance="<SPANNER_INSTANCE_ID>" \ --database="<ESS_DATABASE_ID>" \ --migrations_dir="ess" \ --command="force" \ <TARGET_VERSION>
- Fresh Installation Initialization (
init):[!NOTE] The
initcommand initializes the schema version in the database migration table to the latest available migration version without executing any SQL files. This command is intended strictly for fresh installations where the full schema has already been created from baseline DDL files (internal/storage/spanner/schema/ess-schema.sqlorinternal/storage/spanner/schema/xid-schema.sql). Do not runinitwhen upgrading an existing installation. - Create New Migration Files (
create): For developers adding schema changes to XMC, generate a new pair of sequential.up.sqland.down.sqlfiles insideinternal/storage/spanner/migrations/<migrations_dir>/:bazel run //internal/storage/spanner/migrations:migrations -- \ --migrations_dir="ess" \ --command="create" \ add_user_table
- Manual Schema Check (
gcloud): In case a manual check is needed for the current spanner schema:gcloud spanner databases ddl describe --project=<PROJECT_ID> --instance=<SPANNER_INSTANCE_ID> <ESS_DATABASE_ID|XID_DATABASE_ID>
Warning
Pre-Upgrade Requirement for < 1.0.0 Legacy Metrics Deployments: Deployments upgrading from < 1.0.0 (<= 0.18.x) with umbrella-managed ingestion-gateway MUST follow the one-time zero-downtime cutover runbook in docs/migrations/components.md (prepare + handoff before running Step 4, and finalize after) rather than upgrading directly. XMC 1.0.0+ removes legacy non-component gateway templates and static ClickHouse env injection (enable_metrics / metrics.enabled). Direct Helm upgrades fail closed on componentsDeployment.enabled: false or ingestionGatewayDeployment.enabled: true, and tools/dev_env rejects enable_components: false and the retired enable_metrics / ingestion_gateway_deployment_enabled / clickhouse_{host,port,database,user} keys; a standalone gcluster create only warns about unused variables, so CTK operators must remove those legacy keys from xmanager-cloud-deployment.yaml / my-values.yaml before upgrading (retaining clickhouse_password / metrics.clickhouse.{secretName,password} for ClickHouse credentials).
secrets.csi.clickhousePasswordSecretNamenow defaults to"". CSI releases (secrets.csi.enabled: true) that read the ClickHouse password from Secret Manager must setsecrets.csi.clickhousePasswordSecretNameexplicitly (previously implied"clickhouse-password") before upgrading; otherwisedashboard-servicefalls back toSecret/clickhouse-secret.- Operators on
0.18.xwho already run Components (xmc-bridgeactive, wheremigrate.py preparerefuses to run) withComponent/clickhousedisabled while relying on custommetrics.clickhouse.{host,port,database,user}values must move those settings intocomponents.clickhouse.parameters(host,nativePort,defaultDatabase,user,secretName) inxmc-profileand setcomponents.clickhouse.enabled: true(waiting untilxmc-bridgereconciles it and restarting once ifxmc-profileis applied afterdashboard-servicestarts:kubectl wait component.xmc.dev/clickhouse -n xmc --for=condition=Ready --timeout=120s && kubectl rollout restart deployment/dashboard-service-deployment -n xmc); otherwiseGetChartDatareturnsFailedPrecondition: data engine is not configuredafter the upgrade.
Once database schemas and container images are updated, upgrade the Kubernetes workloads in your GKE cluster.
Re-compile the blueprint so ctk-out/<deployment_name> picks up your updated deployment configuration (for example the new image_tag) and chart templates (removing .ghpc/staged first if upgrading across a release that deleted chart templates), then re-run deployment for the application group (xmc_app) to roll out updated deployments and services:
rm -rf ctk-out/<deployment_name>/.ghpc/staged
./cluster-toolkit/gcluster create deploy/ctk_v2/xmanager-cloud.yaml -d <deployment_config_path> -o ctk-out -l WARNING -w --force
./cluster-toolkit/gcluster deploy ctk-out/<deployment_name> --only xmc_app --auto-approveIf managing workloads via direct Helm releases, point your kubectl context to your GKE cluster and upgrade the xmc Helm chart:
helm upgrade --install xmc ./deploy/helm -n xmc --create-namespace -f my-values.yamlWhenever the xmc-profile catalog release is installed on the cluster, upgrade it alongside the umbrella release (first updating any pinned imageTag or parameters.image tag in profile-values.yaml to match <IMAGE_TAG>; see After Migration: Upgrading XMC):
helm upgrade --install --reset-then-reuse-values xmc-profile ./deploy/profiles/stable-2026a -n xmc -f profile-values.yaml --wait(Omit -f profile-values.yaml if your xmc-profile release uses no values file.)
Run the verification script from the repository root to verify that all upgraded pods are running, endpoints respond correctly, and Gateway TLS certificates remain healthy:
python3 ./deploy/ctk_v2/verify_xmc.pySupply these parameters in your Cluster Toolkit overrides file (xmanager-cloud-deployment.yaml) or your Helm overrides (values.yaml):
| Parameter Name | Required? | Default Value | Used By / Description |
|---|---|---|---|
project_id |
Yes | - | Target Google Cloud Project ID |
deployment_name |
Yes | - | Unique prefix for resource naming (e.g. xmc-v2-run) |
region |
Yes | - | Google Cloud region for resource provisioning (e.g. us-west1) |
domain_name |
Yes | - | Base DNS domain name for external endpoints (e.g. example.com) |
environment |
Yes | - | Sub-environment descriptor for Spanner database keys (e.g. dev) |
iap_client_id |
Yes | - | Google OAuth Client ID for identity verification |
iap_client_secret |
Yes | - | Google OAuth Client Secret for identity verification |
jwt_secret |
Yes | - | Secret key used by ESS backend to sign session cookies |
allowed_emails |
Conditional | - | Comma-separated list of emails authorized to log in, including CI service accounts (see Authentication) - required when authorized_iam_role is not provided |
authorized_iam_role |
Conditional | - | GCP IAM role for user workload access - required when allowed_emails is not provided |
admin_iam_role |
No | "roles/owner" |
GCP IAM role required for administrative access (Health Service, Admin Panel) |
certs_email |
Yes | - | Owner email registered with Google Trust Services (GTS) |
gts_key_id |
Yes | - | GTS External Account Binding key ID for certificates |
gts_hmac_key |
Yes | - | GTS External Account Binding HMAC secret for certificates |
image_registry |
Yes | - | Target Google Artifact Registry repository path for XMC images |
image_tag |
No | "latest" |
OCI container image tag to deploy (e.g. git commit hash or release version) |
namespace |
No | "xmc" |
Target Kubernetes namespace for services |
gcp_public_cidrs_access_enabled |
No | false |
Toggles public endpoints on the GKE Control Plane |
deletion_protection |
No | false |
Enables deletion protection on supported GCP resources (databases, Cloud Run) |
authorized_cidr |
No | "0.0.0.0/0" |
Authorized IP CIDR allowed to connect to GKE master |
task_signature_ttl_seconds |
No | 86400 |
Validity duration of task signature tokens |
pause_scheduling_enabled |
No | true |
Enables the global workload scheduling pause feature across the Admin Panel, Health Service, Actuator, and ESS |
log_monitor_deployment_enabled |
No | true |
Runs the Log Monitor as a GKE Deployment (true) instead of a Cloud Run service (false) |
health_scheduling_resume_batch_size |
No | 100 |
Number of paused tasks replayed per batch from Spanner during unpause resumption |
health_scheduling_resume_max_backlog |
No | 500 |
Maximum unprocessed tasks in xmc-tasks-stream before resumption worker pauses replay |
use_redis_queue |
No | true |
Uses Memorystore Redis for internal queues when true |
deploy_redis |
No | true |
Provisions Memorystore Redis instance when true |
redis_region |
No | - | Memorystore Redis region (defaults to region above) |