Skip to content

Commit d677e17

Browse files
acmoreclaude
andcommitted
feat(config): add embedded yaml template files
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d247aa4 commit d677e17

3 files changed

Lines changed: 173 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
apiVersion: okdev.io/v1alpha1
2+
kind: DevEnvironment
3+
metadata:
4+
name: {{ .Name }}
5+
spec:
6+
namespace: {{ .Namespace }}
7+
session:
8+
defaultNameTemplate: '{{`{{ .Repo }}-{{ .Branch }}-{{ .User }}`}}'
9+
ttlHours: {{ .TTLHours }}
10+
idleTimeoutMinutes: 120
11+
shareable: true
12+
sync:
13+
engine: syncthing
14+
syncthing:
15+
version: {{ .SyncthingVersion }}
16+
autoInstall: true
17+
paths:
18+
- "{{ .SyncLocal }}:{{ .SyncRemote }}"
19+
exclude:
20+
- .git/
21+
- .venv/
22+
- node_modules/
23+
remoteExclude: []
24+
ports:
25+
- name: app
26+
local: 8080
27+
remote: 8080
28+
ssh:
29+
user: {{ .SSHUser }}
30+
remotePort: 22
31+
keepAliveIntervalSeconds: 30
32+
keepAliveTimeoutSeconds: 90
33+
sidecar:
34+
image: {{ .SidecarImage }}
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
apiVersion: okdev.io/v1alpha1
2+
kind: DevEnvironment
3+
metadata:
4+
name: {{ .Name }}
5+
spec:
6+
namespace: {{ .Namespace }}
7+
session:
8+
defaultNameTemplate: '{{`{{ .Repo }}-{{ .Branch }}-{{ .User }}`}}'
9+
ttlHours: {{ .TTLHours }}
10+
idleTimeoutMinutes: 120
11+
shareable: true
12+
sync:
13+
engine: syncthing
14+
syncthing:
15+
version: {{ .SyncthingVersion }}
16+
autoInstall: true
17+
paths:
18+
- "{{ .SyncLocal }}:{{ .SyncRemote }}"
19+
exclude:
20+
- .git/
21+
- .venv/
22+
- node_modules/
23+
- checkpoints/
24+
- data/
25+
remoteExclude: []
26+
ports:
27+
- name: api
28+
local: 8080
29+
remote: 8080
30+
- name: tensorboard
31+
local: 6006
32+
remote: 6006
33+
ssh:
34+
user: {{ .SSHUser }}
35+
remotePort: 22
36+
keepAliveIntervalSeconds: 30
37+
keepAliveTimeoutSeconds: 90
38+
sidecar:
39+
image: {{ .SidecarImage }}
40+
podTemplate:
41+
spec:
42+
containers:
43+
- name: dev
44+
image: {{ .BaseImage }}
45+
command: ["sleep", "infinity"]
46+
resources:
47+
requests:
48+
cpu: "8"
49+
memory: 32Gi
50+
nvidia.com/gpu: "{{ .GPUCount }}"
51+
limits:
52+
cpu: "16"
53+
memory: 64Gi
54+
nvidia.com/gpu: "{{ .GPUCount }}"
55+
volumeMounts:
56+
- name: workspace
57+
mountPath: /workspace
58+
volumes:
59+
- name: workspace
60+
persistentVolumeClaim:
61+
claimName: okdev-workspace
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
apiVersion: okdev.io/v1alpha1
2+
kind: DevEnvironment
3+
metadata:
4+
name: {{ .Name }}
5+
spec:
6+
namespace: {{ .Namespace }}
7+
session:
8+
defaultNameTemplate: '{{`{{ .Repo }}-{{ .Branch }}-{{ .User }}`}}'
9+
ttlHours: {{ .TTLHours }}
10+
idleTimeoutMinutes: 120
11+
shareable: true
12+
sync:
13+
engine: syncthing
14+
syncthing:
15+
version: {{ .SyncthingVersion }}
16+
autoInstall: true
17+
paths:
18+
- "{{ .SyncLocal }}:{{ .SyncRemote }}"
19+
exclude:
20+
- .git/
21+
- .venv/
22+
- node_modules/
23+
- checkpoints/
24+
- data/
25+
remoteExclude: []
26+
ports:
27+
- name: app
28+
local: 8080
29+
remote: 8080
30+
- name: redis
31+
local: 6379
32+
remote: 6379
33+
- name: qdrant
34+
local: 6333
35+
remote: 6333
36+
ssh:
37+
user: {{ .SSHUser }}
38+
remotePort: 22
39+
keepAliveIntervalSeconds: 30
40+
keepAliveTimeoutSeconds: 90
41+
sidecar:
42+
image: {{ .SidecarImage }}
43+
podTemplate:
44+
spec:
45+
containers:
46+
- name: dev
47+
image: {{ .BaseImage }}
48+
command: ["sleep", "infinity"]
49+
env:
50+
- name: REDIS_URL
51+
value: redis://127.0.0.1:6379
52+
- name: QDRANT_URL
53+
value: http://127.0.0.1:6333
54+
resources:
55+
requests:
56+
cpu: "8"
57+
memory: 32Gi
58+
nvidia.com/gpu: "{{ .GPUCount }}"
59+
limits:
60+
cpu: "16"
61+
memory: 64Gi
62+
nvidia.com/gpu: "{{ .GPUCount }}"
63+
volumeMounts:
64+
- name: workspace
65+
mountPath: /workspace
66+
- name: redis
67+
image: redis:7-alpine
68+
args: ["--save", "", "--appendonly", "no"]
69+
ports:
70+
- containerPort: 6379
71+
- name: qdrant
72+
image: qdrant/qdrant:v1.13.2
73+
ports:
74+
- containerPort: 6333
75+
volumes:
76+
- name: workspace
77+
persistentVolumeClaim:
78+
claimName: okdev-workspace

0 commit comments

Comments
 (0)