-
Notifications
You must be signed in to change notification settings - Fork 82
/
test6.yaml
51 lines (51 loc) · 1.01 KB
/
test6.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
apiVersion: v1
kind: Namespace
metadata:
name: "%[1]s"
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: "%[1]s"
namespace: "%[1]s"
spec:
behavior:
scaleDown:
policies:
- periodSeconds: 15
type: Percent
value: 100
selectPolicy: Max
stabilizationWindowSeconds: 60
scaleUp:
policies:
- periodSeconds: 15
type: Pods
value: 4
- periodSeconds: 15
type: Percent
value: 100
selectPolicy: Max
stabilizationWindowSeconds: 0
maxReplicas: 30
metrics:
- type: Pods
pods:
metric:
name: nginx_http_requests_total
target:
averageValue: "4"
type: AverageValue
- type: Pods
pods:
metric:
name: nginx_http_requests_total2
target:
averageValue: "4"
type: AverageValue
minReplicas: 2
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: frontend