Skip to content

Instantly share code, notes, and snippets.

@brianpursley
Created February 6, 2022 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brianpursley/3e303b6859a7c06693ff61923997d4c7 to your computer and use it in GitHub Desktop.
Save brianpursley/3e303b6859a7c06693ff61923997d4c7 to your computer and use it in GitHub Desktop.
Start a TCP echo pod in Kubernetes
kubectl run tcpecho --image=alpine --restart=Never -- /bin/sh -c "apk add socat && socat -v tcp-listen:8080,fork EXEC:cat"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment