Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 848 Bytes

bgp.md

File metadata and controls

36 lines (25 loc) · 848 Bytes

BGP support

Kube-OVN supports broadcast pod ips to external networks by BGP protocol. To enable BGP announce function, you need to install kube-ovn-speaker and annotate pods that need to be exposed.

Install kube-ovn-speaker

  1. Download kube-ovn-speaker yaml
wget https://github.com/alauda/kube-ovn/blob/master/yamls/speaker.yaml
  1. Modify the args in yaml
--neighbor-address=10.32.32.1  # The router address that need to establish bgp peers
--neighbor-as=65030            # The AS of router
--cluster-as=65000             # The AS of container network
  1. Apply the yaml
kubectl apply -f speaker.yaml

Annotate pods that need to be exposed

# Enable BGP
kubectl annotate pod sample ovn.kubernetes.io/bgp=true

# Disable BGP
kubectl annotate pod perf-ovn-xzvd4 ovn.kubernetes.io/bgp-