forked from easzlab/kubeasz
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修复calico的BGP RR模式下的bgppeer的nodeSelector错误
首先要说明的是,按照原文档的配置,最终是可以形成可用的rr节点和bgp连接的,但是不严谨。 根据我实际的操作情况来看,`nodeSelector: !has(i-am-a-route-reflector)` 这种写法是无效的,并且创建出来的bgppeer是不会包含nodeSelector这一字段的,除非加上双引号“”(calico的官方文档也是含有双引号的)。 而之所以原有的写法可以成功,是因为当bgppeer没有nodeSelector时,会将它设置为global的,global的意思就是说所有的节点都会与RR节点建立连接;但很显然,原有的目的是让所有非RR节点与RR节点建立连接,同时RR节点之间建立连接;并且按照原写法rr-mesh这个bgppeer其实也是不起作用的,因为global已包含RR节点之间的连接。
- Loading branch information
Showing
1 changed file
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters