---
name: "knative-serving-autoscaling"
description: "Run serverless container applications on Kubernetes with sub-second scale-to-zero autoscaling."
metadata:
  author: "Knative"
  version: "1.0.0"
  runtime_compatibility:
    - "codex"
    - "claude-code"
    - "cursor"
    - "windsurf"
triggers:
  - "deploy knative service"
  - "configure knative scale to zero"
  - "knative traffic split revisions"
permissions:
  fs_read: true
  fs_write: "workspace"
  shell_exec: false
  net_access: false
---

# Knative Serving Scale-to-Zero & Request Routing

Deploys Knative Serving: authoring Service CRDs, configuring Knative Pod Autoscaler (KPA) concurrency targets, queue-proxy metrics, cold start mitigation, and traffic splitting across revision snapshots.

## When to Invoke
Invoke this skill whenever you need to:
- deploy knative service
- configure knative scale to zero
- knative traffic split revisions

## Execution SOP & Rules
1. Define apiVersion: serving.knative.dev/v1, kind: Service.
2. Configure autoscaling annotations: autoscaling.knative.dev/target: '50' and min-scale: '0'.
3. Use traffic block to route percentages between named revision configurations.
4. Inspect service status and active ingress endpoints with kn service list and kn revision list.

## Verification Checklist
- Run local linting, syntax validation, and type-checks before reporting completion.
- Ensure all created or modified files adhere to workspace boundaries and avoid uncommitted secrets.
- Verify tests or build commands exit cleanly with return code 0.
