fix(jarvis): add init container to fix PVC ownership for UID 10000
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user