Skip to content

Instantly share code, notes, and snippets.

@georgepaoli
Created December 19, 2018 13:24
Show Gist options
  • Save georgepaoli/dae0b9cfdf5632acf087bc6d4c0b7d62 to your computer and use it in GitHub Desktop.
Save georgepaoli/dae0b9cfdf5632acf087bc6d4c0b7d62 to your computer and use it in GitHub Desktop.
Test communication between pods
kubectl create ns test
kubectl run --namespace=test nginx --replicas=2 --image=nginx
kubectl expose --namespace=test deployment nginx --port=80
kubectl run --namespace=test access --rm -ti --image busybox /bin/sh
wget -q nginx -O -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment