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