- can scale to zero • Eventing ◦ Declaratively bind consumers and producers of events • Client (kn) ◦ Create resources interactively from the command line • Functions ◦ A programming model to simplify development
Container ⇒ URL • Autoscales your workloads based on traffic ◦ Scales to Zero • Automatic Certificate Provisioning for HTTPS • Revision Management & Traffic Splitting • Automatic Health Checks
apiVersion: serving.knative.dev/v1 kind: Service metadata: name: nginx spec: template: spec: containerConcurrency: 1 containers: - image: nginx:1.14.2 ports: - containerPort: 80 Concurrency Number of simultaneous requests that can be processed by each replica of an application at any given time.
▪ More instances spin up ▪ Can hit K8s limits faster (eg. max # pods on a node) ◦ Using >1 ▪ Requires more Memory & CPU ▪ Can’t use Global State ◦ Tune the value to your function
Ingress Serving + Functions Pod my-func Activator https://knative.dev/docs/serving/load-balancing/target-burst-capacity Pod my-func Pod my-func Pod my-func autoscaling.knative.dev/target-burst-capacity: "200"