Skip to content

Commit

Permalink
Add resource requests and limits for webhook
Browse files Browse the repository at this point in the history
A resource request is required for autoscaler to take any action for a
metric.
  • Loading branch information
raballew authored and tekton-robot committed Nov 5, 2020
1 parent 5ecf8cd commit 1ba6898
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions config/webhook.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,14 @@ spec:
# This is the Go import path for the binary that is containerized
# and substituted here.
image: ko://github.com/tektoncd/pipeline/cmd/webhook
# Resource request required for autoscaler to take any action for a metric
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 500Mi
env:
- name: SYSTEM_NAMESPACE
valueFrom:
Expand Down

0 comments on commit 1ba6898

Please sign in to comment.