Created
May 2, 2020 07:51
-
-
Save vamsijakkula/7a9cedb6ac55679009030a1647c063f4 to your computer and use it in GitHub Desktop.
HPA Memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: autoscaling/v2beta2 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: php-memory-scale | |
spec: | |
scaleTargetRef: | |
apiVersion: apps/v1 | |
kind: Deployment | |
name: php-apache | |
minReplicas: 1 | |
maxReplicas: 10 | |
metrics: | |
- type: Resource | |
resource: | |
name: memory | |
target: | |
type: Utilization | |
averageValue: 10Mi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment