Skip to content

Instantly share code, notes, and snippets.

@SpackHack
Created February 29, 2020 18:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SpackHack/dd7326eb5985814cde95e6b85e672860 to your computer and use it in GitHub Desktop.
Save SpackHack/dd7326eb5985814cde95e6b85e672860 to your computer and use it in GitHub Desktop.
CPU Scaler
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: scaler
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: resourcetest
minReplicas: 1
maxReplicas: 10
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment