我的部署与此类似:
apiVersion: autoscaling/v2beta1
kind: HorizontalPodAutoscaler
metadata:
name: <my-deployment>
namespace: default
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: <my-deployment>
minReplicas: 1
maxReplicas: 20
metrics:
- type: Resource
resource:
name: cpu
targetAverageUtilization: 133
我想通过更快地进行降级来优化资源使用-现在,我看到尽管CPU利用率看起来像Current/Target value
-70%/133%
,但它仍能保持正常运行。
说明-我希望这仅影响此部署,而不影响整个集群。