Skip to content

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:

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 Name Description Language(s)
Hello World A 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 Learning A quick introduction to using Knative Serving to serve machine learning models Python - BentoML

External code samples

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


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

We use analytics and cookies to understand site traffic. Information about your use of our site is shared with Google for that purpose. Learn more.

× OK