github.com/eth-easl/loader@v0.0.0-20230908084258-8a37e1d94279/workloads/container/wimpy.yaml (about)

     1  apiVersion: serving.knative.dev/v1
     2  kind: Service
     3  metadata:
     4    namespace: default
     5  spec:
     6    template:
     7      metadata:
     8        annotations:
     9          autoscaling.knative.dev/initial-scale: "0"  # Should start from 0, otherwise we can't deploy more functions than the node physically permits.
    10          autoscaling.knative.dev/min-scale: "0"  # This parameter only has a per-revision key, so it's necessary to have here in case of the warmup messes up.
    11          autoscaling.knative.dev/target-utilization-percentage: "100"  # Enforce container concurrency at any time.
    12          autoscaling.knative.dev/target-burst-capacity: "-1"  # Put activator always in the path explicitly.
    13          autoscaling.knative.dev/max-scale: "200"  # Maximum instances limit of Azure.
    14      spec:
    15        containerConcurrency: 1
    16        containers:
    17          - image: docker.io/hyhe/wimpy:latest
    18            # imagePullPolicy: Always  # No need if the tag is `latest`.
    19            ports:
    20              - name: h2c  # For gRPC support
    21                containerPort: 80