diff --git a/deploy.istio.yaml b/deploy.istio.yaml index bfcdb70..f6c58b9 100644 --- a/deploy.istio.yaml +++ b/deploy.istio.yaml @@ -680,8 +680,8 @@ spec: servers: - port: number: 6000 - name: tcp - protocol: TCP + name: http + protocol: HTTP hosts: - "*" --- diff --git a/deploy.yaml b/deploy.yaml index 199116a..c168bff 100644 --- a/deploy.yaml +++ b/deploy.yaml @@ -135,8 +135,8 @@ spec: servers: - port: number: 6000 - name: tcp - protocol: TCP + name: http + protocol: HTTP hosts: - "*" --- diff --git a/serverA/app.py b/serverA/app.py index fd6f1fc..884cfe7 100644 --- a/serverA/app.py +++ b/serverA/app.py @@ -14,6 +14,11 @@ def doRequest(): def itWorks(): return requests.get(URL).json() +@app.route('/text') +def hope(): + return requests.get(URL).text + + @app.route('/find//') def findServer(name, port): return requests.get("http://"+name+":"+port)