Scaling based on CPU usage.
This commit is contained in:
parent
fc7e54ea8a
commit
c1d18e0fe5
@ -48,3 +48,17 @@ spec:
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: "http"
|
||||
---
|
||||
apiVersion: autoscaling/v1
|
||||
kind: HorizontalPodAutoscaler
|
||||
metadata:
|
||||
name: autoscale-test
|
||||
namespace: default
|
||||
spec:
|
||||
scaleTargetRef:
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
name: autoscale-test
|
||||
minReplicas: 1
|
||||
maxReplicas: 10
|
||||
targetCPUUtilizationPercentage: 50
|
||||
|
Loading…
x
Reference in New Issue
Block a user