-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.yaml
107 lines (103 loc) · 2.65 KB
/
deployment.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
---
apiVersion: v1
kind: Namespace
metadata:
name: realestate
namespace: realestate
---
apiVersion: v1
kind: Service
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -n realestate -o deployment.yaml
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.service: mongodb
name: mongodb
namespace: realestate
spec:
ports:
- name: "27017"
port: 27017
targetPort: 27017
selector:
io.kompose.service: mongodb
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -n realestate -o deployment.yaml
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.service: mongodb
name: mongodb
namespace: realestate
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: mongodb
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -n realestate -o deployment.yaml
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.network/realestate-default: "true"
io.kompose.service: mongodb
spec:
containers:
- env:
- name: MONGO_INITDB_DATABASE
value: suumo
- name: MONGO_INITDB_ROOT_PASSWORD
value: password
- name: MONGO_INITDB_ROOT_USERNAME
value: admin
- name: TZ
value: Asia/Tokyo
image: mongo:latest
name: mongodb
ports:
- containerPort: 27017
hostPort: 27017
protocol: TCP
restartPolicy: Always
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -n realestate -o deployment.yaml
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.service: scraper
name: scraper
namespace: realestate
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: scraper
template:
metadata:
annotations:
kompose.cmd: kompose convert -f docker-compose.yml -n realestate -o deployment.yaml
kompose.version: 1.32.0 (765fde254)
labels:
io.kompose.network/realestate-default: "true"
io.kompose.service: scraper
spec:
containers:
- env:
- name: TZ
value: Asia/Tokyo
- name: MONGO_URI
value: mongodb://admin:[email protected]:27017/?authSource=admin
- name: CRON_SCHEDULE
value: "*/5 * * * *"
image: suumo-scraper
name: suumo-scraper
imagePullPolicy: IfNotPresent
restartPolicy: Always