Created
February 21, 2022 20:36
-
-
Save skonto/c1ff0becf3f592b886f279c7fd265040 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: serving.knative.dev/v1 | |
kind: Service | |
metadata: | |
name: autoscale-go | |
spec: | |
template: | |
metadata: | |
annotations: | |
# Target 10 in-flight-requests per pod. | |
autoscaling.knative.dev/target: "10" | |
autoscaling.knative.dev/minScale: "2" | |
labels: | |
app: serverless | |
spec: | |
containers: | |
- image: gcr.io/knative-samples/autoscale-go:0.1 | |
resources: | |
requests: | |
memory: "500Mi" | |
cpu: "200m" | |
limits: | |
memory: "1000Mi" | |
cpu: "1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment