Skip to content

Commit 211e652

Browse files
author
lerndevops
authored
Update hpa.yml
1 parent 7893a7b commit 211e652

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

controllers/hpa/hpa.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
labels:
77
app: nginx
88
spec:
9-
replicas: 2
9+
replicas: 1
1010
selector:
1111
matchLabels:
1212
app: nginx
@@ -21,7 +21,7 @@ spec:
2121
image: nginx:latest
2222
resources:
2323
limits:
24-
cpu: 10m ## 10% of 1 core on your system
24+
cpu: 100m ## 10% of 1 core on your system
2525

2626
---
2727

@@ -49,7 +49,7 @@ spec:
4949
apiVersion: apps/v1
5050
kind: Deployment
5151
name: nginx
52-
minReplicas: 2
52+
minReplicas: 1
5353
maxReplicas: 10
54-
targetCPUUtilizationPercentage: 20
54+
targetCPUUtilizationPercentage: 10
5555

0 commit comments

Comments
 (0)