Skip to content

Instantly share code, notes, and snippets.

View velotiotech's full-sized avatar

Velotio Technologies velotiotech

View GitHub Profile
bridge fdb show
kubectl exec -it pod1 -- ping -c 4 <pod2-IP>
sudo tcpdump -i veth18eb7d52 icmp
sudo tcpdump -i veth3a94f27 icmp
sudo tcpdump -i cni0 icmp
kubectl get pods pod1 pod2 -o wide -A
kubectl run pod1 --image=busybox --restart=Never -- sleep infinity
kubectl run pod2 --image=busybox --restart=Never -- sleep infinity
brctl show
ip link show | grep 13
POD_ID=$(sudo crictl pods --name <pod_name> -q)
CONTAINER_ID=$(sudo crictl ps --pod $POD_ID -q)
nsenter -t $(sudo crictl inspect $CONTAINER_ID | jq -r .info.pid) -n ip addr show