Skip to content

Instantly share code, notes, and snippets.

@skonto
Created February 21, 2022 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save skonto/c1ff0becf3f592b886f279c7fd265040 to your computer and use it in GitHub Desktop.
Save skonto/c1ff0becf3f592b886f279c7fd265040 to your computer and use it in GitHub Desktop.
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