Skip to content

Commit

Permalink
Create horizontal-pod-autoscaler.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored Jul 29, 2024
1 parent c5dd604 commit fc64ab7
Showing 1 changed file with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: pi-network-hpa
spec:
selector:
matchLabels:
app: pi-network
minReplicas: 3
maxReplicas: 10
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: pi-network
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50

0 comments on commit fc64ab7

Please sign in to comment.