Skip to content

Commit 2ab27e0

Browse files
serghei-devsergeyklay
authored andcommitted
fix(k8s): correct paths, DB env var, and service selector
- Replace --data-dir flag with SORTIE_DB_PATH env var and update configmap db_path to match /home/sortie/data/.sortie.db - Move workspace root under /home/sortie/data/workspaces so both SQLite and workspaces share the single PVC mount - Mount WORKFLOW.md ConfigMap as directory /home/sortie/config instead of a single-file subPath mount (avoids inode replacement issues) - Add app.kubernetes.io/component selector to Service to tighten pod matching - Mark sortie-secrets secretRef optional: false to fail fast on missing credentials
1 parent 54e405c commit 2ab27e0

3 files changed

Lines changed: 10 additions & 6 deletions

File tree

examples/k8s/configmap.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ data:
2929
polling:
3030
interval_ms: 45000
3131
32+
db_path: /home/sortie/data/.sortie.db
33+
3234
workspace:
33-
root: /home/sortie/workspaces
35+
root: /home/sortie/data/workspaces
3436
3537
agent:
3638
kind: claude-code

examples/k8s/deployment.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,18 @@ spec:
4343
- "0.0.0.0"
4444
- "--log-format"
4545
- "json"
46-
- "--data-dir"
47-
- "/home/sortie/data"
48-
- "/home/sortie/WORKFLOW.md"
46+
- "/home/sortie/config/WORKFLOW.md"
47+
env:
48+
- name: SORTIE_DB_PATH
49+
value: /home/sortie/data/.sortie.db
4950
ports:
5051
- name: http
5152
containerPort: 7678
5253
protocol: TCP
5354
envFrom:
5455
- secretRef:
5556
name: sortie-secrets
57+
optional: false
5658
securityContext:
5759
allowPrivilegeEscalation: false
5860
readOnlyRootFilesystem: true
@@ -86,8 +88,7 @@ spec:
8688
- name: data
8789
mountPath: /home/sortie/data
8890
- name: workflow
89-
mountPath: /home/sortie/WORKFLOW.md
90-
subPath: WORKFLOW.md
91+
mountPath: /home/sortie/config
9192
readOnly: true
9293
- name: tmp
9394
mountPath: /tmp

examples/k8s/service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ spec:
1111
type: ClusterIP
1212
selector:
1313
app.kubernetes.io/name: sortie
14+
app.kubernetes.io/component: orchestrator
1415
ports:
1516
- name: http
1617
port: 7678

0 commit comments

Comments
 (0)