Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: autoscale-tester
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: autoscale-tester
minReplicas: 1
maxReplicas: 10
metrics:
- type: Pods
pods:
metric:
name: packets_in
target:
type: AverageValue
averageValue: 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment