-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathskaffold.yaml
More file actions
233 lines (217 loc) · 8.06 KB
/
skaffold.yaml
File metadata and controls
233 lines (217 loc) · 8.06 KB
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
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
apiVersion: skaffold/v4beta13
kind: Config
metadata:
name: chronicle
build:
tagPolicy:
dateTime:
format: "2006-01-02_15-04-05"
timezone: "UTC"
profiles:
- name: moonshine-asr
build:
artifacts:
- image: moonshine-asr
context: extras/asr-services
docker:
dockerfile: Dockerfile_Moonshine
deploy:
helm:
releases:
- name: moonshine-asr
chartPath: extras/asr-services/charts/moonshine
namespace: speech
createNamespace: true
setValueTemplates:
image.repository: "{{.IMAGE_REPO_moonshine_asr}}"
image.tag: "{{.IMAGE_TAG_moonshine_asr}}"
- name: parakeet-asr
build:
artifacts:
- image: parakeet-asr
context: extras/asr-services
docker:
dockerfile: Dockerfile_Parakeet
deploy:
helm:
releases:
- name: parakeet-asr
chartPath: extras/asr-services/charts/parakeet
namespace: speech
createNamespace: true
setValueTemplates:
image.repository: "{{.IMAGE_REPO_parakeet_asr}}"
image.tag: "{{.IMAGE_TAG_parakeet_asr}}"
- name: speaker-recognition
build:
local:
push: true
useDockerCLI: true
artifacts:
- image: speaker-recognition
context: extras/speaker-recognition
docker:
dockerfile: Dockerfile-k8s
buildArgs:
COMPUTE_MODE: "{{.COMPUTE_MODE}}"
- image: speaker-recognition-ui
context: extras/speaker-recognition/webui
docker:
dockerfile: Dockerfile
buildArgs:
VITE_ALLOWED_HOSTS: "{{.VITE_ALLOWED_HOSTS}}"
deploy:
helm:
releases:
- name: speaker-recognition
chartPath: extras/speaker-recognition/charts
namespace: speech
setValueTemplates:
speaker.image.repository: "{{.IMAGE_REPO_speaker_recognition}}"
speaker.image.tag: "{{.IMAGE_TAG_speaker_recognition}}"
webui.image.repository: "{{.IMAGE_REPO_speaker_recognition_ui}}"
webui.image.tag: "{{.IMAGE_TAG_speaker_recognition_ui}}"
# Node selector configuration
nodeSelector.hostname: "{{.SPEAKER_NODE}}"
# Shared models configuration
global.sharedModels.enabled: "true"
global.sharedModels.useHostPath: "true"
global.sharedModels.size: "20Gi"
global.sharedModels.hostPath: "/shared/models"
global.sharedModels.nodes[0]: "anubis"
global.sharedModels.nodes[1]: "babel"
# Infrastructure profile - deploy once, rarely updated
- name: infrastructure
deploy:
helm:
releases:
# Infrastructure components using Bitnami charts
- name: mongodb
remoteChart: oci://registry-1.docker.io/bitnamicharts/mongodb
version: "16.5.1"
namespace: "{{.INFRASTRUCTURE_NAMESPACE}}"
createNamespace: true
setValueTemplates:
auth.enabled: "false"
persistence.size: "10Gi"
persistence.storageClass: "openebs-hostpath"
service.nameOverride: "mongodb"
- name: qdrant
chartPath: backends/charts/qdrant
namespace: "{{.INFRASTRUCTURE_NAMESPACE}}"
setValueTemplates:
persistence.size: "10Gi"
persistence.storageClass: "openebs-hostpath"
- name: redis
remoteChart: oci://registry-1.docker.io/bitnamicharts/redis
version: "22.0.7"
namespace: "{{.INFRASTRUCTURE_NAMESPACE}}"
setValueTemplates:
auth.enabled: "false" # Disable authentication for simplicity
master.persistence.enabled: "true"
master.persistence.size: "2Gi"
master.persistence.storageClass: "openebs-hostpath"
master.service.nameOverride: "redis"
replica.replicaCount: "0" # Single instance for development
# Application profile - frequently updated
- name: advanced-backend
build:
local:
push: true
useDockerCLI: true
artifacts:
- image: advanced-backend
context: backends/advanced
docker:
dockerfile: Dockerfile.k8s
- image: webui
context: backends/advanced/webui
docker:
dockerfile: Dockerfile
deploy:
helm:
releases:
# Application components using custom charts
- name: advanced-backend
chartPath: backends/charts/advanced-backend
namespace: "{{.APPLICATION_NAMESPACE}}"
createNamespace: true
valuesFiles:
- backends/charts/advanced-backend/ingress-values.yaml
setValueTemplates:
image.repository: "{{.IMAGE_REPO_advanced_backend}}"
image.tag: "{{.IMAGE_TAG_advanced_backend}}"
# Override specific Kubernetes-specific values (not in env file)
env.MONGODB_URI: "mongodb://mongodb.{{.INFRASTRUCTURE_NAMESPACE}}.svc.cluster.local:27017/chronicle"
env.QDRANT_BASE_URL: "qdrant.{{.INFRASTRUCTURE_NAMESPACE}}.svc.cluster.local"
env.REDIS_URL: "redis://redis-master.{{.INFRASTRUCTURE_NAMESPACE}}.svc.cluster.local:6379/0"
persistence.storageClass: "openebs-hostpath"
persistence.size: "10Gi"
service.nodePort: "{{.BACKEND_NODEPORT}}"
# Ingress configuration
ingress.hosts[0].host: "{{.BACKEND_HOST}}"
ingress.hosts[1].host: "{{.EXTERNAL_DOMAIN}}"
# Node selector
nodeSelector.kubernetes\.io/hostname: anubis
- name: webui
chartPath: backends/charts/webui
namespace: "{{.APPLICATION_NAMESPACE}}"
setValueTemplates:
image.repository: "{{.IMAGE_REPO_webui}}"
image.tag: "{{.IMAGE_TAG_webui}}"
service.nodePort: "{{.WEBUI_NODEPORT}}"
# Ingress configuration
ingress.hosts[0].host: "{{.WEBUI_HOST}}"
ingress.hosts[1].host: "{{.EXTERNAL_DOMAIN}}"
# Node selector
nodeSelector.kubernetes\.io/hostname: anubis
- name: test-env
portForward:
- resourceType: container
resourceName: redis-test
namespace: advanced
localPort: 6379
port: 6380
build:
artifacts:
- image: chronicle-backend-test
context: backends/advanced
docker:
dockerfile: Dockerfile
- image: webui-test
context: backends/advanced/webui
docker:
dockerfile: Dockerfile
deploy:
docker:
images: [chronicle-backend-test, webui-test, mongo-test, qdrant-test, redis-test]
- name: speaker-recognition-gtx1070
build:
local:
push: true
useDockerCLI: true
artifacts:
- image: speaker-recognition
context: extras/speaker-recognition
docker:
dockerfile: Dockerfile-gtx1070
- image: speaker-recognition-ui
context: extras/speaker-recognition/webui
docker:
dockerfile: Dockerfile
deploy:
helm:
releases:
- name: speaker-recognition
chartPath: extras/speaker-recognition/charts
namespace: speech
setValueTemplates:
speaker.image.repository: "{{.IMAGE_REPO_speaker_recognition}}"
speaker.image.tag: "{{.IMAGE_TAG_speaker_recognition}}"
webui.image.repository: "{{.IMAGE_REPO_speaker_recognition_ui}}"
webui.image.tag: "{{.IMAGE_TAG_speaker_recognition_ui}}"
# Shared models configuration
global.sharedModels.enabled: "true"
global.sharedModels.useHostPath: "true"
global.sharedModels.size: "20Gi"
global.sharedModels.hostPath: "/shared/models"