forked from mckinsey/agents-at-scale-ark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevspace.yaml
More file actions
191 lines (178 loc) · 5.1 KB
/
Copy pathdevspace.yaml
File metadata and controls
191 lines (178 loc) · 5.1 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
# DevSpace configuration for local ARK services development
version: v2beta1
# Dependencies - include other DevSpace configurations
# dependencies:
# postgres-memory:
# path: ./services/postgres-memory
# Hooks for pre-build setup
hooks:
- command: ./services/ark-api/ark-api/scripts/ensure-ark-sdk-wheel.sh
events: ["before:dev", "before:deploy"]
# Deployment pipelines define the workflow for different commands
pipelines:
# 'devspace deploy' - Build and deploy production images
deploy: |-
build_images --all
create_deployments --all
# 'devspace dev' - DevSpace recommended dev workflow: deploy production, override with dev images, file sync
dev: |-
create_deployments --all
start_dev --all
# Image build configuration
images:
ark-api:
image: ark-api
dockerfile: ./services/ark-api/Dockerfile
context: ./services/ark-api
ark-dashboard:
image: ark-dashboard
dockerfile: ./services/ark-dashboard/Dockerfile
context: ./services/ark-dashboard
ark-controller:
image: controller
dockerfile: ./ark/Dockerfile
context: ./ark
# Kubernetes deployments
deployments:
ark-api:
namespace: default
helm:
chart:
path: ./services/ark-api/chart
values:
app:
image:
repository: ${runtime.images.ark-api.image}
tag: ${runtime.images.ark-api.tag}
# Override resources for local development
resources:
limits:
memory: "1024Mi"
cpu: "1000m"
requests:
memory: "256Mi"
cpu: "200m"
ark-dashboard:
namespace: default
helm:
chart:
path: ./services/ark-dashboard/chart
values:
app:
image:
repository: ${runtime.images.ark-dashboard.image}
tag: ${runtime.images.ark-dashboard.tag}
# Override resources for local development
resources:
limits:
memory: "3072Mi"
cpu: "2000m"
requests:
memory: "256Mi"
cpu: "200m"
ark-controller:
namespace: ark-system
helm:
chart:
path: ./ark/dist/chart
values:
controllerManager:
container:
image:
repository: ${runtime.images.ark-controller.image}
tag: ${runtime.images.ark-controller.tag}
# Override resources for local development
resources:
limits:
memory: "2048Mi"
cpu: "2000m"
requests:
memory: "256Mi"
cpu: "200m"
# Override security context for development
securityContext:
runAsNonRoot: false
# Development configuration - active during 'devspace dev'
dev:
ark-api:
imageSelector: ark-api
devImage: python:3.12-slim
# Install dependencies and start API server with hot reload
command:
[
"sh",
"-c",
"cd /app && apt-get update && apt-get install -y curl && curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash && pip install uv && uv add file://$(ls out/ark_sdk-*.whl) && uv sync && uv run uvicorn ark_api.main:app --host 0.0.0.0 --port 8000 --reload",
]
namespace: default
# Stream logs instead of terminal
logs:
lastLines: 50
# File synchronization for hot reload - pyproject.toml excluded from back-sync after uv add modifies it
sync:
- path: ./services/ark-api/ark-api:/app
startContainer: true
disableDownload: true
excludePaths:
- .venv
- __pycache__/
- "*.pyc"
- path: ./ark:/workspace
excludePaths:
- bin/
- out/
- .git/
# Enable SSH for IDE integration
ssh:
enabled: true
ark-controller:
imageSelector: controller
devImage: golang:1.24-bookworm
command:
["sh", "-c", "cd /workspace && go run cmd/main.go --leader-elect=false"]
namespace: ark-system
# Stream logs instead of terminal
logs:
lastLines: 50
# File synchronization for hot reload
sync:
- path: ./ark:/workspace
startContainer: true
disableDownload: true
excludePaths:
- bin/
- out/
- .git/
- "*.log"
# Restart container when Go files change so that the code is recompiled
# restartHelper:
# inject: true
# Enable SSH for IDE integration
ssh:
enabled: true
ark-dashboard:
imageSelector: ark-dashboard
devImage: node:24-alpine
command:
[
"sh",
"-c",
"cd /app && npm install -g pnpm && pnpm install && pnpm run dev",
]
namespace: default
# Stream logs instead of terminal
logs:
lastLines: 50
# File synchronization for hot reload
sync:
- path: ./services/ark-dashboard/ark-dashboard:/app
startContainer: true
disableDownload: true
excludePaths:
- node_modules/
- .next/
- .git/
- "*.log"
# Enable SSH for IDE integration
ssh:
enabled: true