Added GLB example with MIG as backend
This commit is contained in:
parent
42ae9bb2dd
commit
92b5b1f86b
|
@ -214,6 +214,33 @@ module "glb-0" {
|
|||
}
|
||||
# tftest modules=1 resources=6
|
||||
```
|
||||
#### Managed Instance Groups
|
||||
|
||||
This example shows how to use the module with a manage instance group as backend:
|
||||
|
||||
```hcl
|
||||
module "glb-0" {
|
||||
source = "./fabric/modules/net-glb"
|
||||
project_id = "myprj"
|
||||
name = "glb-test-0"
|
||||
|
||||
|
||||
backend_service_configs = {
|
||||
default = {
|
||||
backends = [
|
||||
{ backend = "projects/myprj/regions/europe-west8/instanceGroups/mig-a" }
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
health_check_configs = {
|
||||
default = {
|
||||
tcp = { port = 80 }
|
||||
}
|
||||
}
|
||||
}
|
||||
# tftest modules=1 resources=5
|
||||
```
|
||||
|
||||
#### Storage Buckets
|
||||
|
||||
|
|
Loading…
Reference in New Issue