Modifying BGP Configuration
Change the BGP mode to Full Mesh.
This section describes how to change the default BGP configuration as an example.
1
|
calicoctl patch bgpconfiguration default -p '{"spec": {"nodeToNodeMeshEnabled": true}}' |
Changing the BGP Mode to Route Reflector
This section uses the default BGP configuration as an example to describe how to configure a node as a route reflector.
- Disable the full mesh mode between nodes.
After this step is complete, cross-node pod communication is interrupted.
1calicoctl patch bgpconfiguration default -p '{"spec": {"nodeToNodeMeshEnabled": false}}'
- Configure a route reflector node.
1kubectl label node <node-name> route-reflector=true
- Interconnecting the route reflector node and common nodes.
Edit the BGPPeer YAML file and use calicoctl to load the file.
1 2 3 4 5 6 7
kind: BGPPeer apiVersion: projectcalico.org/v3 metadata: name: peer-with-route-reflectors spec: nodeSelector: all() peerSelector: route-reflector == true
1calicoctl apply -f - < bgpPeer.yaml
After the configuration is complete, check the node status on each node. All nodes managed in the local domain can be viewed on the route reflector node, and only the route reflector node can be viewed on common nodes.

Parent topic: Managing BGP Configuration