-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
38 lines (38 loc) · 858 Bytes
/
deployment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: apps/v1
kind: Deployment
metadata:
name: mongosync
namespace: development
labels:
app: mongosync
spec:
replicas: 1
selector:
matchLabels:
app: mongosync
template:
metadata:
namespace: development
labels:
app: mongosync
spec:
containers:
- name: mongosync
image: guillevalin/mongosync:1.6.1
ports:
- containerPort: 27182
protocol: TCP
env:
- name: SRC_URI
value: 'mongodb://localhost:27017'
- name: DST_URI
value: 'mongodb://localhost:27018'
resources:
requests:
cpu: 200m
memory: 512Mi
limits:
cpu: 1
memory: 4Gi
restartPolicy: Always
terminationGracePeriodSeconds: 30