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 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: rabbit-mq name: rabbit-mq
spec: spec:
replicas: 1 replicas: 1
selector: 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 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: metadata:
name: rest-gateway name: rest-gateway
spec: spec:
replicas: 2 replicas: 1
selector: selector:
matchLabels: matchLabels:
app: rest-gateway 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: ...@@ -20,6 +20,11 @@ class MongoRepository:
def get_traces(self, selection: dict = {}): def get_traces(self, selection: dict = {}):
return self._collection.find(selection) return self._collection.find(selection)
def drop_collection(self):
self._collection.drop()
traces = MongoRepository().get_traces() traces = MongoRepository().get_traces()
for t in traces: for t in traces:
print(str(t)) print(str(t))
\ No newline at end of file
# 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