/kubectl-testnet

k8s plugin to test network connectivity within the cluster (useful for netpol tests)

Primary LanguageShell

You can test connectivity to pod (using IP or name) and external domain

💨 Quick test

Test connectivity and exit

kubectl testnet [endpoint:port]

🥡 Test connectivity on-demand

Launch a container and test connectivity on-demand:

# launch on-demand testnet pod 
kubectl testnet server -l app=toto
# trigger test to google.com:80
kubectl testnet client google.fr:80 -l app=toto

See testnet logs:

kubectl testnet client  --log -l app=toto

Installation

Put kubectl-testnet in your $PATH