首次提交:初始化项目
This commit is contained in:
16
009-基础设施/007-keda/http-scale-rule.yaml-这是gemini推荐的.md
Normal file
16
009-基础设施/007-keda/http-scale-rule.yaml-这是gemini推荐的.md
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: http.keda.sh/v1alpha1
|
||||
kind: HTTPScaledObject
|
||||
metadata:
|
||||
name: my-web-app-scaler
|
||||
spec:
|
||||
host: my-app.example.com # 你的域名
|
||||
targetPendingRequests: 100
|
||||
scaleTargetRef:
|
||||
name: your-deployment-name # 你想缩放到 0 的应用名
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1
|
||||
service: your-service-name
|
||||
port: 80
|
||||
replicas:
|
||||
min: 0 # 核心:无人访问时缩放为 0
|
||||
max: 10
|
||||
Reference in New Issue
Block a user