|
| 1 | +--- |
| 2 | +title: "v0.15.2" |
| 3 | +linkTitle: "v0.15.2" |
| 4 | +weight: 30 |
| 5 | +aliases: |
| 6 | + /docs/reference/packagespec/metallb/v0.15.2/ |
| 7 | +description: > |
| 8 | +--- |
| 9 | + |
| 10 | +{{% pageinfo %}} |
| 11 | +[FRRouting](https://frrouting.org/) is currently not supported for MetalLB. |
| 12 | +{{% /pageinfo %}} |
| 13 | + |
| 14 | +### Configuring MetalLB in EKS Anywhere package spec |
| 15 | + |
| 16 | +#### Example |
| 17 | +``` |
| 18 | +apiVersion: packages.eks.amazonaws.com/v1alpha1 |
| 19 | +kind: Package |
| 20 | +metadata: |
| 21 | + name: mylb |
| 22 | + namespace: eksa-packages-<cluster-name> |
| 23 | +spec: |
| 24 | + packageName: metallb |
| 25 | + targetNamespace: metallb-system |
| 26 | + config: | |
| 27 | + IPAddressPools: |
| 28 | + - name: default |
| 29 | + addresses: |
| 30 | + - 10.220.0.93/32 |
| 31 | + - 10.220.0.94/32 |
| 32 | + - 10.220.0.95/32 |
| 33 | + - name: bgp |
| 34 | + addresses: |
| 35 | + - 10.220.0.97-10.220.0.99 |
| 36 | + L2Advertisements: |
| 37 | + - ipAddressPools: |
| 38 | + - default |
| 39 | + BGPAdvertisements: |
| 40 | + - ipAddressPools: |
| 41 | + - bgp |
| 42 | + autoAssign: false |
| 43 | + BGPPeers: |
| 44 | + - myASN: 123 |
| 45 | + peerASN: 55001 |
| 46 | + peerAddress: 1.2.3.4 |
| 47 | + keepaliveTime: 30s |
| 48 | +``` |
| 49 | + |
| 50 | +| Parameter | Description | Default | Required | |
| 51 | +|---|---|---|---| |
| 52 | +| IPAddressPools[] | A list of ip address pools. See **IPAddressPool**. | None | False | |
| 53 | +| L2Advertisements[] | A list of Layer 2 advertisements. See **L2Advertisement**. | None | False | |
| 54 | +| BGPAdvertisements[] | A list of BGP advertisements. See **BGPAdvertisement**. | None | False | |
| 55 | +| BGPPeers[] | A list of BGP peers. See **BGPPeer**. | None | False | |
| 56 | +| speaker | A list of speaker flag/parameter. See **speaker** | None | False | |
| 57 | +|---|---|---|---| |
| 58 | +|**IPAddressPool** | A list of IP address ranges over which MetalLB has authority. You can list multiple ranges in a single pool and they will all share the same settings. Each range can be either a CIDR prefix, or an explicit start-end range of IPs.||| |
| 59 | +| name | Name for the address pool. | None | True | |
| 60 | +| addresses[] | A list of **string** representing CIRD or IP ranges. | None | True | |
| 61 | +| autoAssign | AutoAssign flag used to prevent MetalLB from automatic allocation for a pool. | true | False | |
| 62 | +|---|---|---|---| |
| 63 | +|**L2Advertisement**|L2Advertisement allows MetalLB to advertise the LoadBalancer IPs provided by the selected pools via L2.||| |
| 64 | +| ipAddressPools[] | The list of **IPAddressPool** names to advertise. | None | True | |
| 65 | +| name | Name for the L2Advertisement. | None | False | |
| 66 | +|---|---|---|---| |
| 67 | +|**BGPAdvertisement**|BGPAdvertisement allows MetalLB to advertise the IPs coming from the selected ipAddressPools via BGP, setting the parameters of the BGP Advertisement.||| |
| 68 | +| aggregationLength | The aggregation-length advertisement option lets you “roll up” the /32s into a larger prefix. Defaults to 32. Works for IPv4 addresses. | 32 | False | |
| 69 | +| aggregationLengthV6 | The aggregation-length advertisement option lets you “roll up” the /128s into a larger prefix. Defaults to 128. Works for IPv6 addresses. | 128 | False | |
| 70 | +| communities[] | The BGP communities to be associated with the announcement. Each item can be a community of the form 1234:1234 or the name of an alias defined in the Community CRD. | None | False | |
| 71 | +| ipAddressPools[] | The list of **IPAddressPool** names to be advertised via BGP. | None | True | |
| 72 | +| localPref | The BGP LOCAL_PREF attribute which is used by BGP best path algorithm, Path with higher localpref is preferred over one with lower localpref. | None | False | |
| 73 | +| peers[] | List of peer names. Limits the bgppeer to advertise the ips of the selected pools to. When empty, the loadbalancer IP is announced to all the BGPPeers configured. | None | False | |
| 74 | +|---|---|---|---| |
| 75 | +|**BGPPeer**|Peers for the BGP protocol.||| |
| 76 | +| holdTime | Requested BGP hold time, per RFC4271. | None | False | |
| 77 | +| keepaliveTime | Requested BGP keepalive time, per RFC4271. | None | False | |
| 78 | +| myASN | AS number to use for the local end of the session. | None | True | |
| 79 | +| password | Authentication password for routers enforcing TCP MD5 authenticated sessions. | None | False | |
| 80 | +| peerASN | AS number to expect from the remote end of the session. | None | True | |
| 81 | +| peerAddress | Address to dial when establishing the session. | None | True | |
| 82 | +| peerPort | Port to dial when establishing the session. | 179 | False | |
| 83 | +| routerID | BGP router ID to advertise to the peer. | None | False | |
| 84 | +| sourceAddress | Source address to use when establishing the session. | None | False | |
| 85 | +| password | Authentication password for routers enforcing TCP MD5 authenticated sessions. | None | False | |
| 86 | +| passwordSecret | passwordSecret is a reference to the authentication secret for BGP Peer. The secret must be of type 'kubernetes.io/basic-auth' and the password stored under the "password" key. Example: <br/><pre>passwordSecret:<br/> name: mySecret<br/> namespace: metallb-system</pre> | None | False| |
| 87 | +|---|---|---|---| |
| 88 | +|**speaker**| announcing the services via L2 or BGP ||| |
| 89 | +| ignoreExcludeLB | ignore the exclude-from-external-load-balancers node label for service announcements. [More details](https://metallb.universe.tf/troubleshooting/index.html#metallb-is-not-advertising-my-service-from-my-control-plane-nodes-or-from-my-single-node-cluster) | False | False | |
| 90 | + |
| 91 | +#### Example |
| 92 | +```yaml |
| 93 | +apiVersion: packages.eks.amazonaws.com/v1alpha1 |
| 94 | +kind: Package |
| 95 | +metadata: |
| 96 | + name: mylb |
| 97 | + namespace: eksa-packages-<cluster-name> |
| 98 | +spec: |
| 99 | + packageName: metallb |
| 100 | + targetNamespace: metallb-system |
| 101 | + config: | |
| 102 | + speaker: |
| 103 | + ignoreExcludeLB: true |
| 104 | +``` |
0 commit comments