fix deployment

This commit is contained in:
sirius0xdev 2026-05-11 01:29:31 +00:00
parent fb32fdad1c
commit 649e69b585

View file

@ -29,9 +29,9 @@ spec:
emptyDir: {} emptyDir: {}
- name: hermes-webui-app - name: hermes-webui-app
emptyDir: {} emptyDir: {}
- name: hermes-configmap - name: rays-hermes-configmap
configMap: configMap:
name: hermes-config name: rays-hermes-config
initContainers: initContainers:
# 3. K8s workaround: Copy the agent source code into the shared emptyDir # 3. K8s workaround: Copy the agent source code into the shared emptyDir
@ -56,11 +56,11 @@ spec:
runAsUser: 0 # Run as root briefly to copy and fix permissions runAsUser: 0 # Run as root briefly to copy and fix permissions
runAsNonRoot: false runAsNonRoot: false
volumeMounts: volumeMounts:
- name: hermes-agent-src - name: hermes-agent-src
mountPath: /shared-src mountPath: /shared-src
- name: hermes-home - name: hermes-home
mountPath: /shared-home mountPath: /shared-home
- name: hermes-configmap - name: rays-hermes-configmap
mountPath: /tmp/hermes/config.yaml mountPath: /tmp/hermes/config.yaml
subPath: config.yaml subPath: config.yaml
containers: containers:
@ -88,7 +88,7 @@ spec:
- name: TELEGRAM_BOT_TOKEN - name: TELEGRAM_BOT_TOKEN
valueFrom: valueFrom:
secretKeyRef: secretKeyRef:
name: hermes-secrets name: rays-hermes-secrets
key: TELEGRAM_BOT_TOKEN key: TELEGRAM_BOT_TOKEN
- name: XAI_API_KEY - name: XAI_API_KEY
@ -116,7 +116,7 @@ spec:
volumeMounts: volumeMounts:
- name: hermes-home - name: hermes-home
mountPath: /home/hermes/.hermes mountPath: /home/hermes/.hermes
- name: hermes-agent-src - name: hermes-agent-src
mountPath: /opt/hermes mountPath: /opt/hermes
@ -154,10 +154,10 @@ spec:
value: "1" value: "1"
volumeMounts: volumeMounts:
- name: hermes-home - name: hermes-home
mountPath: /home/hermeswebui/.hermes mountPath: /home/hermeswebui/.hermes
# This is where the WebUI looks for the agent source code to run `uv pip install` # This is where the WebUI looks for the agent source code to run `uv pip install`
- name: hermes-agent-src - name: hermes-agent-src
mountPath: /home/hermeswebui/.hermes/hermes-agent mountPath: /home/hermeswebui/.hermes/hermes-agent
- name: hermes-workspace - name: hermes-workspace
mountPath: /workspace mountPath: /workspace