Skip to content

Commit

Permalink
Merge pull request #86 from rackerlabs/docs-metallb-20240510-1
Browse files Browse the repository at this point in the history
feat: add documentation for networking, metallb, and dhcp related settings.
  • Loading branch information
cardoe authored May 10, 2024
2 parents 35cfeb6 + 93c8fea commit 0b2ff8b
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
48 changes: 48 additions & 0 deletions docs/networking.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# Networking

!!! warning Networking Configuration
Your networking configurations in UnderStack are highly dependent on
your own environment.

## MetalLB Load Balancer for DHCP

We are using [MetalLB](https://metallb.io/) to provide a TCP/UDP load balancer
for dnsmasq's DHCP server.

The MetalLB configuration you will use depends on the network and physical
server interface in your environment.

Here's an example MetalLB manifest where we use `192.168.200.2` as our DHCP
load balancer IP address, and on our server running UnderStack services, we
will use ethernet interface `eno2`.

```yaml
---
apiVersion: metallb.io/v1beta1
kind: IPAddressPool
metadata:
name: lb-provisioning
namespace: metallb-system
spec:
addresses:
- 192.168.200.2/32 # IMPORTANT: this is the load balancer IP we will use for DHCP
autoAssign: true
---
apiVersion: metallb.io/v1beta1
kind: L2Advertisement
metadata:
name: lb-provisioning-advertisement
namespace: metallb-system
spec:
ipAddressPools:
- lb-provisioning
interfaces:
- eno2 # IMPORTANT: this is the physical interface on your understack server
```
## DHCP Dnsmasq Configuration
You will want to review and edit the dnsmasq DHCP configuration for your environment:
<https://github.com/rackerlabs/understack/blob/main/components/ironic/dnsmasq-cm.yaml>
The important settings to review are `DHCP_RANGE`, `DHCP_RANGE_ROUTER`, and `INGRESS_IP`.
1 change: 1 addition & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,4 @@ nav:
- gitops-install.md
- install-understack-ubuntu-k3s.md
- auth.md
- networking.md

0 comments on commit 0b2ff8b

Please sign in to comment.