Commit dfc75504 authored by Manuel's avatar Manuel

restGateway: added database deployment

parent d728e14e
......@@ -32,3 +32,43 @@ spec:
image: alexx882/rest-gateway
ports:
- containerPort: 5000
---
apiVersion: v1
kind: Service
metadata:
name: rest-gateway-db
spec:
type: LoadBalancer
selector:
app: rest-gateway-db
ports:
- name: http
port: 27017
targetPort: 27017
nodePort: 30402
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rest-gateway-db
spec:
replicas: 1
selector:
matchLabels:
app: rest-gateway-db
template:
metadata:
labels:
app: rest-gateway-db
spec:
containers:
- name: rest-gateway-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
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