hpa 추가
This commit is contained in:
17
core-hpa.yml
Normal file
17
core-hpa.yml
Normal 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
|
||||
Reference in New Issue
Block a user