Java Docker UDP Server and Client For K8S testing
Port 4445 is exposed and must be used via UDP only. When used, server will echo the response back and prints out client sent message to STDOUT. Trivial application designed to test network connectivity with K8S Ingress UDP.
You must launch Server first
docker run -it -p 4445:4445/udp --name udp-test-server danielyinanc/udp-server-docker
java -jar client/build/libs/client.jar
You should see "test test" replicated across your docker console output. Same for kubernetes, you will see it on your console log. Client application is designed to test it locally, you need to modify java to make it work for your Ingress deployment.
- Make Client more configurable such as hostname, ip
- Make Client accept bounced back UDP packages to ensure docker udp server sent packages survive network ingress