Commit 4fe1c07d authored by Alexander Lercher's avatar Alexander Lercher

Merged deployment files for deployed services

parent bc1e49e5
apiVersion: v1
kind: Service
metadata:
name: rabbit-mq
spec:
type: LoadBalancer
externalIPs:
- 143.205.173.36
selector:
app: rabbit-mq
ports:
- name: management
port: 15672
targetPort: 15672
nodePort: 30301
protocol: TCP
- name: message-broker
port: 5672
targetPort: 5672
nodePort: 30302
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rabbit-mq
spec:
replicas: 1
selector:
......
apiVersion: v1
kind: Service
metadata:
name: rabbit-mq
spec:
type: LoadBalancer
externalIPs:
- 143.205.173.36
selector:
app: rabbit-mq
ports:
- name: management
port: 15672
targetPort: 15672
nodePort: 30301
protocol: TCP
- name: message-broker
port: 5672
targetPort: 5672
nodePort: 30302
protocol: TCP
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: rest-gateway
spec:
type: LoadBalancer
externalIPs:
- 143.205.173.36
selector:
app: rest-gateway
ports:
- name: http
port: 80
targetPort: 5000
nodePort: 30401
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rest-gateway
spec:
replicas: 2
replicas: 1
selector:
matchLabels:
app: rest-gateway
......
apiVersion: v1
kind: Service
metadata:
name: rest-gateway
spec:
type: LoadBalancer
externalIPs:
- 143.205.173.36
selector:
app: rest-gateway
ports:
- name: http
port: 80
targetPort: 5000
nodePort: 30401
protocol: TCP
\ No newline at end of file
......@@ -20,6 +20,11 @@ class MongoRepository:
def get_traces(self, selection: dict = {}):
return self._collection.find(selection)
def drop_collection(self):
self._collection.drop()
traces = MongoRepository().get_traces()
for t in traces:
print(str(t))
\ No newline at end of file
print(str(t))
# MongoRepository().drop_collection()
\ No newline at end of file
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