Created
October 5, 2019 16:25
-
-
Save WoodProgrammer/3766f80afa39f3278ced5dbdbd9e74a1 to your computer and use it in GitHub Desktop.
This file contains 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/v2beta1 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: podinfo | |
spec: | |
scaleTargetRef: | |
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
name: deployment-first | |
minReplicas: 2 | |
maxReplicas: 10 | |
metrics: | |
- type: Resource | |
resource: | |
name: cpu | |
targetAverageUtilization: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment