Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 7, 2020 10:30
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save velotiotech/06bc056955cf524784e006b8cca0efff to your computer and use it in GitHub Desktop.
Save velotiotech/06bc056955cf524784e006b8cca0efff to your computer and use it in GitHub Desktop.
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