# Mesh Topology The WireGuard mesh connects clusters over overlay tunnels. Topology state is shared between the DaemonSet (writer) and CNI plugin (reader) via `/etc/kedge/mesh.json`. ## Peer Discovery - Static peers from ConfigMap (`k8s/configmap-mesh.yaml`) - Dynamic discovery via Headscale (Phase 3) ## Health Monitoring - Periodic peer handshake checks - Dead peer detection with configurable timeout - Prometheus metrics: `kedge_mesh_peer_count`, `kedge_mesh_tunnel_up`