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: README.md
+26Lines changed: 26 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -82,6 +82,7 @@ type Config struct {
82
82
LoggerLogger// Optional: custom logger (uses DefaultLogger if not provided)
83
83
PrivateKey crypto.PrivKey// Required: private key for persistent peer ID
84
84
PeerCacheFilestring// Optional: file path for peer persistence
85
+
AnnounceAddrs []string// Optional: addresses to advertise to peers (for K8s)
85
86
}
86
87
```
87
88
@@ -143,6 +144,31 @@ When enabled:
143
144
- This significantly speeds up network reconnection
144
145
- If not provided, peer caching is disabled
145
146
147
+
**Kubernetes Support:**
148
+
149
+
The `AnnounceAddrs` field allows you to specify the external addresses that your peer should advertise. This is essential in Kubernetes where the pod's internal IP differs from the externally accessible address:
150
+
151
+
```go
152
+
// Get external address from environment or K8s service
0 commit comments