Skip to content

Instantly share code, notes, and snippets.

@philipz
Created April 27, 2019 10:14
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 philipz/71885b9dedaf31497f8c8ba1d12e51b6 to your computer and use it in GitHub Desktop.
Save philipz/71885b9dedaf31497f8c8ba1d12e51b6 to your computer and use it in GitHub Desktop.
Knative Auto Scaling
apiVersion: serving.knative.dev/v1alpha1
kind: Service
metadata:
name: azurefunc
namespace: default
spec:
runLatest:
configuration:
revisionTemplate:
metadata:
annotations:
# Target 10 in-flight-requests per pod.
autoscaling.knative.dev/target: "10"
spec:
container:
image: docker.io/philipz/azurefunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment