Skip to content

feat: add Primary Backup routing policy with failover support#130

Open
fbtravi wants to merge 1 commit intoterraform-google-modules:mainfrom
fbtravi:feat/add-primary-backup-failover-support
Open

feat: add Primary Backup routing policy with failover support#130
fbtravi wants to merge 1 commit intoterraform-google-modules:mainfrom
fbtravi:feat/add-primary-backup-failover-support

Conversation

@fbtravi
Copy link

@fbtravi fbtravi commented Dec 29, 2025

Add Primary Backup Routing Policy

Adds Primary Backup routing policy for automatic DNS failover with health checks.

Changes

  • variables.tf - Add primary_backup to routing_policy
  • main.tf - Implement primary_backup dynamic blocks
  • README.md - Document routing policies (WRR, GEO, Primary Backup)

Features

  • Primary/backup failover with health checks
  • ILB support (L4/L7, regional/global)
  • External endpoints support
  • Geo-fencing and trickle ratio

Usage

routing_policy = {
  health_check = "https://www.googleapis.com/.../healthChecks/hc"
  primary_backup = {
    trickle_ratio = 0.1
    primary = { external_endpoints = ["10.0.0.1"] }
    backup_geo = [{
      location = "us-east1"
      health_checked_targets = { external_endpoints = ["10.1.0.1"] }
    }]
  }
}

@fbtravi fbtravi requested review from a team, ayushmjain, imrannayer and q2w as code owners December 29, 2025 19:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant