Skip to content

Commit

Permalink
chore: Installation Guide touch-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
cimomo committed Apr 19, 2019
1 parent a1995d0 commit 524f7d3
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions docs/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,43 @@


Kube-OVN includes two parts:
- Native OVS and OVN
- Controller and CNI plugins that combine OVN and Kubernetes
- Native OVS and OVN components
- Controller and CNI plugins that integrate OVN with Kubernetes

## Steps
## To install

1. Add label to node which will deploy the ovn db and ovn central control plan
1. Add the following label to the Node which will host the OVN DB and the OVN Control Plane:

`kubectl label node <node to deploy ovn db> kube-ovn/role=master`
2. Install native OVS and OVN
`kubectl label node <Node on which to deploy OVN DB> kube-ovn/role=master`
2. Install native OVS and OVN components:

`kubectl apply -f https://raw.githubusercontent.com/alauda/kube-ovn/master/yamls/ovn.yaml`
3. Install Controller and CNI plugins
3. Install the Kube-OVN Controller and CNI plugins:

`kubectl apply -f https://raw.githubusercontent.com/alauda/kube-ovn/master/yamls/kube-ovn.yaml`

That's all! You can try to create pod and test connectivity.
That's all! You can now create some pods and test connectivity.

## More Configuration

### Controller Configuration

```bash
--default-cidr: Default cidr for namespace with no logical switch annotation, default: 10.16.0.0/16
--node-switch-cidr: The cidr for node switch. Default: 100.64.0.0/16
--default-cidr: Default CIDR for Namespaces with no logical switch annotation, default: 10.16.0.0/16
--node-switch-cidr: The CIDR for the Node switch. Default: 100.64.0.0/16
```

## Uninstall
## To uninstall

1. Remove finalizers in svc kube-ovn/ovn-sb and kube-ovn/ovn-nb
1. Remove finalizers in svc kube-ovn/ovn-sb and kube-ovn/ovn-nb.

2. Delete kube-ovn component
2. Delete Kube-OVN components:

`kubectl delete ns kube-ovn`
3. Delete ovn/ovs db and conf files on every node
3. Delete OVN/OVS DB and config files on every Node:

```bash
rm -rf /var/run/openvswitch
rm -rf /etc/origin/openvswitch/
rm -rf /etc/openvswitch```
4. Reboot node to remove ipset/iptables rules and nics
rm -rf /etc/openvswitch
4. Reboot the Node to remove ipset/iptables rules and nics.

0 comments on commit 524f7d3

Please sign in to comment.