update info of infra/README.md
[ealt-edge.git] / example-apps / ROBO / deployment / smartshelf-deployment.yaml
1 ---
2 apiVersion: apps/v1
3 kind: Deployment
4 metadata:
5   name: robo-deployment
6 spec:
7   replicas: 2
8   selector:
9     matchLabels:
10       app: robo
11   template:
12     metadata:
13       labels:
14         app: robo
15     spec:
16       containers:
17         - name: robo
18           image: ealtedge/robo
19           ports:
20             - containerPort: 80
21 ---
22 apiVersion: v1
23 kind: Service
24 metadata:
25   name: robo-service
26 spec:
27   type: NodePort
28   selector:
29     app: robo
30   ports:
31     - protocol: "TCP"
32       port: 8000
33       targetPort: 80
34       nodePort: 30001
35 ---
36 apiVersion: apps/v1
37 kind: Deployment
38 metadata:
39   name: backup-be
40 spec:
41   replicas: 1
42   selector:
43     matchLabels:
44       app: backup
45   template:
46     metadata:
47       labels:
48         app: backup
49     spec:
50       volumes:
51         - name: task-pv-storage
52           persistentVolumeClaim:
53             claimName: task-pv-claim
54       containers:
55         - name: backup-be
56           image: ealtedge/robo-be
57           env:
58             - name: KUBE_CONFIG
59               value: "/usr/app/.kube/config"
60             - name: HOSTIP
61               value: "159.138.129.53"
62           ports:
63             - containerPort: 8091
64           volumeMounts:
65             - name: task-pv-storage
66               mountPath: "/usr/app/.kube/"
67 ---
68 apiVersion: v1
69 kind: Service
70 metadata:
71   name: backup-be
72 spec:
73   selector:
74     app: backup
75   type: NodePort
76   ports:
77     - port: 8091
78       name: service-port
79       nodePort: 30081
80 ---
81 apiVersion: v1
82 kind: PersistentVolume
83 metadata:
84   name: task-pv-volume
85   labels:
86     type: local
87 spec:
88   storageClassName: manual
89   capacity:
90     storage: 1Gi
91   accessModes:
92     - ReadWriteOnce
93   hostPath:
94     path: "/root/.kube/"
95 ---
96 apiVersion: v1
97 kind: PersistentVolumeClaim
98 metadata:
99   name: task-pv-claim
100 spec:
101   storageClassName: manual
102   accessModes:
103     - ReadWriteOnce
104   resources:
105     requests:
106       storage: 1Gi
107 ---
108 apiVersion: apps/v1
109 kind: Deployment
110 metadata:
111   name: inventory-be
112   namespace: my-test
113 spec:
114   replicas: 1
115   selector:
116     matchLabels:
117       app: inventory
118   template:
119     metadata:
120       labels:
121         app: inventory
122     spec:
123       containers:
124         - name: inventory-be
125           image: ealtedge/inventory-be:v1.3
126           env:
127             - name: INFLUXDB_IP
128               value: "159.138.129.53"
129             - name: INFLUXDB_PORT
130               value: "30270"
131             - name: OBJ_DET_SER_IP
132               value: "159.138.129.53"
133             - name: OBJ_DET_SER_PORT
134               value: "30093"
135           ports:
136             - containerPort: 9995
137 ---
138 apiVersion: v1
139 kind: Service
140 metadata:
141   name: inventory-be
142   namespace: my-test
143 spec:
144   selector:
145     app: inventory
146   type: NodePort
147   ports:
148     - port: 9995
149       name: service-port
150       nodePort: 30092
151 ---
152 apiVersion: apps/v1
153 kind: Deployment
154 metadata:
155   name: obj-detection
156 spec:
157   replicas: 1
158   selector:
159     matchLabels:
160       app: detection
161   template:
162     metadata:
163       labels:
164         app: detection
165     spec:
166       containers:
167         - name: obj-detection
168           image: ealtedge/obj-detection
169           ports:
170             - containerPort: 9999
171           volumeMounts:
172             - name: host-path-storage
173               mountPath: "/usr/app/model/"
174       volumes:
175         - name: host-path-storage
176           persistentVolumeClaim:
177             claimName: host-path-claim
178 ---
179 apiVersion: v1
180 kind: PersistentVolume
181 metadata:
182   name: host-path-pv
183   labels:
184     type: local
185 spec:
186   storageClassName: manual
187   capacity:
188     storage: 2Gi
189   accessModes:
190     - ReadWriteOnce
191   hostPath:
192     path: "/root/model/"
193 ---
194 apiVersion: v1
195 kind: PersistentVolumeClaim
196 metadata:
197   name: host-path-claim
198 spec:
199   storageClassName: manual
200   accessModes:
201     - ReadWriteOnce
202   resources:
203     requests:
204       storage: 2Gi
205 ---
206 apiVersion: v1
207 kind: Service
208 metadata:
209   name: obj-detection
210 spec:
211   selector:
212     app: detection
213   type: NodePort
214   ports:
215     - port: 9999
216       name: service-port
217       nodePort: 30093