- start VM
limactl start k3s.yaml
- SHELL1: shell into VM
limactl shell k3s
- SHELL1: start a test pod
kubectl run test -ti --rm --image=alpine
- SHELL1: install curl
apk add curl
- SHELL1: test network is working
curl -I https://www.google.com
- SHELL2: start another shell from host
limactl shell k3s
- SHELL2: attach xdp
sudo python3 xdp_drop.py cni0
- SHELL1: verify network is not working
curl -I https://www.google.com
- SHELL2: detach xdp by pressing
Ctrl+C
- SHELL1: verify network is working again
curl -I https://www.google.com