Skip to content

Commit 2eb9f48

Browse files
authored
Adjust autoscale test (#1582)
1 parent eabe95a commit 2eb9f48

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

tests/e2e/autoscale/00-install.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,13 @@ spec:
5454
minReplicas: 1
5555
maxReplicas: 2
5656
autoscaler:
57-
targetCPUUtilization: 50
57+
targetCPUUtilization: 99
58+
behavior:
59+
scaleUp:
60+
stabilizationWindowSeconds: 300
5861
resources:
5962
limits:
60-
cpu: 500m
63+
cpu: 250m
6164
memory: 128Mi
6265
requests:
6366
cpu: 5m

tests/e2e/autoscale/02-install.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ spec:
99
minReplicas: 1
1010
maxReplicas: 2
1111
autoscaler:
12-
targetCPUUtilization: 50
13-
targetMemoryUtilization: 70
12+
targetCPUUtilization: 60
1413
# Without this behavior the HPA will default to a scaledown stabilization
1514
# window of 300 seconds. Tests should fail if this update is not successful.
1615
behavior:
1716
scaleDown:
1817
stabilizationWindowSeconds: 15
1918
scaleUp:
20-
stabilizationWindowSeconds: 25
19+
stabilizationWindowSeconds: 1
2120
resources:
2221
limits:
23-
cpu: 500m
22+
cpu: 250m
2423
memory: 128Mi
2524
requests:
2625
cpu: 5m
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
apiVersion: kuttl.dev/v1beta1
22
kind: TestStep
33
commands:
4-
- script: go run ./cmd/verify/wait-and-validate-metrics.go --cpu-value 50 --memory-value 70 --scale-down 15 --scale-up 25 --hpa simplest-set-utilization-collector
4+
- script: go run ./cmd/verify/wait-and-validate-metrics.go --cpu-value 60 --scale-down 15 --scale-up 1 --hpa simplest-set-utilization-collector

0 commit comments

Comments
 (0)