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

distributed tracing

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