Commit 00377424 authored by Nane Kratzke's avatar Nane Kratzke
Browse files

fixing service refers

parent 55928de6
......@@ -2,6 +2,7 @@ image: "transit/kubectl-plus:v1.19.4"
stages:
- prepare
- build
- deploy
- teardown
......@@ -22,7 +23,7 @@ secrets:
"
space-container:
stage: prepare
stage: build
image:
name: gcr.io/kaniko-project/executor:debug
entrypoint: [""]
......
......@@ -28,3 +28,7 @@ spec:
env:
- name: ROLE
value: "{{ ROLE }}"
- name: ASTROS_SVC
value: "space-astros-svc"
- name: POSITION_SVC
value: "space-position-svc"
......@@ -8,7 +8,7 @@ import json
# content-based traffic management.
role = os.environ.get('ROLE', 'data')
astro_svc = os.environ.get("ASTRO_SVC", "astros")
astros_svc = os.environ.get("ASTROS_SVC", "astros")
position_svc = os.environ.get("POSITION_SVC", "position")
app = Flask(__name__)
......@@ -31,7 +31,7 @@ def load_url(url, headers):
def data():
return jsonify({
'from': socket.gethostname(),
'astros': load_url(f"http://{astro_svc}", request.headers),
'astros': load_url(f"http://{astros_svc}", request.headers),
'position': load_url(f"http://{position_svc}", request.headers)
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment