cloud-foundation-fabric/modules/__experimental/net-neg
Oliver Frolovs 6eb862a775
GKE cluster modules: add optional kube state metrics (#1682)
* `gke-cluster-standard`: add optional kube state metrics
* `gke-cluster-autopilot`: add optional kube state metrics

* FAST: add kube state metrics support for GKE
* blueprints/gke: add kube state metrics support

* Bump up the provider version to `v4.82.0`
2023-09-15 12:18:45 +01:00
..
README.md Simplify readme discovery 2022-12-18 14:00:20 +01:00
main.tf Copyright bump (#410) 2022-01-01 15:52:31 +01:00
outputs.tf Fix variable/output sort check 2022-11-21 13:17:55 +01:00
variables.tf Fix variable/output sort check 2022-11-21 13:17:55 +01:00
versions.tf GKE cluster modules: add optional kube state metrics (#1682) 2023-09-15 12:18:45 +01:00

README.md

Network Endpoint Group Module

This modules allows creating zonal network endpoint groups.

Note: this module will integrated into a general-purpose load balancing module in the future.

Example

module "neg" {
  source     = "./fabric/modules/__experimental/net-neg/"
  project_id = "myproject"
  name       = "myneg"
  network    = var.vpc.self_link
  subnetwork = var.subnet.self_link
  zone       = "europe-west1-b"
  endpoints = [
    for instance in module.vm.instances :
    {
      instance   = instance.name
      port       = 80
      ip_address = instance.network_interface[0].network_ip
    }
  ]
}
# tftest skip

Variables

name description type required default
endpoints List of (instance, port, address) of the NEG. list(object({…}))
name NEG name. string
network Name or self link of the VPC used for the NEG. Use the self link for Shared VPC. string
project_id NEG project id. string
subnetwork VPC subnetwork name or self link. string
zone NEG zone. string

Outputs

name description sensitive
id Network endpoint group ID.
self_lnk Network endpoint group self link.
size Size of the network endpoint group.