Skip to content

Commit

Permalink
ci: deployment config change
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Jul 5, 2024
1 parent 7e33150 commit 96be2d5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spec:
resources:
limits:
memory: "1Gi"
cpu: "1000m"
cpu: "500m"
ports:
- containerPort: __PORT__
env:
Expand Down
25 changes: 25 additions & 0 deletions .deploy/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: entity-api
namespace: hypermine-development
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: entity-api
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 70
- type: Resource
resource:
name: memory
target:
type: Utilization
averageUtilization: 70

0 comments on commit 96be2d5

Please sign in to comment.