jim-minter / pingpong

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Let's play pingpong!

Create cluster

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

Some tools to investigate

  1. kubectl get node,pod,svc -A -o wide to show nodes/pods/services and IPs

  2. ssh-k8s to connect to a node

  3. apt install net-tools to install net-tools

  4. ifconfig (ip a show) to show interfaces

  5. route (ip route show) to show route table

  6. arp (cat /proc/net/arp) to show arp table

  7. iptables -t nat -nvL to show iptables NAT rules

  8. netstat -lnp to list processes listening on sockets

  9. tcpdump -n -p -i $IF -s0 -X to dump network trafic on an interface

  10. nsenter -n -t $PID bash to enter the network namespace of a PID

About


Languages

Language:Go 72.2%Language:Makefile 20.6%Language:Dockerfile 7.2%