def setUpRR(self): super(TestBGPAdvert, self).setUp() # Create bgp test namespace self.ns = "bgp-test" self.create_namespace(self.ns) start_external_node_with_bgp("kube-node-extra", bird_conf_rr) # set CALICO_ADVERTISE_CLUSTER_IPS=10.96.0.0/12 self.update_ds_env("calico-node", "kube-system", "CALICO_ADVERTISE_CLUSTER_IPS", "10.96.0.0/12") # Enable debug logging self.update_ds_env("calico-node", "kube-system", "BGP_LOGSEVERITYSCREEN", "debug") # Establish BGPPeer from cluster nodes to node-extra using calicoctl # External peer has IP 10.192.0.5 run("""kubectl exec -i -n kube-system calicoctl -- /calicoctl apply -f - << EOF apiVersion: projectcalico.org/v3 kind: BGPPeer metadata: name: node-extra.peer spec: node: kube-node-2 peerIP: 10.192.0.5 asNumber: 64512 EOF """)
def setUp(self): super(_TestBGPAdvert, self).setUp() # Create bgp test namespace self.ns = "bgp-test" self.create_namespace(self.ns) self.nodes, self.ips, _ = node_info() self.external_node_ip = start_external_node_with_bgp( "kube-node-extra", bird_peer_config=self.get_bird_conf(), ) # Enable debug logging self.update_ds_env("calico-node", "kube-system", "BGP_LOGSEVERITYSCREEN", "debug") # Establish BGPPeer from cluster nodes to node-extra calicoctl("""apply -f - << EOF apiVersion: projectcalico.org/v3 kind: BGPPeer metadata: name: node-extra.peer%s EOF """ % self.get_extra_peer_spec())
def setUp(self): super(TestBGPAdvert, self).setUp() # Create bgp test namespace self.ns = "bgp-test" self.create_namespace(self.ns) start_external_node_with_bgp("kube-node-extra", bird_conf) # Enable debug logging self.update_ds_env("calico-node", "kube-system", "BGP_LOGSEVERITYSCREEN", "debug") # Establish BGPPeer from cluster nodes to node-extra calicoctl("""apply -f - << EOF apiVersion: projectcalico.org/v3 kind: BGPPeer metadata: name: node-extra.peer spec: peerIP: 10.192.0.5 asNumber: 64512 EOF """)