Skip to content

Commit

Permalink
fix wrong sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyd1988 committed Mar 24, 2021
1 parent f4a6ca1 commit 8e38a79
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions docs/bgp.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,35 @@
Kube-OVN supports advertise pod/subnet ips to external networks by BGP protocol.
To enable BGP advertise function, you need to install kube-ovn-speaker and annotate pods/subnets that need to be exposed.


1. Label nodes that host the BGP speaker and act as overlay to underlay gateway
```bash
kubectl label nodes speaker-node-1 ovn.kubernetes.io/bgp=true
kubectl label nodes speaker-node-2 ovn.kubernetes.io/bgp=true
```

## Install kube-ovn-speaker

1. Download `kube-ovn-speaker` yaml
2. Download `kube-ovn-speaker` yaml

```bash
wget https://github.com/kubeovn/kube-ovn/blob/master/yamls/speaker.yaml
```

2. Modify the args in yaml
3. Modify the args in yaml

```bash
--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
```

3. Apply the yaml
4. Apply the yaml

```bash
kubectl apply -f speaker.yaml
```

4. Label nodes that host the BGP speaker and act as overlay to underlay gateway
```bash
kubectl label nodes speaker-node-1 ovn.kubernetes.io/bgp=true
kubectl label nodes speaker-node-2 ovn.kubernetes.io/bgp=true
```

*NOTE*: When more than one node host speaker, the upstream router need to support multiple path routes to act ECMP.

Expand Down

0 comments on commit 8e38a79

Please sign in to comment.