k3s/docs/user-guide/horizontal-pod-autoscaling/hpa-php-apache.yaml

15 lines
283 B
YAML

apiVersion: extensions/v1beta1
kind: HorizontalPodAutoscaler
metadata:
name: php-apache
namespace: default
spec:
scaleRef:
kind: ReplicationController
name: php-apache
subresource: scale
minReplicas: 1
maxReplicas: 10
cpuUtilization:
targetPercentage: 50