Skip to content

Commit b1783dd

Browse files
author
Attila Ujj
committed
BOT-1988 adding scripts
1 parent 0853cbf commit b1783dd

File tree

1 file changed

+302
-0
lines changed

1 file changed

+302
-0
lines changed

scripts/k8s/picotts.yml

Lines changed: 302 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,302 @@
1+
2+
# Source: botium-speech-processing/templates/01-secrets.yml
3+
apiVersion: v1
4+
kind: Secret
5+
metadata:
6+
name: botium-speech-processing-secrets
7+
labels:
8+
name: secrets
9+
app: botium-speech-processing
10+
stringData:
11+
AUTH_APIKEYS: ""
12+
type: Opaque
13+
---
14+
# Source: botium-speech-processing/templates/02-configmap.yml
15+
apiVersion: v1
16+
kind: ConfigMap
17+
metadata:
18+
name: botium-speech-processing-configmap
19+
labels:
20+
name: config
21+
app: botium-speech-processing
22+
data:
23+
BOTIUM_SPEECH_PROVIDER_TTS: "picotts"
24+
BOTIUM_SPEECH_PROVIDER_STT: "kaldi"
25+
BOTIUM_SPEECH_GOOGLE_CLIENT_EMAIL: ""
26+
BOTIUM_SPEECH_GOOGLE_PRIVATE_KEY: ""
27+
---
28+
# Source: botium-speech-processing/templates/03-volumes.yml
29+
apiVersion: v1
30+
kind: PersistentVolumeClaim
31+
metadata:
32+
name: botium-speech-processing-claim
33+
labels:
34+
name: botium-speech-processing-claim
35+
app: botium-speech-processing
36+
tier: frontend
37+
spec:
38+
accessModes:
39+
- ReadWriteOnce
40+
storageClassName: <<Placeholder BOTIUM_SPEECH_PROCESSING_STORAGE_CLASS>>
41+
resources:
42+
requests:
43+
storage: 5Gi
44+
---
45+
# Source: botium-speech-processing/templates/04-frontend.yml
46+
apiVersion: v1
47+
kind: Service
48+
metadata:
49+
name: frontend
50+
spec:
51+
type: ClusterIP
52+
ports:
53+
- protocol: TCP
54+
port: 56000
55+
targetPort: 56000
56+
selector:
57+
name: frontend
58+
app: botium-speech-processing
59+
---
60+
# Source: botium-speech-processing/templates/05-stt_en.yml
61+
apiVersion: v1
62+
kind: Service
63+
metadata:
64+
name: stt-en
65+
spec:
66+
type: ClusterIP
67+
ports:
68+
- protocol: TCP
69+
port: 80
70+
targetPort: 80
71+
selector:
72+
name: stt-en
73+
app: botium-speech-processing
74+
---
75+
# Source: botium-speech-processing/templates/06-stt_de.yml
76+
apiVersion: v1
77+
kind: Service
78+
metadata:
79+
name: stt-de
80+
spec:
81+
type: ClusterIP
82+
ports:
83+
- protocol: TCP
84+
port: 80
85+
targetPort: 80
86+
selector:
87+
name: stt-de
88+
app: botium-speech-processing
89+
---
90+
# Source: botium-speech-processing/templates/08-dictate.yml
91+
apiVersion: v1
92+
kind: Service
93+
metadata:
94+
name: dictate
95+
spec:
96+
type: ClusterIP
97+
ports:
98+
- protocol: TCP
99+
port: 56100
100+
targetPort: 56100
101+
selector:
102+
name: dictate
103+
app: botium-speech-processing
104+
---
105+
# Source: botium-speech-processing/templates/04-frontend.yml
106+
apiVersion: apps/v1
107+
kind: Deployment
108+
metadata:
109+
name: frontend
110+
labels:
111+
name: frontend
112+
app: botium-speech-processing
113+
tier: frontend
114+
spec:
115+
replicas: 1
116+
strategy:
117+
type: Recreate
118+
selector:
119+
matchLabels:
120+
name: frontend
121+
app: botium-speech-processing
122+
template:
123+
metadata:
124+
labels:
125+
name: frontend
126+
app: botium-speech-processing
127+
tier: frontend
128+
spec:
129+
volumes:
130+
- name: botium-speech-processing-storage
131+
persistentVolumeClaim:
132+
claimName: botium-speech-processing-claim
133+
containers:
134+
- name: frontend
135+
image: botium/botium-speech-frontend:latest
136+
ports:
137+
- name: frontend-56000
138+
containerPort: 56000
139+
volumeMounts:
140+
- mountPath: /app/resources
141+
name: botium-speech-processing-storage
142+
env:
143+
- name: AUTH_APIKEYS
144+
valueFrom:
145+
secretKeyRef:
146+
name: botium-speech-processing-secrets
147+
key: AUTH_APIKEYS
148+
- name: BOTIUM_SPEECH_PROVIDER_TTS
149+
valueFrom:
150+
configMapKeyRef:
151+
name: botium-speech-processing-configmap
152+
key: BOTIUM_SPEECH_PROVIDER_TTS
153+
- name: BOTIUM_SPEECH_PROVIDER_STT
154+
valueFrom:
155+
configMapKeyRef:
156+
name: botium-speech-processing-configmap
157+
key: BOTIUM_SPEECH_PROVIDER_STT
158+
- name: BOTIUM_SPEECH_GOOGLE_CLIENT_EMAIL
159+
valueFrom:
160+
configMapKeyRef:
161+
name: botium-speech-processing-configmap
162+
key: BOTIUM_SPEECH_GOOGLE_CLIENT_EMAIL
163+
- name: BOTIUM_SPEECH_GOOGLE_PRIVATE_KEY
164+
valueFrom:
165+
configMapKeyRef:
166+
name: botium-speech-processing-configmap
167+
key: BOTIUM_SPEECH_GOOGLE_PRIVATE_KEY
168+
---
169+
# Source: botium-speech-processing/templates/05-stt_en.yml
170+
apiVersion: apps/v1
171+
kind: Deployment
172+
metadata:
173+
name: stt-en
174+
labels:
175+
name: stt-en
176+
app: botium-speech-processing
177+
tier: stt-en
178+
spec:
179+
replicas: 1
180+
strategy:
181+
type: Recreate
182+
selector:
183+
matchLabels:
184+
name: stt-en
185+
app: botium-speech-processing
186+
template:
187+
metadata:
188+
labels:
189+
name: stt-en
190+
app: botium-speech-processing
191+
tier: stt-en
192+
spec:
193+
volumes:
194+
- name: botium-speech-processing-storage
195+
persistentVolumeClaim:
196+
claimName: botium-speech-processing-claim
197+
containers:
198+
- name: stt-en
199+
image: botium/botium-speech-kaldi-en:latest
200+
ports:
201+
- name: stt-en
202+
containerPort: 80
203+
volumeMounts:
204+
- mountPath: /opt/logs
205+
name: botium-speech-processing-storage
206+
---
207+
# Source: botium-speech-processing/templates/06-stt_de.yml
208+
apiVersion: apps/v1
209+
kind: Deployment
210+
metadata:
211+
name: stt-de
212+
labels:
213+
name: stt-de
214+
app: botium-speech-processing
215+
tier: stt-de
216+
spec:
217+
replicas: 1
218+
strategy:
219+
type: Recreate
220+
selector:
221+
matchLabels:
222+
name: stt-de
223+
app: botium-speech-processing
224+
template:
225+
metadata:
226+
labels:
227+
name: stt-de
228+
app: botium-speech-processing
229+
tier: stt-de
230+
spec:
231+
volumes:
232+
- name: botium-speech-processing-storage
233+
persistentVolumeClaim:
234+
claimName: botium-speech-processing-claim
235+
containers:
236+
- name: stt-de
237+
image: botium/botium-speech-kaldi-de:latest
238+
volumeMounts:
239+
- mountPath: /opt/logs
240+
name: botium-speech-processing-storage
241+
---
242+
# Source: botium-speech-processing/templates/08-dictate.yml
243+
apiVersion: apps/v1
244+
kind: Deployment
245+
metadata:
246+
name: dictate
247+
labels:
248+
name: dictate
249+
app: botium-speech-processing
250+
tier: dictate
251+
spec:
252+
replicas: 1
253+
strategy:
254+
type: Recreate
255+
selector:
256+
matchLabels:
257+
name: dictate
258+
app: botium-speech-processing
259+
template:
260+
metadata:
261+
labels:
262+
name: dictate
263+
app: botium-speech-processing
264+
tier: dictate
265+
spec:
266+
containers:
267+
- name: dictate
268+
image: botium/botium-speech-dictate:latest
269+
ports:
270+
- name: dictate-56100
271+
containerPort: 56100
272+
---
273+
# Source: botium-speech-processing/templates/09-ingress.yml
274+
apiVersion: extensions/v1beta1
275+
kind: Ingress
276+
metadata:
277+
name: speech-processing-ingress
278+
annotations:
279+
kubernetes.io/ingress.class: nginx
280+
rancher.io/globalDNS.hostname: <<Placeholder FQDN>>
281+
spec:
282+
rules:
283+
- http:
284+
paths:
285+
- path: /
286+
backend:
287+
serviceName: frontend
288+
servicePort: 56000
289+
- path: /stt-en
290+
backend:
291+
serviceName: stt-en
292+
servicePort: 80
293+
- path: /stt-de
294+
backend:
295+
serviceName: stt-de
296+
servicePort: 80
297+
- path: /dictate
298+
backend:
299+
serviceName: dictate
300+
servicePort: 56100
301+
host: <<Placeholder FQDN>>
302+

0 commit comments

Comments
 (0)