fix keda
This commit is contained in:
parent
b2f58066a2
commit
2f4b171fed
1 changed files with 11 additions and 17 deletions
|
|
@ -4,28 +4,22 @@ metadata:
|
||||||
name: openclaw-brain-a100-scaling
|
name: openclaw-brain-a100-scaling
|
||||||
namespace: customer1
|
namespace: customer1
|
||||||
spec:
|
spec:
|
||||||
# The hostname(s) the interceptor should match and route
|
# The host header the interceptor should match
|
||||||
hosts:
|
host: openclaw-brain-service.customer1.svc.cluster.local # ← important
|
||||||
- openclaw-brain-service.customer1.svc.cluster.local # or your external domain if using Ingress
|
|
||||||
# - "*.customer1.svc.cluster.local" # optional wildcard
|
|
||||||
|
|
||||||
# What to scale
|
# Target to scale + routing info (old style)
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
name: openclaw-brain-vllm # your Deployment name
|
deployment: openclaw-brain-vllm # your Deployment name
|
||||||
kind: Deployment
|
service: openclaw-brain-service # your Service name
|
||||||
apiVersion: apps/v1
|
port: 8000 # ← change if your container port is different (e.g. 8080, 11434 for vLLM, etc.)
|
||||||
|
|
||||||
# The Service the interceptor will forward traffic to
|
# Replica settings
|
||||||
service:
|
|
||||||
name: openclaw-brain-service # adjust if your Service name is different
|
|
||||||
port: 8000 # or 8080 / whatever port your container listens on
|
|
||||||
|
|
||||||
# Replica settings (enables scale-to-zero)
|
|
||||||
replicas:
|
replicas:
|
||||||
min: 0
|
min: 0
|
||||||
max: 1
|
max: 1
|
||||||
|
|
||||||
# Scaling behavior – choose ONE of the two options below:
|
# Scaling metric - best for "wake on first request" use case
|
||||||
|
targetPendingRequests: 1
|
||||||
|
|
||||||
# Option 1: Scale based on concurrent/pending requests (simplest, good for cold-start wake-up)
|
# Cooldown before scaling down (15 minutes idle)
|
||||||
targetPendingRequests: 1 # wake up on any incoming request
|
scaledownPeriod: 900
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue