Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SMART
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
3
Issues
3
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UNI-KLU
SMART
Commits
5a50ca77
Commit
5a50ca77
authored
Aug 19, 2019
by
Alexander Lercher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trace Retrieval: Added MongoDB; only one k8s file
parent
25716ce5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
63 additions
and
26 deletions
+63
-26
deploy.py
deploy.py
+3
-5
deployment.yml
...in/trace-retrieval-microservice/deployment/deployment.yml
+60
-3
service.yml
...ub-in/trace-retrieval-microservice/deployment/service.yml
+0
-18
No files found.
deploy.py
View file @
5a50ca77
...
...
@@ -3,12 +3,10 @@ import os
docker_reg
=
'172.16.1.20:5000'
paths
=
[]
for
r
,
_
,
f
in
os
.
walk
(
'./'
):
for
p
,
_
,
f
in
os
.
walk
(
'./'
):
for
file
in
f
:
if
'deployment.yml'
==
file
:
paths
.
append
(
os
.
path
.
join
(
r
,
''
))
paths
.
append
(
os
.
path
.
join
(
p
,
''
))
for
path
in
paths
:
os
.
system
(
f
"kubectl apply -f {path}deployment.yml"
)
os
.
system
(
f
"kubectl apply -f {path}service.yml"
)
os
.
system
(
f
"kubectl apply -f {path}"
)
transaction-hub-in/trace-retrieval-microservice/deployment/deployment.yml
View file @
5a50ca77
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
trace-retrieval
spec
:
type
:
LoadBalancer
externalIPs
:
-
143.205.173.36
selector
:
app
:
trace-retrieval
ports
:
-
name
:
http
port
:
80
targetPort
:
5000
nodePort
:
30001
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
trace-retrieval
spec
:
replicas
:
2
selector
:
...
...
@@ -18,4 +33,46 @@ spec:
-
name
:
trace-retrieval
image
:
172.16.1.20:5000/trace-retrieval-microservice
ports
:
-
containerPort
:
5000
\ No newline at end of file
-
containerPort
:
5000
---
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
trace-retrieval-db
spec
:
type
:
LoadBalancer
externalIPs
:
-
143.205.173.36
selector
:
app
:
trace-retrieval-db
ports
:
-
name
:
http
port
:
27017
targetPort
:
27017
nodePort
:
30003
protocol
:
TCP
---
apiVersion
:
apps/v1
kind
:
Deployment
metadata
:
name
:
trace-retrieval-db
spec
:
replicas
:
1
selector
:
matchLabels
:
app
:
trace-retrieval-db
template
:
metadata
:
labels
:
app
:
trace-retrieval-db
spec
:
containers
:
-
name
:
trace-retrieval-db
image
:
mongo
env
:
-
name
:
MONGO_INITDB_ROOT_USERNAME
value
:
root
-
name
:
MONGO_INITDB_ROOT_PASSWORD
value
:
root
ports
:
-
containerPort
:
27017
\ No newline at end of file
transaction-hub-in/trace-retrieval-microservice/deployment/service.yml
deleted
100644 → 0
View file @
25716ce5
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
trace-retrieval
spec
:
type
:
LoadBalancer
externalIPs
:
-
143.205.173.36
selector
:
app
:
trace-retrieval
ports
:
-
name
:
http
port
:
80
targetPort
:
5000
nodePort
:
30001
protocol
:
TCP
\ No newline at end of file
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