hpa 추가

This commit is contained in:
ByeonJungHun
2024-04-08 18:27:50 +09:00
parent d0e90e0bb2
commit 8bd65044a0
9 changed files with 98 additions and 2 deletions

17
core-hpa.yml Normal file
View File

@@ -0,0 +1,17 @@
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: core-hpa
namespace: bussiness1
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: bussiness1-core
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 30