hpa 통합

This commit is contained in:
ByeonJungHun
2024-04-11 10:36:04 +09:00
parent 9f927634ef
commit 27627d7a16
4 changed files with 53 additions and 51 deletions

53
hpa.yml Normal file
View File

@@ -0,0 +1,53 @@
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: chl-hpa
namespace: bussiness1
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: bussiness1-chl
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: memory
targetAverageUtilization: 80
---
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: mci-hpa
namespace: bussiness1
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: bussiness1-mci
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: memory
targetAverageUtilization: 80
---
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: core-hpa
namespace: bussiness1
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: bussiness1-core
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: memory
targetAverageUtilization: 80