Skip to content

Instantly share code, notes, and snippets.

@JaniKibichi
Created June 30, 2021 09:10
Show Gist options
  • Save JaniKibichi/968806edc6f25ea2d53221090bba9e76 to your computer and use it in GitHub Desktop.
Save JaniKibichi/968806edc6f25ea2d53221090bba9e76 to your computer and use it in GitHub Desktop.
Horizontal pod autoscaler for ussd
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: ussd-horizontal-pod-autoscaler
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: ussd-deployment
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