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

distributed tracing

parent 3f2ef564
......@@ -2,19 +2,19 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: hiphop-deployment-{{ TIER }}
labels:
app: hiphop-{{ TIER }}
annotations:
"sidecar.jaegertracing.io/inject": "tracing"
spec:
replicas: {{ TIER }}
replicas: 1
selector:
matchLabels:
app: hiphop
tier: "{{ TIER }}"
app: hiphop-{{ TIER }}
template:
metadata:
labels:
app: hiphop
tier: "{{ TIER }}"
app: hiphop-{{ TIER }}
spec:
imagePullSecrets:
- name: gitlab-registry-credentials
......@@ -37,10 +37,11 @@ apiVersion: v1
kind: Service
metadata:
name: hiphop-svc-{{ TIER }}
labels:
app: hiphop-{{ TIER }}
spec:
selector:
app: hiphop
tier: "{{ TIER }}"
app: hiphop-{{ TIER }}
ports:
- protocol: TCP
port: 80
......
......@@ -46,7 +46,7 @@ def hip():
except Exception as ex:
print(ex)
traceback.print_exc()
r = " -> END"
return f"hop-{ tier }{ r }"
r = "END"
return f"hop-{ tier } -> { r }"
app.run(host="0.0.0.0", port=80)
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