Serverless computing runs workloads on demand while the platform manages infrastructure capacity. In Kubernetes, Knative Serving supplies higher-level abstractions for containers-as-a-service and functions-as-a-service workflows. section 8.2
Knative Services simplify deployment by generating and tracking Kubernetes resources and versions. Its autoscaler responds to demand, including scaling inactive workloads down to zero replicas. section 8.2 section 8.2.1
A serverless platform built with Knative can provide:
- A simplified container contract resembling Google Cloud Run, AWS App Runner, and Azure Container Apps. section 8.2.1
- Demand-based autoscaling managed by the platform rather than by each application team. section 8.2 section 8.2.1
- Traffic management and multiple simultaneously available service versions for release strategies. section 8.2
Deploying a notification service
Apply a Knative Service resource containing the notification container image, then inspect it with kubectl get ksvc. The resulting URL can be called with curl to reach the on-demand service and inspect its response. section 8.2.1
Listing 8.1 Knative Service definition
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: notifications-service #1
spec:
template:
spec:
containers:
- image: salaboy/notifications-service:v1.0.0 #2
Env: #3
- name: KAFKA_URL
value: <URL>
Use the Knative Service definition to see the container image and environment configuration that drive the generated workload. section 8.2.1








