Skip to content

Commit

Permalink
cicd:update
Browse files Browse the repository at this point in the history
  • Loading branch information
Pratap2018 committed Nov 14, 2024
1 parent f0ae09a commit 381d32a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ spec:
resources:
requests:
memory: "1Gi"
cpu: "500m"
cpu: "1000m"
limits:
memory: "3Gi"
cpu: "1000m"
cpu: "1500m"
ports:
- containerPort: __PORT__
env:
Expand Down
25 changes: 25 additions & 0 deletions .deploy/hpa2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: entity-api-test
namespace: hypermine-development
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: entity-api-test
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 381d32a

Please sign in to comment.