Remesher is a Kubernetes controller that watches for nodes inside the cluster and generates BGPPeers (custom resource defined by calico) to construct a customized, segregated Node to Node BGP mesh based on the node's labels.
Remesher constructs a customized node to node mesh based on a configurable neighborhood node label. The diagram below is an example of running
the controller on a Kubernetes cluster with a single master (denoted by the node with node-role.kubernetes.io/master label) with --neighborhood-label remesher.io/group
.
This will create two partitioned node meshes, one for each group (blue, purple). Every node will be a BGPPeer of:
- Nodes with the same
--neighborhood-label
value - Master nodes (based on the
node-role.kubernetes.io/master
label) - Global nodes (based on the
remesher.tsuru.io/global
label)
Remesher uses the calico client to create/list/delete BGPPeers resources.