fix(jarvis): add init container to fix PVC ownership for UID 10000

This commit is contained in:
2026-05-25 20:37:01 -05:00
parent 64951e1e5e
commit ef7e3c61ed

View File

@@ -52,6 +52,20 @@ spec:
runAsUser: 10000 runAsUser: 10000
seccompProfile: seccompProfile:
type: RuntimeDefault 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: containers:
- name: hermes - name: hermes
image: nousresearch/hermes-agent:latest image: nousresearch/hermes-agent:latest