diff --git a/README.md b/README.md index 098544a..bf7491f 100644 --- a/README.md +++ b/README.md @@ -42,5 +42,10 @@ wget --server-response \ --output-document response.out \ --header='Content-Type: application/json' \ --post-data '{"songs": ["Yesterday", "Bohemian Rhapsody"]}' \ - http://10.96.150.194:32196/api/recommend + http://:32196/api/recommend +``` +use o script sheel ``test.sh`` para testar alterando o ```` para o ip do cluster +voce pode ver o ip do cluster com o comando ``kubectl get services`` +``` + ./test.sh ``` \ No newline at end of file diff --git a/client.py b/client.py index 66667ae..705b259 100644 --- a/client.py +++ b/client.py @@ -2,7 +2,7 @@ import sys import json -api_url = 'http://10.96.150.194:32196/api/recommend' +api_url = 'http://10.111.233.250:32196/api/recommend' if len(sys.argv) < 2: print("Usage: python client.py ...") diff --git a/test.sh b/test.sh new file mode 100644 index 0000000..a5989dc --- /dev/null +++ b/test.sh @@ -0,0 +1,5 @@ +wget --server-response \ + --output-document response.out \ + --header='Content-Type: application/json' \ + --post-data '{"songs": ["Yesterday", "Bohemian Rhapsody"]}' \ + http://10.111.233.250:32171/api/recommend \ No newline at end of file