fix(hermes-webui): hermes-agent as root (runAsUser:0), webui as uid1000
Removed pod runAsUser/runAsNonRoot to allow hermes-agent root. Hermes-agent: runAsUser:0 runAsGroup:0 (root). Hermes-webui: runAsUser:1000 runAsGroup:1000 (non-root, matches WANTED_UID).
This commit is contained in:
parent
7a76e088e4
commit
3c8b617471
1 changed files with 6 additions and 9 deletions
|
|
@ -15,11 +15,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
|
||||||
securityContext:
|
|
||||||
runAsUser: 0
|
|
||||||
runAsGroup: 0
|
|
||||||
containers:
|
containers:
|
||||||
- name: hermes-agent
|
- name: hermes-agent
|
||||||
securityContext:
|
securityContext:
|
||||||
|
|
@ -31,7 +27,6 @@ spec:
|
||||||
runAsGroup: 0
|
runAsGroup: 0
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
runAsNonRoot: false
|
|
||||||
image: nousresearch/hermes-agent:latest
|
image: nousresearch/hermes-agent:latest
|
||||||
command: ["/bin/bash", "-c"]
|
command: ["/bin/bash", "-c"]
|
||||||
args:
|
args:
|
||||||
|
|
@ -157,11 +152,13 @@ spec:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: true
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
volumes:
|
volumes:
|
||||||
|
|
@ -182,4 +179,4 @@ spec:
|
||||||
- ReadWriteOnce
|
- ReadWriteOnce
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
storage: 25Gi
|
storage: 25Gi
|
||||||
Loading…
Add table
Reference in a new issue