NAME=jimminter
LOCATION=eastus
az group create -g $NAME -l $LOCATION
az aks create -g $NAME -n $NAME --network-plugin azure
az aks get-credentials -g $NAME -n $NAME
kubectl apply -f pingpong.yaml
-
kubectl get node,pod,svc -A -o wide
to show nodes/pods/services and IPs -
ssh-k8s to connect to a node
-
apt install net-tools
to install net-tools -
ifconfig
(ip a show
) to show interfaces -
route
(ip route show
) to show route table -
arp
(cat /proc/net/arp
) to show arp table -
iptables -t nat -nvL
to show iptables NAT rules -
netstat -lnp
to list processes listening on sockets -
tcpdump -n -p -i $IF -s0 -X
to dump network trafic on an interface -
nsenter -n -t $PID bash
to enter the network namespace of a PID