Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 7, 2020 10:27
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save velotiotech/b2987ff6717591d1925ffbfce925d3e8 to your computer and use it in GitHub Desktop.
Save velotiotech/b2987ff6717591d1925ffbfce925d3e8 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: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50
- type: Resource
resource:
name: memory
target:
type: AverageValue
averageValue: 500Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment