Scaling based on CPU usage.

master
Tom Alexander 3 years ago
parent fc7e54ea8a
commit c1d18e0fe5
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -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…
Cancel
Save