Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Full Horizontal Pod Autoscaler
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: php-fpm
namespace: {{STACK_NAME}}
spec:
scaleTargetRef:
kind: Deployment
name: php-fpm-{{STACK_NAME}}
minReplicas: {{NUM_PHP}}
maxReplicas: {{MAX_NUM_PHP}}
targetCPUUtilizationPercentage: {{PHP_CPU_TARGET_PERCENTAGE}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment