Knative Functions¶
Knative Functions provides a simple programming model for using functions on Knative, without requiring in-depth knowledge of Knative, Kubernetes, containers, or dockerfiles.
Knative Functions enables you to easily create, build, and deploy stateless, event-driven functions as Knative Services by using the func CLI.
Functions can be packaged as Open Container Initiative (OCI) images without writing a Dockerfile. A local container build does not publish an image to a registry. Deployment builds and pushes an image so the cluster can pull it. Supported host builders can also run functions locally without a container.
You can create functions and manage function workflows by using the func CLI, or by using the kn func plugin for the Knative CLI.
Start here¶
New to Knative Functions? Follow Try Functions to create, edit, and test a Go function locally — no Kubernetes cluster or registry account required.
Choose a task¶
- Develop locally: install
func, create a project, run it locally, and send HTTP or CloudEvents test requests. - Build an image: build a container image locally without running or deploying it.
- Deploy a function: deploy from your machine or build and deploy remotely on a cluster with Tekton.
- Connect events: subscribe a function to a Knative Broker with Triggers, or consume Apache Kafka topics via sidecar.
- Templates and runtimes: choose a language and HTTP/CloudEvents template, or use custom language-pack repositories.
For the full CLI reference, see the func documentation.