Skip to content

Commit 92f8f69

Browse files
committed
add vX.X.X example
1 parent 47913cc commit 92f8f69

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
kind: HTTPScaledObject
2+
apiVersion: http.keda.sh/v1alpha1
3+
metadata:
4+
name: xkcd
5+
spec:
6+
hosts:
7+
- myhost.com
8+
pathPrefixes:
9+
- /test
10+
scaleTargetRef:
11+
name: xkcd
12+
kind: Deployment
13+
apiVersion: apps/v1
14+
service: xkcd
15+
port: 8080
16+
replicas:
17+
min: 1
18+
max: 10
19+
scaledownPeriod: 300
20+
scalingMetric:
21+
requestRate:
22+
granularity: 1s
23+
targetValue: 100
24+
window: 1m
25+
placeholderConfig:
26+
enabled: true
27+
refreshInterval: 5
28+
statusCode: 503
29+
headers:
30+
X-Service-Status: "warming-up"
31+
content: |
32+
<!DOCTYPE html>
33+
<html>
34+
<head>
35+
<title>Service Starting</title>
36+
<meta http-equiv="refresh" content="{{.RefreshInterval}}">
37+
</head>
38+
<body>
39+
<h1>{{.ServiceName}} is starting...</h1>
40+
</body>
41+
</html>

0 commit comments

Comments
 (0)