diff --git a/deploy.yaml b/deploy.yaml index 6639d07..53e3411 100644 --- a/deploy.yaml +++ b/deploy.yaml @@ -214,7 +214,7 @@ spec: host: expose-server-service - match: - uri: - prefix: /get + prefix: /server-d route: - destination: port: @@ -250,7 +250,7 @@ spec: hosts: - "*" gateways: - - server-check-gateway + - expose-server-gateway tcp: - match: - port: 6000 @@ -269,4 +269,6 @@ spec: weight: 50 mirror: host: mirror-service + port: + number: 6000 mirror_percent: 100 \ No newline at end of file diff --git a/serverD/app.py b/serverD/app.py index d3a2bc7..563198d 100644 --- a/serverD/app.py +++ b/serverD/app.py @@ -14,7 +14,7 @@ def doRequest(path): return "None" -@app.route('/get') +@app.route('/server-d/get') def get(): with open("test.txt", "r") as infile: return 'we have something: ' + '\n '.join(infile.readlines()) diff --git a/serverD/requirements.txt b/serverD/requirements.txt new file mode 100644 index 0000000..2077213 --- /dev/null +++ b/serverD/requirements.txt @@ -0,0 +1 @@ +Flask \ No newline at end of file