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

update

parent fd26736a
......@@ -38,6 +38,7 @@ hiphop:
stage: deploy
image: $KUBECTL
script:
- kubectl deploy -f deploy/tracing.yaml
- TIER=1 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
- TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl apply -f -
......@@ -52,3 +53,4 @@ shutdown:
- TIER=2 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- TIER=3 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- TIER=4 mo deploy/hiphop-deploy+svc.yaml | kubectl delete -f -
- kubectl delete -f deploy/tracing.yaml
......@@ -3,7 +3,7 @@ kind: Deployment
metadata:
name: hiphop-deployment-{{ TIER }}
annotations:
"sidecar.jaegertracing.io/inject": "true"
"sidecar.jaegertracing.io/inject": "tracing"
spec:
replicas: {{ TIER }}
selector:
......
......@@ -17,7 +17,7 @@ config = Config(config = {
'sampler': {
'type': 'const',
'param': 1
},
},
'logging': True,
'reporter_batch_size': 1
}, service_name=service)
......@@ -25,7 +25,6 @@ config = Config(config = {
jaeger_tracer = config.initialize_tracer()
tracing = FlaskTracing(jaeger_tracer, True, app)
@app.route('/')
def index():
return redirect('/hip')
......@@ -36,9 +35,8 @@ def hip():
try:
r = requests.get(f"http://{service}-{tier + 1}", allow_redirects=True)
print(r)
r = r.content
r = r.content.decode('utf-8')
except Exception as ex:
print(ex)
r = " -> END"
return f"hop-{ tier }{ r }"
......
Markdown is supported
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