标签:deploy yaml aml ali getc hpa oda 行操作 tag
kubectl autoscale deployment zeus-deployment --cpu-percent=20 --min=1 --max=3
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: zeus
namespace: default
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: zeus-deployment
minReplicas: 1
maxReplicas: 3
targetCPUUtilizationPercentage: 50
标签:deploy yaml aml ali getc hpa oda 行操作 tag
原文地址:https://www.cnblogs.com/hequan/p/12781454.html