add api and fix webui
This commit is contained in:
parent
9af70148c5
commit
3d721039a1
2 changed files with 40 additions and 12 deletions
|
|
@ -78,7 +78,7 @@ spec:
|
||||||
value: grok-4.20-0309-reasoning
|
value: grok-4.20-0309-reasoning
|
||||||
|
|
||||||
- name: OPENAI_API_KEY
|
- name: OPENAI_API_KEY
|
||||||
value: "dummy" # vLLM ignores this
|
value: "dummy"
|
||||||
|
|
||||||
# === API Server (for external OpenAI-compatible clients) ===
|
# === API Server (for external OpenAI-compatible clients) ===
|
||||||
- name: API_SERVER_ENABLED
|
- name: API_SERVER_ENABLED
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@ spec:
|
||||||
spec:
|
spec:
|
||||||
# 1. Pod-level security context to ensure volumes inherit the right group
|
# 1. Pod-level security context to ensure volumes inherit the right group
|
||||||
securityContext:
|
securityContext:
|
||||||
fsGroup: 10000
|
fsGroup: 1000
|
||||||
|
|
||||||
# 2. Define our shared bridge volumes
|
# 2. Define our shared bridge volumes
|
||||||
volumes:
|
volumes:
|
||||||
|
|
@ -34,7 +34,7 @@ spec:
|
||||||
command:
|
command:
|
||||||
- "sh"
|
- "sh"
|
||||||
- "-c"
|
- "-c"
|
||||||
- "cp -a /opt/hermes/. /shared-src/ && chown -R 10000:10000 /shared-src /shared-home"
|
- "cp -a /opt/hermes/. /shared-src/ && chown -R 1024:1000 /shared-src /shared-home"
|
||||||
securityContext:
|
securityContext:
|
||||||
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
|
||||||
|
|
@ -58,11 +58,39 @@ spec:
|
||||||
- name: HERMES_HOME
|
- name: HERMES_HOME
|
||||||
value: "/home/hermes/.hermes"
|
value: "/home/hermes/.hermes"
|
||||||
- name: HERMES_UID
|
- name: HERMES_UID
|
||||||
value: "10000"
|
value: "1024"
|
||||||
- name: HERMES_GID
|
- name: HERMES_GID
|
||||||
value: "10000"
|
value: "1000"
|
||||||
|
|
||||||
|
- name: TELEGRAM_BOT_TOKEN
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: hermes-secrets
|
||||||
|
key: TELEGRAM_BOT_TOKEN
|
||||||
|
|
||||||
|
- name: XAI_API_KEY
|
||||||
|
valueFrom:
|
||||||
|
secretKeyRef:
|
||||||
|
name: xai-apikey
|
||||||
|
key: XAI_API_KEY
|
||||||
|
|
||||||
|
- name: TELEGRAM_ALLOWED_USERS
|
||||||
|
value: "7528130947"
|
||||||
|
|
||||||
|
# === Local vLLM (OpenAI-compatible) ===
|
||||||
|
- name: OPENAI_BASE_URL
|
||||||
|
value: "http://openclaw-brain-service.customer1.svc.cluster.local:8000/v1" # ← adjust if your service name differs
|
||||||
|
|
||||||
|
- name: HERMES_MODEL_PROVIDER
|
||||||
|
value: xai
|
||||||
|
|
||||||
|
- name: HERMES_MODEL
|
||||||
|
value: grok-4.20-0309-reasoning
|
||||||
|
|
||||||
|
- name: OPENAI_API_KEY
|
||||||
|
value: "dummy"
|
||||||
|
|
||||||
|
|
||||||
# (Add your API Key secrets here just like your original deployment)
|
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: hermes-home
|
- name: hermes-home
|
||||||
|
|
@ -71,8 +99,8 @@ spec:
|
||||||
mountPath: /opt/hermes
|
mountPath: /opt/hermes
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 10000
|
runAsUser: 1024
|
||||||
runAsGroup: 10000
|
runAsGroup: 1000
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
|
|
||||||
|
|
@ -92,9 +120,9 @@ spec:
|
||||||
- name: HERMES_WEBUI_STATE_DIR
|
- name: HERMES_WEBUI_STATE_DIR
|
||||||
value: "/home/hermeswebui/.hermes/webui"
|
value: "/home/hermeswebui/.hermes/webui"
|
||||||
- name: WANTED_UID
|
- name: WANTED_UID
|
||||||
value: "10000"
|
value: "1024"
|
||||||
- name: WANTED_GID
|
- name: WANTED_GID
|
||||||
value: "10000"
|
value: "1000"
|
||||||
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: hermes-home
|
- name: hermes-home
|
||||||
|
|
@ -114,8 +142,8 @@ spec:
|
||||||
cpu: "500m"
|
cpu: "500m"
|
||||||
|
|
||||||
securityContext:
|
securityContext:
|
||||||
runAsUser: 10000
|
runAsUser: 1024
|
||||||
runAsGroup: 10000
|
runAsGroup: 1000
|
||||||
runAsNonRoot: true
|
runAsNonRoot: true
|
||||||
allowPrivilegeEscalation: false
|
allowPrivilegeEscalation: false
|
||||||
---
|
---
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue