Converting a Kubernetes Deployment to a Knative Service

    • Reduces the footprint of the service instance because the instance scales to 0 when it becomes idle.
    • All work done is triggered by HTTP.
    • The container is stateless. All state is stored elsewhere or can be re-created.
    • Your workload uses only Secret and ConfigMap volumes.

    Knative Service

    1. kind: Service
    2. metadata:
    3. spec:
    4. template:
    5. containers:
    6. - image: nginx