Spring based rest service to test http routes in kubernetes. Showing http status, response, timing and istio envy settings.
- mvn package
- docker build -t wlanboy/javahttpclient:latest . --build-arg JAR_FILE=./target/javahttpclient-0.0.1-SNAPSHOT.jar
- docker run -d --name httpclient --publish 8080:8080 --restart unless-stopped wlanboy/javahttpclient:latest
curl -L -X POST 'http://127.0.0.1:8080/client' -H 'Content-Type: application/json' \
-d '{"url" : "https://github.com", "copyHeaders": "false"}'curl -fsSL https://raw.githubusercontent.com/metalbear-co/mirrord/main/scripts/install.sh | bash
mirrord exec -n javahttpclient --target deployment/javahttpclient -- ./mvnw spring-boot:runcurl -X 'POST' \
'http://localhost:8080/client' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"url": "http://gmk:8003/resolve/google.com",
"method": "GET",
"body": "",
"copyHeaders": false
}'
curl -X 'POST' \
'http://localhost:8080/client' \
-H 'accept: */*' \
-H 'Content-Type: application/json' \
-d '{
"url": "http://gmk:8003/mirror?request=HalloWelt&statuscode=200&wait=4",
"method": "GET",
"body": "",
"copyHeaders": true
}'

