fix(jarvis): add init container to fix PVC ownership for UID 10000
This commit is contained in:
@@ -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
|
||||||
@@ -113,4 +127,4 @@ spec:
|
|||||||
ports:
|
ports:
|
||||||
- name: gateway
|
- name: gateway
|
||||||
port: 8642
|
port: 8642
|
||||||
targetPort: 8642
|
targetPort: 8642
|
||||||
Reference in New Issue
Block a user