Knative code samples

You can use Knative code samples to help you get up and running with common use cases.

Knative owned samples

Knative code samples that are actively tested and maintained by Knative working groups:

Tip

E2E Sample Application - Knative Bookstore is a sample application that demonstrates how to use all part of Knative: Eventing, Serving, and Function, to build a simple bookstore application.

Community owned samples

Get up and running with one of the community code samples. These samples are contributed and maintained by members of the Knative community. View code samples that are contributed and maintained by the community.

Note: These samples might become outdated or the original author might be unable to maintain their contribution. If you find that something isn’t working, lend a helping hand and fix it in a PR.

Learn more about the lifespan of samples

Sample NameDescriptionLanguage(s)
Hello WorldA quick introduction to Knative Serving that highlights how to deploy an app.Clojure, Dart, Elixir, Haskell, Java - Micronaut, Java - Quarkus, R - Go Server, Rust, Swift, Vertx
Machine LearningA quick introduction to using Knative Serving to serve machine learning modelsPython - BentoML

External code samples

A list of links to Knative code samples located outside of Knative repos:

Tip

Add a link here to your externally hosted Knative code sample.