Cluster Setup with Antrea CNI on Digital Ocean
- Antrea CNI Antrea
- See also TGIK Episode 135: Antrea CNI
- 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
#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
#1. Execute bash script: ./do-cluster.sh destroy
kubectl ceate -f ./deployments/sample-apps/emojivoto/deployments.yml
# 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 .