Skip to content

Commit

Permalink
feat: add the option for extra metallb pools
Browse files Browse the repository at this point in the history
  • Loading branch information
RealityAnomaly committed Dec 23, 2021
1 parent 7962105 commit fbd03e9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lb.tf
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ resource "kubernetes_config_map" "metallb" {

data = {
config = yamlencode({
"address-pools" = [
"address-pools" = concat([
{
"name" = "private-static"
"protocol" = "bgp"
Expand All @@ -39,7 +39,7 @@ resource "kubernetes_config_map" "metallb" {
])
"avoid-buggy-ips" = true
}
]
], var.metallb_extra_pools)
"peers" = var.metallb_bgp_peers
})
}
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,8 @@ variable "metallb_bgp_peers" {
type = any
default = {}
}

variable "metallb_extra_pools" {
type = any
default = []
}

0 comments on commit fbd03e9

Please sign in to comment.