Skip to content

Commit 30eb2d7

Browse files
committed
fix: update deployment replicas to 1 and add HorizontalPodAutoscaler configuration
1 parent ca8a298 commit 30eb2d7

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

argoCD/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ spec:
66
selector:
77
matchLabels:
88
app: unipro-site
9-
replicas: 3
9+
replicas: 1
1010
template:
1111
metadata:
1212
labels:

argoCD/hpa.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: autoscaling/v2beta2
2+
kind: HorizontalPodAutoscaler
3+
metadata:
4+
name: unipro-site-hpa
5+
spec:
6+
scaleTargetRef:
7+
apiVersion: apps/v1
8+
kind: Deployment
9+
name: unipro-site
10+
minReplicas: 1
11+
maxReplicas: 10
12+
metrics:
13+
- type: Resource
14+
resource:
15+
name: cpu
16+
target:
17+
type: Utilization
18+
averageUtilization: 50
19+
- type: Resource
20+
resource:
21+
name: memory
22+
target:
23+
type: Utilization
24+
averageUtilization: 50

argoCD/kustomization.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ resources:
77
- registry.yaml
88
- env.yaml
99
- imageUpdater.yaml
10+
- hpa.yaml
1011
labels:
1112
- includeSelectors: true
1213
pairs:

0 commit comments

Comments
 (0)