Merge pull request #109 from sirius0xdev/fix/hermes-webui-init-chown
Fix hermes-webui perms crash: root initContainer chown PVC to 1000:1000
This commit is contained in:
commit
8c8b2bc597
2 changed files with 40 additions and 9 deletions
|
|
@ -6,7 +6,7 @@ metadata:
|
||||||
data:
|
data:
|
||||||
config.yaml: |
|
config.yaml: |
|
||||||
model:
|
model:
|
||||||
default: grok-4-1-fast
|
default: grok-4.20-0309-reasoning
|
||||||
provider: xai
|
provider: xai
|
||||||
base_url: https://api.x.ai/v1
|
base_url: https://api.x.ai/v1
|
||||||
providers:
|
providers:
|
||||||
|
|
|
||||||
|
|
@ -13,20 +13,50 @@ spec:
|
||||||
labels:
|
labels:
|
||||||
app: hermes-agent
|
app: hermes-agent
|
||||||
spec:
|
spec:
|
||||||
|
automountServiceAccountToken: false
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
fsGroup: 1000
|
fsGroup: 1000
|
||||||
containers:
|
seccompProfile:
|
||||||
- name: hermes-agent
|
type: RuntimeDefault
|
||||||
|
initContainers:
|
||||||
|
- name: fix-webui-perms
|
||||||
|
image: busybox:1.37
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: true
|
runAsNonRoot: true
|
||||||
|
runAsUser: 1000
|
||||||
|
runAsGroup: 1000
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
capabilities:
|
capabilities:
|
||||||
drop:
|
drop:
|
||||||
- ALL
|
- ALL
|
||||||
|
seccompProfile:
|
||||||
|
type: RuntimeDefault
|
||||||
|
command:
|
||||||
|
- sh
|
||||||
|
- -c
|
||||||
|
args:
|
||||||
|
- |
|
||||||
|
mkdir -p /data/.hermes/webui /data/.cache /data/.config /data/bin
|
||||||
|
chmod -R g+rwX,o-rwx /data
|
||||||
|
echo "✅ Hermes data permissions fixed (non-root with fsGroup)"
|
||||||
|
volumeMounts:
|
||||||
|
- name: hermes-data
|
||||||
|
mountPath: /data
|
||||||
|
containers:
|
||||||
|
- name: hermes-agent
|
||||||
|
securityContext:
|
||||||
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
image: nousresearch/hermes-agent:latest
|
image: nousresearch/hermes-agent:latest
|
||||||
|
|
@ -91,7 +121,7 @@ spec:
|
||||||
value: xai
|
value: xai
|
||||||
|
|
||||||
- name: HERMES_MODEL
|
- name: HERMES_MODEL
|
||||||
value: grok-4.1-fast
|
value: grok-4.20-0309-reasoning
|
||||||
|
|
||||||
- name: OPENAI_API_KEY
|
- name: OPENAI_API_KEY
|
||||||
value: "dummy" # vLLM ignores this
|
value: "dummy" # vLLM ignores this
|
||||||
|
|
@ -155,13 +185,14 @@ spec:
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
securityContext:
|
securityContext:
|
||||||
allowPrivilegeEscalation: false
|
|
||||||
capabilities:
|
|
||||||
drop:
|
|
||||||
- ALL
|
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
runAsUser: 1000
|
runAsUser: 1000
|
||||||
runAsGroup: 1000
|
runAsGroup: 1000
|
||||||
|
allowPrivilegeEscalation: false
|
||||||
|
readOnlyRootFilesystem: false
|
||||||
|
capabilities:
|
||||||
|
drop:
|
||||||
|
- ALL
|
||||||
seccompProfile:
|
seccompProfile:
|
||||||
type: RuntimeDefault
|
type: RuntimeDefault
|
||||||
volumes:
|
volumes:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue