add wellness probes to vllm and activate keda

This commit is contained in:
sirius0xdev 2026-04-25 23:23:48 +00:00
parent ed165b9cc4
commit b4ffa0c238
3 changed files with 42 additions and 6 deletions

View file

@ -50,8 +50,9 @@ spec:
- name: HERMES_MODEL_PROVIDER - name: HERMES_MODEL_PROVIDER
value: xai value: xai
- name: hermes-model - name: HERMES_MODEL
value: grok-4.1-fast value: grok-4.1-fast
- name: OPENAI_API_KEY - name: OPENAI_API_KEY
value: "dummy" # vLLM ignores this value: "dummy" # vLLM ignores this

View file

@ -39,14 +39,17 @@ spec:
- --tokenizer-mode=hf - --tokenizer-mode=hf
- --gpu-memory-utilization=0.95 - --gpu-memory-utilization=0.95
- --kv-cache-dtype=fp8 - --kv-cache-dtype=fp8
- --max-model-len=65536 - --max-model-len=131072
- --enable-auto-tool-choice - --enable-auto-tool-choice
- --enable-chunked-prefill
- --max-num-batched-tokens=8192
- --max-num-seqs=4
- --trust-remote-code - --trust-remote-code
- --dtype=auto - --dtype=auto
- --enable-prefix-caching - --enable-prefix-caching
- --tool-call-parser=qwen3_xml - --tool-call-parser=qwen3_xml
- --reasoning-parser=qwen3 - --reasoning-parser=qwen3
- --limit-mm-per-prompt='{"image":1, "video":0 }'
- --disable-custom-all-reduce - --disable-custom-all-reduce
ports: ports:
- containerPort: 8000 - containerPort: 8000
@ -59,6 +62,38 @@ spec:
nvidia.com/gpu: 1 nvidia.com/gpu: 1
memory: "80Gi" memory: "80Gi"
cpu: "8" cpu: "8"
startupProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 10
failureThreshold: 60
successThreshold: 1
livenessProbe:
httpGet:
path: /health
port: 8000
initialDelaySeconds: 180
periodSeconds: 15
failureThreshold: 5
successThreshold: 1
timeoutSeconds: 10
readinessProbe:
httpGet:
path: /v1/models
port: 8000
initialDelaySeconds: 120
periodSeconds: 10
timeoutSeconds: 15
failureThreshold: 8
successThreshold: 1
volumeMounts: volumeMounts:
- name: model-cache - name: model-cache
mountPath: /root/.cache/huggingface mountPath: /root/.cache/huggingface

View file

@ -2,12 +2,12 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
# - vllm-l4.yaml # - vllm-l4.yaml
# - keda-a100.yaml - keda-a100.yaml
- pvc.yaml - pvc.yaml
- new-configmap.yaml - new-configmap.yaml
- deployment.yaml - deployment.yaml
- service.yaml - service.yaml
- openclaw-secrets.yaml - openclaw-secrets.yaml
- pg-cluster-openclaw.yaml - pg-cluster-openclaw.yaml
# - a100-vllm.yaml - a100-vllm.yaml
- xai-apikey.yaml - xai-apikey.yaml