From ef7e3c61eda46aebff1644c91dd4139112867b41 Mon Sep 17 00:00:00 2001 From: Ryan Blundon Date: Mon, 25 May 2026 20:37:01 -0500 Subject: [PATCH] fix(jarvis): add init container to fix PVC ownership for UID 10000 --- cluster/applications/jarvis/deployment.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/cluster/applications/jarvis/deployment.yaml b/cluster/applications/jarvis/deployment.yaml index e315850..a5fcd26 100644 --- a/cluster/applications/jarvis/deployment.yaml +++ b/cluster/applications/jarvis/deployment.yaml @@ -52,6 +52,20 @@ spec: runAsUser: 10000 seccompProfile: type: RuntimeDefault + initContainers: + - name: fix-ownership + image: busybox + command: ["sh", "-c", "chown -R 10000:10000 /opt/data"] + securityContext: + runAsNonRoot: false + runAsUser: 0 + allowPrivilegeEscalation: false + capabilities: + drop: ["ALL"] + add: ["CHOWN"] + volumeMounts: + - name: data + mountPath: /opt/data containers: - name: hermes image: nousresearch/hermes-agent:latest @@ -113,4 +127,4 @@ spec: ports: - name: gateway port: 8642 - targetPort: 8642 + targetPort: 8642 \ No newline at end of file