Skip to content

Instantly share code, notes, and snippets.

@jtfogarty
Created October 23, 2020 20:07
Show Gist options
  • Save jtfogarty/792cfa11d81378105d1420f06c4d7cb6 to your computer and use it in GitHub Desktop.
Save jtfogarty/792cfa11d81378105d1420f06c4d7cb6 to your computer and use it in GitHub Desktop.
pfSense - OpenBGPD - MetalLB
# Please edit the object below. Lines beginning with a '#' will be ignored,
# and an empty file will abort the edit. If an error occurs while saving this file will be
# reopened with the relevant failures.
#
apiVersion: v1
data:
config: |
peers:
- peer-address: 10.10.100.2
peer-asn: 64512
my-asn: 64513
address-pools:
- name: default
protocol: bgp
addresses:
- 10.10.100.50-10.10.100.100
kind: ConfigMap
metadata:
name: config
namespace: metallb-system
kubectl create ns metallb-system
kubectl create secret generic -n metallb-system memberlist --from-literal=secretkey="$(openssl rand -base64 128)"
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.4/manifests/namespace.yaml
kubectl apply -f https://raw.githubusercontent.com/metallb/metallb/v0.9.4/manifests/metallb.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment