This repository was archived by the owner on Jun 29, 2022. It is now read-only.
Commit 7f1d1cd
committed
packet: Read BGP peer address from metadata service
In some Packet facilities the BGP peer address isn't the same as the
gateway address allocated for a host. Rather, it is a loopback
address that's reachable via the gateway.
The Packet metadata service now exposes BGP info to hosts, so we can
query the metadata service for the BGP peer address.
We currently use the first peer address only since MetalLB doesn't
support multiple node peers yet.
The source address is explicitly specified since when the peer
address is a loopback address, the source IP addresses which ends up
getting selected by the kernel is the node's *public* address which
doesn't work. In cases where the peer address is the gateway address
there is no harm in explicitly specifying the source.
Fixes #1009.1 parent 3008e5a commit 7f1d1cd
File tree
2 files changed
+6
-7
lines changed- assets/terraform-modules/packet/flatcar-linux/kubernetes/workers/cl
- pkg/assets
2 files changed
+6
-7
lines changedLines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | 85 | | |
89 | 86 | | |
90 | | - | |
| 87 | + | |
91 | 88 | | |
92 | 89 | | |
93 | 90 | | |
| |||
112 | 109 | | |
113 | 110 | | |
114 | 111 | | |
115 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
0 commit comments