Commit 7d728ec
committed
Add --advertise-addr flag to beacon for MIG public-DNAT deployments
When a beacon runs on a GCP MIG behind a public DNAT (e.g. the
rendezvous reserved IP routing UDP :9001 to internal MIG instances),
auto-detection from the TCP local addr to the registry yields the
INTERNAL VPC address (10.128.0.x). External daemons cannot reach
those, so beacon_list responses silently black-hole all relay traffic
through them — the issue diagnosed in pkg/daemon/beacon_select.go's
filterUnreachable.
The proper fix is on the beacon side: with --advertise-addr set,
the beacon registers the operator-supplied public DNAT entrypoint
instead. All MIG instances share one public ingress; the registry's
beacon_list returns one routable address; external daemons reach
the beacons via the existing DNAT.
beacon-template-v5 (created 2026-05-02) sets
--advertise-addr 34.71.57.205:9001
in the systemd ExecStart. v4 is preserved for rollback.1 parent 30e72f5 commit 7d728ec
2 files changed
Lines changed: 33 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
55 | 59 | | |
56 | 60 | | |
57 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
615 | 616 | | |
616 | 617 | | |
617 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
618 | 630 | | |
619 | 631 | | |
620 | 632 | | |
| |||
680 | 692 | | |
681 | 693 | | |
682 | 694 | | |
683 | | - | |
684 | | - | |
685 | | - | |
686 | | - | |
687 | | - | |
688 | | - | |
689 | | - | |
690 | | - | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
691 | 710 | | |
| 711 | + | |
692 | 712 | | |
693 | | - | |
694 | 713 | | |
695 | 714 | | |
696 | 715 | | |
| |||
0 commit comments