Skip to content

Commit

Permalink
Add CPU/memory and minimum scale requirements. (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinjhuang authored Sep 16, 2024
1 parent 0947a66 commit a5ec749
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run-service-prod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ spec:
autoscaling.knative.dev/min-scale: "1"
autoscaling.knative.dev/minScale: '1'
autoscaling.knative.dev/maxScale: '20'
run.googleapis.com/minScale: '1'
spec:
containers:
- image: registry-backend-image-substitute
Expand Down Expand Up @@ -57,3 +58,7 @@ spec:
secretKeyRef:
key: 2
name: PROD_ALGOLIA_API_KEY
resources:
limits:
cpu: 4000m
memory: 2Gi

0 comments on commit a5ec749

Please sign in to comment.