Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pump, Cedric
lab-tracing
Commits
b8aa8b3f
Commit
b8aa8b3f
authored
Dec 27, 2020
by
Nane Kratzke
Browse files
distributed tracing
parent
3f2ef564
Changes
2
Show whitespace changes
Inline
Side-by-side
deploy/hiphop-deploy+svc.yaml
View file @
b8aa8b3f
...
...
@@ -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
...
...
hiphop/service.py
View file @
b8aa8b3f
...
...
@@ -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
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment