Last active
February 24, 2022 16:28
-
-
Save nimboya/9effeea58b38aa2baa37cb46e43dfb25 to your computer and use it in GitHub Desktop.
Simple HPA Setup
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/v2 | |
kind: HorizontalPodAutoscaler | |
metadata: | |
name: nginx-prod | |
spec: | |
scaleTargetRef: | |
apiVersion: apps/v1 | |
kind: Deployment | |
name: nginx-prod | |
minReplicas: 1 | |
maxReplicas: 10 | |
metrics: | |
- type: Resource | |
resource: | |
name: cpu | |
target: | |
type: Utilization | |
averageUtilization: 10 | |
name: memory | |
target: | |
type: Utilization | |
averageUtilization: 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment