Skip to content

Commit

Permalink
feat: add a autoscaler for webhooks-processor to rocks the moon
Browse files Browse the repository at this point in the history
  • Loading branch information
42atomys committed Jul 2, 2022
1 parent 7693dd5 commit e5de3ef
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions deploy/app/webhooks-processor/base/hpa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: autoscaling/v2beta2
kind: HorizontalPodAutoscaler
metadata:
name: webhooks-processor
spec:
scaleTargetRef:
apiVersion: apps/v1
kind: Deployment
name: webhooks-processor
minReplicas: 1
maxReplicas: 10
behavior:
scaleDown:
stabilizationWindowSeconds: 20
scaleUp:
stabilizationWindowSeconds: 0
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 75
1 change: 1 addition & 0 deletions deploy/app/webhooks-processor/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
resources:
- deployment.yaml
- hpa.yaml

commonLabels:
kubernetes.io/name: webhooks-processor
Expand Down

0 comments on commit e5de3ef

Please sign in to comment.