deployment aangepast en betere urls, kweet nie waarom het niet werkt, kga terug efkes focusse op pipeline te laten werken

This commit is contained in:
2020-03-05 10:14:27 +01:00
parent 29fdb950f1
commit d252a2a466
3 changed files with 6 additions and 3 deletions

View File

@@ -214,7 +214,7 @@ spec:
host: expose-server-service host: expose-server-service
- match: - match:
- uri: - uri:
prefix: /get prefix: /server-d
route: route:
- destination: - destination:
port: port:
@@ -250,7 +250,7 @@ spec:
hosts: hosts:
- "*" - "*"
gateways: gateways:
- server-check-gateway - expose-server-gateway
tcp: tcp:
- match: - match:
- port: 6000 - port: 6000
@@ -269,4 +269,6 @@ spec:
weight: 50 weight: 50
mirror: mirror:
host: mirror-service host: mirror-service
port:
number: 6000
mirror_percent: 100 mirror_percent: 100

View File

@@ -14,7 +14,7 @@ def doRequest(path):
return "None" return "None"
@app.route('/get') @app.route('/server-d/get')
def get(): def get():
with open("test.txt", "r") as infile: with open("test.txt", "r") as infile:
return 'we have something: ' + '\n '.join(infile.readlines()) return 'we have something: ' + '\n '.join(infile.readlines())

1
serverD/requirements.txt Normal file
View File

@@ -0,0 +1 @@
Flask