CloudEstimate

Size Harbor Registry on Google Cloud

Medium — organization registry with concurrent CI/CD pulls, Trivy scanning, and 5 TB OCI blobs

Monthly cost

$1,255.19

Annual cost

$15,062/year

Line-item breakdown

Compute $1,055.19
Storage $200.00
Other $0.00
Arm64 option (Google Axion (C4A)) $1,244.81/mo

Saves $10.38/mo (1%) across c4a-standard-8, c4a-standard-4, c4a-highmem-4, c4a-highmem-2.

Components provisioned

Role Instance vCPU GB RAM Storage
Harbor Core Jobservice 2 × n4-standard-8 8 32 200 GB ssd
Trivy Scanner 2 × n4-standard-4 4 16 150 GB ssd
Database 1 × n4-highmem-4 4 32 250 GB ssd
Cache 1 × n4-highmem-2 2 16 50 GB ssd
Object Storage 1 × object-bucket — — 5 TB object

Why this sizing

This medium tier on Google Cloud supports an organization registry handling concurrent CI/CD pulls, Trivy scanning, and five terabytes of blobs in us-central1 with high availability disabled. Compute drives monthly expenses at one thousand fifty-five dollars and nineteen cents, using the n4-standard-8 family for core services. Operators must run single database and cache instances, meaning regional database failures cause total registry downtime.

Export

Share the current URL or copy the Google Cloud Terraform / OpenTofu baseline.

Google Cloud Terraform / OpenTofu baseline
# Compatible with Terraform >= 1.6 and OpenTofu >= 1.6
terraform {
  required_version = ">= 1.6.0"

  required_providers {
    google = {
      source  = "hashicorp/google"
      version = "~> 6.0"
    }
  }
}

variable "project_id" {
  description = "Google Cloud project ID for this deployment."
  type        = string
  default     = "replace-with-project-id"
}

provider "google" {
  project = var.project_id
  region  = "us-central1"
}

locals {
  zones = ["us-central1-a", "us-central1-b", "us-central1-c"]
}

# Generated for Google Cloud (us-central1) from the current estimate state.
resource "google_compute_disk" "harbor_core_jobservice_1_data" {
  count = 2
  name  = "harbor-harbor-core-jobservice-1-data-${count.index + 1}"
  type  = "hyperdisk-balanced"
  zone  = local.zones[count.index % length(local.zones)]
  size  = 200
}

resource "google_compute_instance" "harbor_core_jobservice_1" {
  count        = 2
  name         = "harbor-harbor-core-jobservice-1-${count.index + 1}"
  machine_type = "n4-standard-8"
  zone         = local.zones[count.index % length(local.zones)]

  boot_disk {
    initialize_params {
      image = "projects/debian-cloud/global/images/family/debian-12"
      size  = 50
      type  = "hyperdisk-balanced"
    }
  }

  network_interface {
    network = "default"
    access_config {}
  }

  attached_disk {
    source = google_compute_disk.harbor_core_jobservice_1_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "harbor"
    role = "harbor-core-jobservice"
  }
}

resource "google_compute_disk" "trivy_scanner_2_data" {
  count = 2
  name  = "harbor-trivy-scanner-2-data-${count.index + 1}"
  type  = "hyperdisk-balanced"
  zone  = local.zones[count.index % length(local.zones)]
  size  = 150
}

resource "google_compute_instance" "trivy_scanner_2" {
  count        = 2
  name         = "harbor-trivy-scanner-2-${count.index + 1}"
  machine_type = "n4-standard-4"
  zone         = local.zones[count.index % length(local.zones)]

  boot_disk {
    initialize_params {
      image = "projects/debian-cloud/global/images/family/debian-12"
      size  = 50
      type  = "hyperdisk-balanced"
    }
  }

  network_interface {
    network = "default"
  }

  attached_disk {
    source = google_compute_disk.trivy_scanner_2_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "harbor"
    role = "trivy-scanner"
  }
}

resource "google_compute_disk" "database_3_data" {
  count = 1
  name  = "harbor-database-3-data-${count.index + 1}"
  type  = "hyperdisk-balanced"
  zone  = local.zones[count.index % length(local.zones)]
  size  = 250
}

resource "google_compute_instance" "database_3" {
  count        = 1
  name         = "harbor-database-3-${count.index + 1}"
  machine_type = "n4-highmem-4"
  zone         = local.zones[count.index % length(local.zones)]

  boot_disk {
    initialize_params {
      image = "projects/debian-cloud/global/images/family/debian-12"
      size  = 50
      type  = "hyperdisk-balanced"
    }
  }

  network_interface {
    network = "default"
  }

  attached_disk {
    source = google_compute_disk.database_3_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "harbor"
    role = "database"
  }
}

resource "google_compute_disk" "cache_4_data" {
  count = 1
  name  = "harbor-cache-4-data-${count.index + 1}"
  type  = "hyperdisk-balanced"
  zone  = local.zones[count.index % length(local.zones)]
  size  = 50
}

resource "google_compute_instance" "cache_4" {
  count        = 1
  name         = "harbor-cache-4-${count.index + 1}"
  machine_type = "n4-highmem-2"
  zone         = local.zones[count.index % length(local.zones)]

  boot_disk {
    initialize_params {
      image = "projects/debian-cloud/global/images/family/debian-12"
      size  = 50
      type  = "hyperdisk-balanced"
    }
  }

  network_interface {
    network = "default"
  }

  attached_disk {
    source = google_compute_disk.cache_4_data[count.index].id
    mode   = "READ_WRITE"
  }

  labels = {
    app  = "harbor"
    role = "cache"
  }
}

resource "google_storage_bucket" "object_storage_5" {
  count                       = 1
  name                        = "${var.project_id}-harbor-object-storage-5-${count.index + 1}"
  location                    = "us-central1"
  storage_class               = "STANDARD"
  uniform_bucket_level_access = true

  labels = {
    app          = "harbor"
    role         = "object-storage"
    estimated_gb = "5000"
  }
}

Related views

Sources

Reference architecture: Harbor Registry for decoupled-ha-ready, version Harbor 2.12+ installation prerequisites & HA architecture, retrieved November 11, 2026.

https://goharbor.io/docs/latest/install-config/installation-prereqs/

Pricing: Google Cloud pricing snapshot, retrieved November 22, 2026.

Commercial pricing only. GovCloud, sovereign cloud, and discounts beyond those shown are not modelled.

Not included in this estimate

  • Vendor licensing and support
  • Professional services
  • Network egress
  • Compliance controls
  • Backup storage
  • Monitoring

Based on Harbor hardware prerequisites and HA Helm architecture separating Harbor Core/Registry, Trivy scanners, PostgreSQL, Valkey/Redis, and cloud object storage.

Estimate excludes cross-region replication egress, CDN layer caching, and P2P Dragonfly/Kraken node agents.

Related workloads on Google Cloud