{
  "slug": "gcloud-beta-run-commands-add-ephemeral-disk-volumes-edf265b95f89",
  "title": "gcloud beta run commands add ephemeral-disk volumes",
  "tools": [
    "gcloud"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-04-07T00:00:00.000Z",
  "announced_at": "2026-04-07T00:00:00.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When configuring a Cloud Run service, job, or worker pool with an ephemeral disk, use the beta `gcloud run` command with `--add-volume` and `--add-volume-mount` to define and mount it.",
    "examples": [
      "gcloud beta run services update <SERVICE> --execution-environment=gen2 --add-volume=name=<VOLUME_NAME>,type=ephemeral-disk,size=<SIZE> --add-volume-mount=volume=<VOLUME_NAME>,mount-path=<MOUNT_PATH>",
      "gcloud beta run jobs update <JOB> --add-volume=name=<VOLUME_NAME>,type=ephemeral-disk,size=<SIZE> --add-volume-mount=volume=<VOLUME_NAME>,mount-path=<MOUNT_PATH>",
      "gcloud beta run worker-pools update <WORKER_POOL> --add-volume=name=<VOLUME_NAME>,type=ephemeral-disk,size=<SIZE> --add-volume-mount=volume=<VOLUME_NAME>,mount-path=<MOUNT_PATH>"
    ],
    "gotchas": [
      "Availability: In beta.",
      "--add-volume (required): Adds a volume; repeat the flag to add more. Its value must include `type`; `name` is required when `mount-path` is omitted and optional when `mount-path` is specified.",
      "type (required): Set to `ephemeral-disk` for this volume type.",
      "name (required): Volume name; required if `mount-path` is omitted, otherwise optional.",
      "size: Disk space allocated to the volume; docs give `10Gi` or `100G` as examples. The ephemeral disk guide specifies 1Gi–100Gi.",
      "mount-path: Path at which the volume is mounted. For multi-container services, specify it under `--add-volume-mount`.",
      "--add-volume-mount (required): Adds a mount; value must include `volume=<NAME>` and `mount-path=<PATH>`.",
      "volume (required): Name of a volume on the resource to mount.",
      "mount-path (required): Path in the container filesystem where the volume is mounted.",
      "--execution-environment (required): For service ephemeral disks, set to `gen2`; ephemeral disks are only available in the second generation execution environment.",
      "Prerequisite: Install and initialize the gcloud CLI, update components, and enable billing for the project.",
      "Prerequisite: For services, required roles are Cloud Run Developer (`roles/run.developer`) on the service and Service Account User (`roles/iam.serviceAccountUser`) on the service identity.",
      "Prerequisite: Ephemeral disks require the second generation execution environment; each volume must be 1Gi–100Gi.",
      "Applies to volumes with `type=ephemeral-disk`."
    ]
  },
  "why_it_matters": "Deploy or update a Cloud Run service, job, or worker pool with an ephemeral-disk volume.",
  "sources": [
    "https://docs.cloud.google.com/sdk/docs/release-notes#56400_2026-04-07",
    "https://docs.cloud.google.com/run/docs/configuring/services/ephemeral-disk",
    "https://docs.cloud.google.com/sdk/gcloud/reference/run/jobs/update",
    "https://docs.cloud.google.com/run/docs/configuring/workerpools/ephemeral-disk",
    "https://docs.cloud.google.com/sdk/gcloud/reference/beta/run/jobs/create",
    "https://docs.cloud.google.com/sdk/gcloud/reference/run/deploy"
  ],
  "rank": 0.91034,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "cloud-20261008",
    "verdict_id": "cloud-20261008:cloud-20261008-ee3d33a6500c11d3-6:gate",
    "evidence_hash": "c2a2232df86430a5e46c3f65d88e25ad222f649bcd48c700724bb1cb829bdc53"
  },
  "review": {
    "draft_hash": "9a7088a0b70ffb5aa0e864c3ce743bdd68441bdef5a619d7f55091c81350aea6",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "cloud-20261008:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.91 >= 0.9; 2 needed) and Jev gave 0.67 (>= 0.6 needed)."
  }
}
