Commit 55e9ff4f authored by Piotr Szlenk's avatar Piotr Szlenk

Add Readme

parent 62464c47
# calico-cumulus # Kubernetes with Calico on Cumulus VX as IP Fabric
![IP Fabric](https://gitlab.com/piotr.szlenk/calico-cumulus/images/ipfabric.png "IP Fabric with K8s")
## Prerequisites
1. Install the latest Vagrant engine
2. Install Virtualbox
3. 16GB of RAM and 4CPUs are recommended to run this demo
4. Install python 2.7+ with virtualenv
## Bringing environment up
1. Clone this repository and run following commands from inside of it
2. Bring all VMs with ```vagrant up``` command
3. Configure IP Fabric: ```sh fabric.deploy.sh```
4. Prepare K8s nodes: ```sh vagrant.prepare_nodes.sh```
5. Join K8s workers to the master: ``` sh vagrant.join_nodes.sh```
6. Deploy calico: ```sh vagrant.calico.sh```
## Deploying demo app
1. SSH to k8s-master-l1-1 node: ```vagrant ssh k8s-master-l1-1```
2. Execute: ```kubectl -f apply demo/namespace.yaml```
3. Execute: ```kubectl -f apply demo/deployment.yaml```
4. Execute: ```kubectl -f apply demo/service.yaml```
## Checking BGP peering in IP Fabirc
1. Execute: ```vagrant ssh leaf1 -c "sudo net show bgp sum"```
2. Execute: ```vagrant ssh leaf2 -c "sudo net show bgp sum"```
3. Execute: ```vagrant ssh spine1 -c "sudo net show bgp sum"```
4. Execute: ```vagrant ssh spine2 -c "sudo net show bgp sum"```
## Checking BGP prefixes in IP Fabirc
1. Execute: ```vagrant ssh leaf1 -c "sudo net show bgp"```
2. Execute: ```vagrant ssh leaf2 -c "sudo net show bgp"```
3. Execute: ```vagrant ssh spine1 -c "sudo net show bgp"```
4. Execute: ```vagrant ssh spine2 -c "sudo net show bgp"```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment