项目作者: walmartdigital

项目描述 :
Azure Route Table and associated routes resources Terraform module for k8s cluster.
高级语言: HCL
项目地址: git://github.com/walmartdigital/k8s-rt-module.git
创建时间: 2019-01-29T12:36:27Z
项目社区:https://github.com/walmartdigital/k8s-rt-module

开源协议:

下载


Azure Route Table Module

This module create all required resources for deploy a Route Table and the associated routes on Azure.

Usage

  1. module "az_rt" {
  2. source = "git::https://github.com/walmartdigital/k8s-rt-module.git?ref=0.1.0"
  3. resource_group = "my-resource-group"
  4. vnet_name = "my-vnet"
  5. subnet_name = "my-subnet"
  6. route_table_name = "my-route-table"
  7. route_names = ["route1", "route2", "route3"]
  8. route_prefixes = ["10.0.1.0/24", "10.0.2.0/24", "10.0.3.0/24"]
  9. route_nexthop_types = ["VirtualAppliance", "VirtualAppliance", "VirtualAppliance"]
  10. next_hop_in_ip_address = ["10.20.0.1", "10.20.0.2", "10.20.0.3"]
  11. }

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.