google::compute-target-pool

Creates a target pool.

Examples

 google::compute-target-pool target-pool-example
    name: "target-pool-example"
    region: "us-central1"
    description: "Target pool description."
    session-affinity: "CLIENT_IP"

    instances: [ $(google::compute-instance instance-example-target-pool) ]

    health-checks: [ $(google::compute-http-health-check http-health-check-example-target-pool) ]
end
google::compute-target-pool target-pool-backup-example
    name: "target-pool-backup-example"
    region: "us-central1"
    description: "Target pool backup description."
    failover-ratio: 0.15
    backup-pool: $(google::compute-target-pool target-pool-example)

    instances: [ $(google::compute-instance instance-example-target-pool) ]

    health-checks: [ $(google::compute-http-health-check http-health-check-example-target-pool) ]
end

Attributes

Attribute Description
backup-pool The backup target pool handles traffic if the health of this target pool falls below the failover ratio. If set, failover-ratio must also be set.
description An optional description of this target pool.
failover-ratio The percentage of healthy instances below which a failover to the backup target pool is triggered. The value must be between 0 and 1. If set, backup-pool must also be set.
instances list A list of instance resources serving this pool.
health-checks list A list of legacy http health checks monitoring this pool. Only one health check may be specified.
name The name of the target pool. The name must be 1-63 characters long and the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. (Required)
session-affinity Session affinity option. Valid values are NONE, CLIENT_IP, or CLIENT_IP_PROTO. Defaults to NONE.
region Region where the target pool resides. (Required)

Outputs

Attribute Description
self-link Server-defined URL for the resource.