You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: asciidoc/guides/metallb-k3s_l3.adoc
+12-15Lines changed: 12 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,15 +15,15 @@ endif::[]
15
15
16
16
MetalLB is a load-balancer implementation for bare-metal Kubernetes clusters, using standard routing protocols.
17
17
18
-
In this guide, we demonstrate how to deploy MetalLB in layer 3 (L3) mode.
18
+
In this guide, we demonstrate how to deploy MetalLB in layer 3 (L3) BGP mode.
19
19
20
20
== Why use MetalLB
21
21
22
22
MetalLB is a compelling choice for load balancing in bare-metal Kubernetes clusters for several reasons:
23
23
24
24
. Native Integration with Kubernetes: MetalLB seamlessly integrates with Kubernetes, making it easy to deploy and manage using familiar Kubernetes tools and practices.
25
25
. Bare-Metal Compatibility: Unlike cloud-based load balancers, MetalLB is designed specifically for on-premises deployments where traditional load balancers might not be available or feasible.
26
-
. Supports Multiple Protocols: MetalLB supports both Layer 2 and BGP (Border Gateway Protocol) modes, providing flexibility for different network architectures and requirements.
26
+
. Supports Multiple Protocols: MetalLB supports both Layer 2 and Layer 3 BGP (Border Gateway Protocol) modes, providing flexibility for different network architectures and requirements.
27
27
. High Availability: By distributing load-balancing responsibilities across multiple nodes, MetalLB ensures high availability and reliability for your services.
28
28
. Scalability: MetalLB can handle large-scale deployments, scaling alongside your Kubernetes cluster to meet increasing demand.
29
29
@@ -33,14 +33,14 @@ The major advantage of the layer 2 mode is its universality: it works on any Eth
33
33
34
34
== MetalLB on K3s (using L3)
35
35
36
-
In this quick start, L3 mode will be used.
36
+
In this quick start, L3 mode is used.
37
37
This means that we need to have neighboring router(s) with BGP capabilities within
38
38
the network range.
39
39
40
40
== Prerequisites
41
41
42
42
* A K3s cluster where MetalLB is going to be deployed.
43
-
* Router(s) on the network that support the BGP protocol
43
+
* Router(s) on the network that support the BGP protocol.
44
44
* A free IP address within the network range for the service. In this example
45
45
`192.168.10.100`
46
46
@@ -77,7 +77,7 @@ done
77
77
78
78
== Configuration
79
79
80
-
At this point, the installation is completed. Now it is time to create an
80
+
. At this point, the installation is completed. Now it is time to create an
81
81
IPAddressPool:
82
82
83
83
[,bash]
@@ -108,7 +108,8 @@ spec:
108
108
EOF
109
109
----
110
110
111
-
We will also configure a BGPPeer. Note that the FRR router has ASN 1000 while
111
+
[start=2]
112
+
. We will also configure a BGPPeer. Note that the FRR router has ASN 1000 while
112
113
our BGPPeer will have 1001. We can also see that the FRR Router has an IP
113
114
address that is 192.168.3.140.
114
115
@@ -128,7 +129,8 @@ spec:
128
129
EOF
129
130
----
130
131
131
-
After this we will need to create the BGPAdvertisement (L3):
132
+
[start=3]
133
+
. After this we will need to create the BGPAdvertisement (L3):
132
134
133
135
[,bash]
134
136
----
@@ -146,9 +148,7 @@ EOF
146
148
147
149
== Usage
148
150
149
-
At this point we can create an example application with a service. In our case
150
-
that service will have the IP address from our IPAddressPool: 192.168.10.100.
151
-
151
+
Create an example application with a service. In this case, IP address from the `IPAddressPool` is `192.168.10.100` for that service.
152
152
153
153
[,bash]
154
154
----
@@ -199,8 +199,7 @@ EOF
199
199
----
200
200
201
201
202
-
Let us see it in action: If you log onto the FRR Router you can see the routes
203
-
created from the BGP advertisement
202
+
To verify, log onto the FRR Router to can see the routes created from the BGP advertisement.
204
203
205
204
[,console]
206
205
----
@@ -231,9 +230,7 @@ NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S)
If this router is the default gateway for your network, you can run a simple
235
-
curl command from a box on that network to verify that they can reach the httpd
236
-
sample app:
233
+
If this router is the default gateway for your network, you can run the `curl` command from a box on that network to verify that they can reach the httpd sample app
0 commit comments