Skip to content

PellePedro/antrea-playground

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Antrea-playground

Cluster Setup with Antrea CNI on Digital Ocean

Cluster Setup

- do-cluster.sh creates droplets on Digital Ocean
- Ansibe Playbook (from Antrea repo) creates a 3 Node Kubernetes Cluster
- Antrea is deployed by the yaml seployments/antrea/antrea.yaml 

Create Cluster

#1. Execute bash script: 
./do-cluster.sh create 

#2. Copy the Public IP's of Master and Worker to host file  

#3. Execute bash script to run provisioning playbook: 
./run-playbook.sh

#4. Copy ./playbook/kube/config to ~/.kube
rm ~/.kube/config
cp ./playbook/kube/config ~/.kube

#5. Deploy Antrea 
kubectl create -f ./deployments/antrea/antrea.yml

Destroy Cluster

#1. Execute bash script: ./do-cluster.sh destroy

Deploy Demo App

 kubectl ceate -f ./deployments/sample-apps/emojivoto/deployments.yml

Packet Tracing

# Capture
export W2=<worker2>
ssh -i ~/.ssh/id_rsa root@$W2
tcpdump -i eth0 -s 65535 -w capture.pcap

# 
scp -i ~/.ssh/id_rsa root@$W2:/root/capture.pcap .

About

Kubernetes Cluster with Antrea CNI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published