Skip to main content

Module k8s

Module k8s 

Source
Expand description

Kubernetes LambdaBackend implementation.

Spawns Lambda function runtimes as native Pods in a Kubernetes cluster instead of as Docker containers. Gated by FAKECLOUD_LAMBDA_BACKEND=k8s (or the global FAKECLOUD_CONTAINER_BACKEND=k8s) on the fakecloud server.

The shared client bootstrap, Pod lifecycle (create/wait/delete), reaping, and naming live in the fakecloud-k8s crate; this module only builds the Lambda-specific Pod spec and wires the lifecycle into the LambdaBackend trait.

See website/content/docs/guides/kubernetes-backend.md for the operator-facing setup (ServiceAccount, RBAC, Deployment yaml).

Modules§

spec
Pod spec construction for the Kubernetes super::K8sBackend.

Structs§

K8sBackend
Native Kubernetes Lambda execution backend.

Enums§

K8sBackendError
Errors that can prevent the K8s backend from initializing. Surfaced to the operator at fakecloud startup; never silently swallowed.