mirror of
https://github.com/informaticker/uek-109-LBb.git
synced 2024-11-25 02:51:58 +01:00
39 lines
713 B
YAML
39 lines
713 B
YAML
|
---
|
||
|
apiVersion: autoscaling/v2
|
||
|
kind: HorizontalPodAutoscaler
|
||
|
metadata:
|
||
|
name: counter-backend
|
||
|
spec:
|
||
|
scaleTargetRef:
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
name: counter-backend
|
||
|
minReplicas: 2
|
||
|
maxReplicas: 8
|
||
|
metrics:
|
||
|
- type: Resource
|
||
|
resource:
|
||
|
name: cpu
|
||
|
target:
|
||
|
type: Utilization
|
||
|
averageUtilization: 50
|
||
|
|
||
|
---
|
||
|
apiVersion: autoscaling/v2
|
||
|
kind: HorizontalPodAutoscaler
|
||
|
metadata:
|
||
|
name: counter-frontend
|
||
|
spec:
|
||
|
scaleTargetRef:
|
||
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
name: counter-frontend
|
||
|
minReplicas: 2
|
||
|
maxReplicas: 12
|
||
|
metrics:
|
||
|
- type: Resource
|
||
|
resource:
|
||
|
name: cpu
|
||
|
target:
|
||
|
type: Utilization
|
||
|
averageUtilization: 50
|