update keda
This commit is contained in:
parent
0646a9c226
commit
a4b85e0e52
1 changed files with 23 additions and 11 deletions
|
|
@ -4,16 +4,28 @@ 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
|
||||||
|
hosts:
|
||||||
|
- openclaw-brain-service.customer1.svc.cluster.local # or your external domain if using Ingress
|
||||||
|
# - "*.customer1.svc.cluster.local" # optional wildcard
|
||||||
|
|
||||||
|
# What to scale
|
||||||
scaleTargetRef:
|
scaleTargetRef:
|
||||||
name: openclaw-brain-vllm
|
name: openclaw-brain-vllm # your Deployment name
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
minReplicaCount: 0
|
apiVersion: apps/v1
|
||||||
maxReplicaCount: 1
|
|
||||||
cooldownPeriod: 900 # 15 minutes idle before scale-down
|
# The Service the interceptor will forward traffic to
|
||||||
pollingInterval: 30
|
service:
|
||||||
triggers:
|
name: openclaw-brain-service # adjust if your Service name is different
|
||||||
- type: http
|
port: 80 # or 8080 / whatever port your container listens on
|
||||||
metadata:
|
|
||||||
path: "/v1/"
|
# Replica settings (enables scale-to-zero)
|
||||||
host: "openclaw-brain-service.customer1.svc.cluster.local"
|
replicas:
|
||||||
requestCount: "1" # Scale up on 1+ request (wake script handles cold start)
|
min: 0
|
||||||
|
max: 1
|
||||||
|
|
||||||
|
# Scaling behavior – choose ONE of the two options below:
|
||||||
|
|
||||||
|
# Option 1: Scale based on concurrent/pending requests (simplest, good for cold-start wake-up)
|
||||||
|
targetPendingRequests: 1 # wake up on any incoming request
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue