项目作者: walmartdigital
项目描述 :
Azure Route Table and associated routes resources Terraform module for k8s cluster.
高级语言: HCL
项目地址: git://github.com/walmartdigital/k8s-rt-module.git
Azure Route Table Module
This module create all required resources for deploy a Route Table and the associated routes on Azure.
Usage
module "az_rt" {
source = "git::https://github.com/walmartdigital/k8s-rt-module.git?ref=0.1.0"
resource_group = "my-resource-group"
vnet_name = "my-vnet"
subnet_name = "my-subnet"
route_table_name = "my-route-table"
route_names = ["route1", "route2", "route3"]
route_prefixes = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
route_nexthop_types = ["VirtualAppliance", "VirtualAppliance", "VirtualAppliance"]
next_hop_in_ip_address = ["10.20.0.1", "10.20.0.2", "10.20.0.3"]
}
Arguments
- resource_group: A string representing the resource group where all resources will be provisioned, this resource group needs to be previously created (required).
- vnet_name: A string used as Virtual Network name, to be associated with the route table (required).
- subnet_name: A string used as Subnet name, to be associated with the route table (required).
- route_table_name: A string used as the name of the RouteTable being created (required).
- disable_bgp_route_propagation: Boolean flag which controls propagation of routes learned by BGP on that route table. True means disable and that’s the default.
- route_names: A list of public subnets inside the vNet.
- route_prefixes: The list of address prefixes to use for each route.
- route_nexthop_types: A list types of Azure hop the packet should be sent to for each corresponding route. Valid values are VirtualNetworkGateway, VnetLocal, Internet, VirtualAppliance, None.
- next_hop_in_ip_address: A list of the IP addresses packets should be forwarded to. Next hop values are only allowed in routes where the next hop type is VirtualAppliance.
Outputs
- routetable_id: The ID of the route table created.