This repository has been archived by the owner on Feb 26, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcluster-deployment copy.yml
210 lines (210 loc) · 5.27 KB
/
cluster-deployment copy.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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
apiVersion: v1
kind: ConfigMap
metadata:
name: azmlsi-db-config
data:
db-keyspace: az_ml_si_keyspace
db-persona-table: persona_table
db-sub-persona-table: sub_persona_table
db-sub-persona-face-edge-table: sub_persona_face_edge_table
db-face-sub-persona-edge-table: face_sub_persona_edge_table
db-raw-image-table: raw_image_table
db-face-image-table: face_image_table
db-log-offset-table: log_offset_table
---
apiVersion: v1
kind: ConfigMap
metadata:
name: azmlsi-bs-config
data:
blob-storage-con: test-data-con
---
apiVersion: batch/v1
kind: Job
metadata:
name: azmlsi-input-dpmt
labels:
app: azmlsi-input-dpmt
spec:
completions : 1
backoffLimit: 3
activeDeadlineSeconds: 600
template:
metadata:
labels:
app: azmlsi-input-dpmt
spec:
containers:
- name: azmlsi-input
image: azmlsiacr.azurecr.io/input-service
tty: true
env:
- name: BS_TEST_CON
valueFrom:
configMapKeyRef:
name: azmlsi-bs-config
key: blob-storage-con
- name: DB_KEYSPACE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-keyspace
- name: DB_PERSONA_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-persona-table
- name: DB_SUB_PERSONA_FACE_EDGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-sub-persona-face-edge-table
- name: DB_FACE_SUB_PERSONA_EDGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-face-sub-persona-edge-table
- name: DB_FACE_IMAGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-face-image-table
- name: DB_RAW_IMAGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-raw-image-table
- name: DB_FACE_IMAGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-face-image-table
ports:
- containerPort: 10350
name: azure-cosmo-db
- containerPort: 80
name: azure-file-str
volumeMounts:
- name: bs-secrets
mountPath: /tmp/secrets/bs
readOnly: true
- name: db-secrets
mountPath: /tmp/secrets/db
readOnly: true
restartPolicy: Never
imagePullSecrets:
- name: image-pull-secrets
volumes:
- name: bs-secrets
secret:
secretName: bs-secrets
- name: db-secrets
secret:
secretName: db-secrets
---
kind: Service
apiVersion: v1
metadata:
name: azmlsi-input-svc
spec:
selector:
app: azmlsi-input-dpmt
ports:
- protocol: TCP
port: 80
targetPort: 80
name: azure-file-str
- protocol: TCP
port: 10350
targetPort: 10350
name: azure-cosmos-db
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: azmlsi-visualization-deployment
labels:
app: azmlsi-visualization-deployment
spec:
replicas: 3
selector:
matchLabels:
app: azmlsi-visualization-deployment
template:
metadata:
labels:
app: azmlsi-visualization-deployment
spec:
containers:
- name: visualization
image: azmlsiacr.azurecr.io/viz-service
imagePullPolicy: Always
tty: true
env:
- name: DB_KEYSPACE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-keyspace
- name: DB_PERSONA_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-persona-table
- name: DB_SUB_PERSONA_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-sub-persona-table
- name: DB_SUB_PERSONA_FACE_EDGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-sub-persona-face-edge-table
- name: DB_FACE_SUB_PERSONA_EDGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-face-sub-persona-edge-table
- name: DB_RAW_IMAGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-raw-image-table
- name: DB_FACE_IMAGE_TABLE
valueFrom:
configMapKeyRef:
name: azmlsi-db-config
key: db-face-image-table
ports:
- containerPort: 5000
- containerPort: 10350
volumeMounts:
- name: db-secrets
mountPath: /tmp/secrets/db
readOnly: true
imagePullSecrets:
- name: image-pull-secrets
volumes:
- name: db-secrets
secret:
secretName: db-secrets
---
kind: Service
apiVersion: v1
metadata:
name: azmlsi-visualization-service
spec:
selector:
app: azmlsi-visualization-deployment
ports:
- protocol: TCP
name: web
port: 5000
targetPort: 5000
nodePort: 30080
- protocol: TCP
name: cassandra
port: 10350
targetPort: 10350
type: LoadBalancer