Skip to content

Instantly share code, notes, and snippets.

@nimboya
Last active February 24, 2022 16:28
Show Gist options
  • Save nimboya/9effeea58b38aa2baa37cb46e43dfb25 to your computer and use it in GitHub Desktop.
Save nimboya/9effeea58b38aa2baa37cb46e43dfb25 to your computer and use it in GitHub Desktop.
Simple HPA Setup
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