Skip to content
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.

Commit

Permalink
docs/metallb: Clarify address_pool knob
Browse files Browse the repository at this point in the history
The current sample config is confusing. The address_pools knob is a
map with string keys and lists of strings as values. There are no
knobs named "default" or "special_addresses". These were intended as
sample names for pools.

Fixes #632.
  • Loading branch information
johananl committed Sep 22, 2020
1 parent 8093a06 commit eed5627
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/configuration-reference/components/metallb.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ MetalLB component configuration example:
```tf
component "metallb" {
address_pools = {
default = ["147.63.8.20/32"]
special_addresses = ["147.85.47.16/29", "147.85.47.24/29"]
pool1 = ["147.63.8.20/32"]
pool2 = ["147.85.47.16/29", "147.85.47.24/29"]
}
controller_node_selectors = {
"kubernetes.io/hostname" = "worker3"
Expand Down Expand Up @@ -85,7 +85,7 @@ Example:

| Argument | Description | Default | Type | Required |
|-----------------------------|--------------------------------------------------------------------------------------------|:-------:|:---------------------------------------------------------------------------------------------------------------|:--------:|
| `address_pools` | A map which allows specifying one or more CIDRs which MetalLB can use to expose services. | - | object({default = list(string), special_addresses = list(string)}) | true |
| `address_pools` | A map which allows specifying one or more CIDRs which MetalLB can use to expose services. | - | map(list(string)) | true |
| `controller_node_selectors` | A map with specific labels to run MetalLB controller pods selectively on a group of nodes. | - | map(string) | false |
| `speaker_node_selectors` | A map with specific labels to run MetalLB speaker pods selectively on a group of nodes. | - | map(string) | false |
| `controller_toleration` | Specify one or more tolerations for controller pods. | - | list(object({key = string, effect = string, operator = string, value = string, toleration_seconds = string })) | false |
Expand Down

0 comments on commit eed5627

Please sign in to comment.