Commit c678e74b authored by Manuel Herold's avatar Manuel Herold

[trust] added db deployment to deployment file

parent 826c3dbd
......@@ -31,4 +31,49 @@ spec:
- name: reputation-calculation
image: alexx882/reputation-calculation-microservice
ports:
- containerPort: 5000
\ No newline at end of file
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: rest-gateway-db
spec:
type: LoadBalancer
selector:
app: reputation-calculation-db
ports:
- name: http
port: 27017
targetPort: 27017
nodePort: 30108
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: reputation-calculation-db
spec:
replicas: 1
selector:
matchLabels:
app: reputation-calculation-db
template:
metadata:
labels:
app: reputation-calculation-db
spec:
containers:
- name: reputation-calculation-db
image: mongo
env:
- name: MONGO_INITDB_ROOT_USERNAME
value: root
- name: MONGO_INITDB_ROOT_PASSWORD
value: root
ports:
- containerPort: 27017
volumeMounts:
- mountPath: /data/db
name: dbdata
volumes:
- name: dbdata
\ 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