附录
以声明方式创建 Autoscaler
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: php-apache
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: php-apache
minReplicas: 1
maxReplicas: 10
targetCPUUtilizationPercentage: 50kubectl create -f https://k8s.io/examples/application/hpa/php-apache.yamlhorizontalpodautoscaler.autoscaling/php-apache created最后更新于