From 7f06d094f9065fca067e51b80fd081a42ee7870b Mon Sep 17 00:00:00 2001
From: Dave Protasowski
Date: Thu, 26 Nov 2026 20:35:41 -0500
Subject: [PATCH 1/7] Simplify docs navigation and collapse Get Started
structure
---
config/redirects.yml | 17 +-
docs/versioned/.nav.yml | 118 ++++-------
.../disclaimer/{README.md => disclaimer.md} | 0
.../{README.md => extra-challenges.md} | 0
docs/versioned/getting-started/README.md | 23 ---
.../getting-started/build-run-deploy-func.md | 48 -----
docs/versioned/getting-started/clean-up.md | 43 ----
.../getting-started/create-a-function.md | 12 --
.../getting-started/first-autoscale.md | 100 ----------
.../versioned/getting-started/first-broker.md | 26 ---
.../versioned/getting-started/first-source.md | 161 ---------------
.../getting-started/first-traffic-split.md | 185 ------------------
.../getting-started/first-trigger.md | 87 --------
.../versioned/getting-started/install-func.md | 18 --
docs/versioned/getting-started/tutorial.md | 69 -------
docs/versioned/overview.md | 118 +++++++++++
mkdocs.local.yml | 8 +
mkdocs.yml | 2 +
overrides/partials/nav.html | 10 +-
19 files changed, 194 insertions(+), 851 deletions(-)
rename docs/versioned/bookstore/disclaimer/{README.md => disclaimer.md} (100%)
rename docs/versioned/bookstore/extra-challenge/{README.md => extra-challenges.md} (100%)
delete mode 100644 docs/versioned/getting-started/README.md
delete mode 100644 docs/versioned/getting-started/build-run-deploy-func.md
delete mode 100644 docs/versioned/getting-started/clean-up.md
delete mode 100644 docs/versioned/getting-started/create-a-function.md
delete mode 100644 docs/versioned/getting-started/first-autoscale.md
delete mode 100644 docs/versioned/getting-started/first-broker.md
delete mode 100644 docs/versioned/getting-started/first-source.md
delete mode 100644 docs/versioned/getting-started/first-traffic-split.md
delete mode 100644 docs/versioned/getting-started/first-trigger.md
delete mode 100644 docs/versioned/getting-started/install-func.md
delete mode 100644 docs/versioned/getting-started/tutorial.md
create mode 100644 docs/versioned/overview.md
diff --git a/config/redirects.yml b/config/redirects.yml
index a9c66224e45..1a15338fbf6 100644
--- a/config/redirects.yml
+++ b/config/redirects.yml
@@ -169,7 +169,7 @@ plugins:
versioned/install/collecting-metrics/index.md: versioned/serving/observability/metrics/collecting-metrics.md
versioned/install/eventing/eventing-installation-files.md: versioned/install/yaml-install/eventing/eventing-installation-files.md
versioned/install/eventing/install-eventing-with-yaml.md: versioned/install/yaml-install/eventing/install-eventing-with-yaml.md
- versioned/install/getting-started-knative-app/index.md: versioned/getting-started/README.md
+ versioned/install/getting-started-knative-app/index.md: versioned/README.md
versioned/install/install-extensions.md: versioned/install/README.md
versioned/install/installation-files.md: versioned/install/README.md
versioned/install/prerequisites.md: versioned/install/README.md
@@ -186,7 +186,7 @@ plugins:
versioned/serving/creating-domain-mappings.md: versioned/serving/services/custom-domains.md
versioned/serving/debugging-application-issues.md: versioned/serving/troubleshooting/debugging-application-issues.md
versioned/serving/feature-flags.md: versioned/serving/configuration/feature-flags.md
- versioned/serving/getting-started-knative-app.md: versioned/getting-started/README.md
+ versioned/serving/getting-started-knative-app.md: versioned/README.md
versioned/serving/installing-cert-manager.md: versioned/install/installing-cert-manager.md
versioned/serving/metrics.md: versioned/serving/observability/metrics/serving-metrics.md
versioned/serving/samples/README.md: versioned/samples/serving.md
@@ -227,3 +227,16 @@ plugins:
versioned/eventing/brokers/create-mtbroker.md: versioned/eventing/brokers/create-broker.md
versioned/eventing/brokers/broker-admin-config-options.md: versioned/eventing/configuration/broker-configuration.md
versioned/eventing/event-mesh.md: versioned/eventing/concepts/event-mesh.md
+ versioned/getting-started/README.md: versioned/README.md
+ versioned/getting-started/tutorial.md: versioned/README.md
+ versioned/getting-started/first-autoscale.md: versioned/getting-started/first-service.md#watch-autoscaling
+ versioned/getting-started/first-traffic-split.md: versioned/getting-started/first-service.md#split-traffic
+ versioned/getting-started/install-func.md: versioned/getting-started/about-knative-functions.md#prepare
+ versioned/getting-started/create-a-function.md: versioned/getting-started/about-knative-functions.md#create-and-change
+ versioned/getting-started/build-run-deploy-func.md: versioned/getting-started/about-knative-functions.md#run-and-test
+ versioned/getting-started/first-broker.md: versioned/getting-started/getting-started-eventing.md#prepare
+ versioned/getting-started/first-source.md: versioned/getting-started/getting-started-eventing.md#connect-the-player
+ versioned/getting-started/first-trigger.md: versioned/getting-started/getting-started-eventing.md#filter-events-optional
+ versioned/getting-started/clean-up.md: versioned/getting-started/next-steps.md#clean-up
+ versioned/bookstore/disclaimer/README.md: versioned/bookstore/disclaimer/disclaimer.md
+ versioned/bookstore/extra-challenge/README.md: versioned/bookstore/extra-challenge/extra-challenges.md
diff --git a/docs/versioned/.nav.yml b/docs/versioned/.nav.yml
index b1a9efc1e61..c04631218ba 100644
--- a/docs/versioned/.nav.yml
+++ b/docs/versioned/.nav.yml
@@ -1,57 +1,41 @@
nav:
-###############################################################################
- # Concepts
-###############################################################################
- - Overview: README.md
###############################################################################
# Getting started
###############################################################################
- - Tutorials:
- - Explore Knative: getting-started/tutorial.md
- - Quickstart:
- - Tutorial introduction: getting-started/README.md
- - Install Knative using quickstart: getting-started/quickstart-install.md
- - Knative Functions:
- - Getting Started: getting-started/about-knative-functions.md
- - Installing Knative Functions: getting-started/install-func.md
- - Creating a function: getting-started/create-a-function.md
- - Building, running, or deploying a function: getting-started/build-run-deploy-func.md
- - Knative Serving:
- - Deploying a Knative Service: getting-started/first-service.md
- - Autoscaling: getting-started/first-autoscale.md
- - Traffic splitting: getting-started/first-traffic-split.md
- - Knative Eventing:
- - Getting Started: getting-started/getting-started-eventing.md
- - Sources, Brokers, and Triggers: getting-started/first-broker.md
- - Using a Knative Service as a source: getting-started/first-source.md
- - Using Triggers and sinks: getting-started/first-trigger.md
- - What's Next?: getting-started/next-steps.md
- - Clean Up: getting-started/clean-up.md
- - "E2E tutorial: Knative Bookstore":
- - Overview: bookstore/page-0/welcome-knative-bookstore-tutorial.md
- - Disclaimer: bookstore/disclaimer/README.md
- - Environment Setup: bookstore/page-0.5/environment-setup.md
- - 1 - Send Comments to Broker: bookstore/page-1/send-review-comment-to-broker.md
- - 2 - Create Sentiment Service: bookstore/page-2/sentiment-analysis-service-for-bookstore-reviews.md
- - 3 - Create Bad Word Service: bookstore/page-3/create-bad-word-filter-service.md
- - 4 - Create Sequence: bookstore/page-4/create-sequence-to-streamline-ML-workflows.md
- - 5 - Create DB service: bookstore/page-5/deploy-database-service.md
- - 6 - Advanced event filtering: bookstore/page-6/advanced-event-filtering.md
- - 7 - Connect Slack via Camel-K: bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md
- - 8 - Extra Challenges: bookstore/extra-challenge/README.md
+ - Get Started:
+ - README.md
+ - Component tutorials:
+ - Set up a cluster: getting-started/quickstart-install.md
+ - Try Serving: getting-started/first-service.md
+ - Try Functions: getting-started/about-knative-functions.md
+ - Try Eventing: getting-started/getting-started-eventing.md
+ - Next steps and cleanup: getting-started/next-steps.md
+ - Bookstore tutorial:
+ - Overview: bookstore/page-0/welcome-knative-bookstore-tutorial.md
+ - Disclaimer: bookstore/disclaimer/disclaimer.md
+ - Set up your environment: bookstore/page-0.5/environment-setup.md
+ - 1 - Send review comments: bookstore/page-1/send-review-comment-to-broker.md
+ - 2 - Analyze sentiment: bookstore/page-2/sentiment-analysis-service-for-bookstore-reviews.md
+ - 3 - Filter bad words: bookstore/page-3/create-bad-word-filter-service.md
+ - 4 - Connect a Sequence: bookstore/page-4/create-sequence-to-streamline-ML-workflows.md
+ - 5 - Deploy the database: bookstore/page-5/deploy-database-service.md
+ - 6 - Filter events: bookstore/page-6/advanced-event-filtering.md
+ - 7 - Connect Slack: bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md
+ - 8 - Extra challenges: bookstore/extra-challenge/extra-challenges.md
+ - Technical overview: overview.md
###############################################################################
# Functions
###############################################################################
- Functions:
- - Knative Functions overview: functions/README.md
- - Installing Knative Functions: functions/install-func.md
- - Creating functions: functions/creating-functions.md
- - Building functions: functions/building-functions.md
- - Running functions: functions/running-functions.md
- - Subscribing functions: functions/subscribing-functions.md
- - Deploying functions: functions/deploying-functions.md
- - Invoking functions: functions/invoking-functions.md
- - Kafka functions: functions/kafka-functions.md
+ - Overview: functions/README.md
+ - Install: functions/install-func.md
+ - Create: functions/creating-functions.md
+ - Build: functions/building-functions.md
+ - Run locally: functions/running-functions.md
+ - Deploy: functions/deploying-functions.md
+ - Invoke: functions/invoking-functions.md
+ - Subscribe to events: functions/subscribing-functions.md
+ - Kafka: functions/kafka-functions.md
- Language packs: functions/language-packs.md
###############################################################################
# Serving
@@ -100,19 +84,14 @@ nav:
- About load balancing: serving/load-balancing/README.md
- Configuring target burst capacity: serving/load-balancing/target-burst-capacity.md
- Configuring Activator capacity: serving/load-balancing/activator-capacity.md
- # Serving - Application Security
- - Application security:
- - Secure Pod Defaults: serving/app-security/secure-pod-defaults.md
+ - Secure Pod Defaults: serving/app-security/secure-pod-defaults.md
# Serving - observability
- Observability:
- Collecting metrics: serving/observability/metrics/collecting-metrics.md
- Metrics Reference: serving/observability/metrics/serving-metrics.md
- # Serving - troubleshooting
- - Troubleshooting:
- - Debugging application issues: serving/troubleshooting/debugging-application-issues.md
- # Serving reference docs
- - Reference:
- - Serving API: serving/reference/serving-api.md
+ - Troubleshooting: serving/troubleshooting/debugging-application-issues.md
+ - Serving API: serving/reference/serving-api.md
+ - Code samples: samples/serving.md
###############################################################################
# Eventing
###############################################################################
@@ -214,22 +193,18 @@ nav:
- Collecting metrics: eventing/observability/metrics/collecting-metrics.md
- Metrics Reference: eventing/observability/metrics/eventing-metrics.md
- FAQ: eventing/faq/README.md
- # Eventing reference docs
- - Reference:
- - Eventing API: eventing/reference/eventing-api.md
-###############################################################################
- # CLI
+ - Eventing API: eventing/reference/eventing-api.md
+ - Code samples: samples/eventing.md
###############################################################################
- - CLI tools:
- - CLI tools: client/README.md
- - Installing the Knative CLI: client/install-kn.md
- - Customizing kn: client/configure-kn.md
- - kn plugins: client/kn-plugins.md
+ # Install and Manage
###############################################################################
- # Administration
-###############################################################################
- - Administration:
+ - Install and Manage:
- Overview: admin/admin-overview.md
+ - CLI tools:
+ - CLI tools: client/README.md
+ - Installing the Knative CLI: client/install-kn.md
+ - Customizing kn: client/configure-kn.md
+ - kn plugins: client/kn-plugins.md
- Installing Knative:
- Overview: install/README.md
# YAML Installation
@@ -327,11 +302,4 @@ nav:
- Uninstalling Knative: install/uninstall.md
# Troubleshooting
- Troubleshooting Knative: install/troubleshooting.md
-###############################################################################
- # Code samples
-###############################################################################
- - Code samples:
- - Code sample overview: samples/README.md
- - Serving code samples: samples/serving.md
- - Eventing code samples: samples/eventing.md
diff --git a/docs/versioned/bookstore/disclaimer/README.md b/docs/versioned/bookstore/disclaimer/disclaimer.md
similarity index 100%
rename from docs/versioned/bookstore/disclaimer/README.md
rename to docs/versioned/bookstore/disclaimer/disclaimer.md
diff --git a/docs/versioned/bookstore/extra-challenge/README.md b/docs/versioned/bookstore/extra-challenge/extra-challenges.md
similarity index 100%
rename from docs/versioned/bookstore/extra-challenge/README.md
rename to docs/versioned/bookstore/extra-challenge/extra-challenges.md
diff --git a/docs/versioned/getting-started/README.md b/docs/versioned/getting-started/README.md
deleted file mode 100644
index 10c6360e339..00000000000
--- a/docs/versioned/getting-started/README.md
+++ /dev/null
@@ -1,23 +0,0 @@
----
-audience: developer
-components:
- - functions
- - serving
- - eventing
-function: tutorial
----
-
-# Welcome to the Knative Quickstart tutorial
-
-Following this Quickstart tutorial provides you with a simplified, local Knative installation by using the Knative `quickstart` plugin.
-
-You can use this simple Knative deployment to try out commonly used features of **Knative Serving** and **Knative Eventing**.
-
-We recommend that you complete the topics in this tutorial in order.
-
---8<-- "quickstart-prereqs.md"
-
-!!! tip
- Hit ++"."++ (period) on your keyboard to move forward in the tutorial. Use ++","++ (comma) to go back at any time.
-
-
diff --git a/docs/versioned/getting-started/build-run-deploy-func.md b/docs/versioned/getting-started/build-run-deploy-func.md
deleted file mode 100644
index 775b5faa40c..00000000000
--- a/docs/versioned/getting-started/build-run-deploy-func.md
+++ /dev/null
@@ -1,48 +0,0 @@
----
-audience: developer
-components:
- - functions
-function: tutorial
----
-
-# Building, running, or deploying functions
-
-After you have created a function project, you can build, run, or deploy your function, depending on your use case.
-
-## Running a function
-
---8<-- "run-func-intro.md"
-
-### Prerequisites
-
-- You have a Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.
-
-### Procedure
-
---8<-- "proc-running-function.md"
-
-## Deploying a function
-
---8<-- "deploy-func-intro.md"
-
-### Prerequisites
-
-- You have a Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.
-
-- You have access to a container registry and are able to push images to this registry. Note that some image registries set newly pushed images to private by default. If you are deploying a function for the first time, you may need to ensure that your images are set to public.
-
-### Procedure
-
---8<-- "proc-deploying-function.md"
-
-## Building a function
-
---8<-- "build-func-intro.md"
-
-### Prerequisites
-
-- You have a Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.
-
-### Procedure
-
---8<-- "proc-building-function.md"
diff --git a/docs/versioned/getting-started/clean-up.md b/docs/versioned/getting-started/clean-up.md
deleted file mode 100644
index 73e6412a880..00000000000
--- a/docs/versioned/getting-started/clean-up.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-audience: developer
-components:
- - serving
- - eventing
-function: tutorial
-hide_next: true
----
-
-# Clean Up
-
-We recommend that you delete the cluster used for this tutorial to free up resources
-on your local machine.
-
-If you want to continue experimenting with Knative after deleting the cluster,
-you can reinstall Knative on a new cluster using the [`quickstart` plugin](quickstart-install.md#run-the-knative-quickstart-plugin) again.
-
-## Delete the Cluster
-
-=== "kind"
-
- Delete your `kind` cluster by running the command:
-
- ```bash
- kind delete clusters knative
- ```
- !!! success "Example output"
- ```{ .bash .no-copy }
- Deleted clusters: ["knative"]
- ```
-
-=== "minikube"
-
- Delete your `minikube` cluster by running the command:
-
- ```bash
- minikube delete -p knative
- ```
- !!! success "Example output"
- ```{ .bash .no-copy }
- 🔥 Deleting "knative" in hyperkit ...
- 💀 Removed all traces of the "knative" cluster.
- ```
diff --git a/docs/versioned/getting-started/create-a-function.md b/docs/versioned/getting-started/create-a-function.md
deleted file mode 100644
index aff63cd364c..00000000000
--- a/docs/versioned/getting-started/create-a-function.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-audience: developer
-components:
- - functions
-function: tutorial
----
-
-# Creating a function
-
---8<-- "create-a-function.md"
-
-
diff --git a/docs/versioned/getting-started/first-autoscale.md b/docs/versioned/getting-started/first-autoscale.md
deleted file mode 100644
index 992323e076e..00000000000
--- a/docs/versioned/getting-started/first-autoscale.md
+++ /dev/null
@@ -1,100 +0,0 @@
----
-audience: developer
-components:
- - serving
-function: tutorial
----
-
-# Autoscaling
-
-Knative Serving provides automatic scaling, also known as **autoscaling**. This means that a Knative Service by default scales down to zero running pods when it is not in use.
-
-## List your Knative Service
-
-Use the Knative (`kn`) CLI to view the URL where your Knative Service is hosted:
-
-=== "kn"
- View a list of Knative Services by running the command:
- ```bash
- kn service list
- ```
- !!! Success "Expected output"
- ```bash
- NAME URL LATEST AGE CONDITIONS READY
- hello http://hello.default.${LOADBALANCER_IP}.sslip.io hello-00001 13s 3 OK / 3 True
- ```
-=== "kubectl"
- View a list of Knative Services by running the command:
- ```bash
- kubectl get ksvc
- ```
- !!! Success "Expected output"
- ```bash
- NAME URL LATESTCREATED LATESTREADY READY REASON
- hello http://hello.default.${LOADBALANCER_IP}.sslip.io hello-00001 hello-00001 True
- ```
-
-## Access your Knative Service
-
-Access your Knative Service by opening the previous URL in your browser or by running the command:
-
-```bash
-echo "Accessing URL $(kn service describe hello -o url)"
-curl "$(kn service describe hello -o url)"
-```
-
-!!! Success "Expected output"
- ```{ .bash .no-copy }
- Hello World!
- ```
-
-??? question "Are you seeing `curl: (6) Could not resolve host: hello.default.${LOADBALANCER_IP}.sslip.io`?"
-
- In some cases your DNS server may be set up not to resolve `*.sslip.io` addresses. If you encounter this problem, it can be fixed by using a different nameserver to resolve these addresses.
-
- The exact steps will differ according to your distribution. For example, with Ubuntu derived systems which use `systemd-resolved`, you can add the following entry to the `/etc/systemd/resolved.conf`:
-
- ```ini
- [Resolve]
- DNS=8.8.8.8
- Domains=~sslip.io.
- ```
-
- Then simply restart the service with `sudo service systemd-resolved restart`.
-
- For MacOS users, you can add the DNS and domain using the network settings as explained [here](https://support.apple.com/en-gb/guide/mac-help/mh14127/mac).
-
-## Observe autoscaling
-
-Watch the pods and see how they scale to zero after traffic stops going to the URL:
-
-```bash
-kubectl get pod -l serving.knative.dev/service=hello -w
-```
-
-!!! note
- It may take up to 2 minutes for your pods to scale down. Pinging your service again resets this timer.
-
-!!! Success "Expected output"
- ```{ .bash .no-copy }
- NAME READY STATUS
- hello-world 2/2 Running
- hello-world 2/2 Terminating
- hello-world 1/2 Terminating
- hello-world 0/2 Terminating
- ```
-
-## Scale up your Knative Service
-
-Rerun the Knative Service in your browser. You can see a new pod running again:
-
-!!! Success "Expected output"
- ```{ .bash .no-copy }
- NAME READY STATUS
- hello-world 0/2 Pending
- hello-world 0/2 ContainerCreating
- hello-world 1/2 Running
- hello-world 2/2 Running
- ```
-
-Exit the `kubectl watch` command with `Ctrl+c`.
diff --git a/docs/versioned/getting-started/first-broker.md b/docs/versioned/getting-started/first-broker.md
deleted file mode 100644
index ac022fc1531..00000000000
--- a/docs/versioned/getting-started/first-broker.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-audience: developer
-components:
- - eventing
-function: tutorial
----
-
-# Sources, Brokers, and Triggers
-
-As part of the `kn quickstart` install, an InMemoryChannel-backed Broker is installed on your kind cluster.
-
-Verify that the Broker is installed by running the following command:
-
-```bash
-kn broker list
-```
-
-!!! Success "Expected output"
- ```{ .bash .no-copy }
- NAME URL AGE CONDITIONS READY REASON
- example-broker http://broker-ingress.knative-eventing.svc.cluster.local/default/example-broker 5m 5 OK / 5 True
- ```
-!!! warning
- InMemoryChannel-backed Brokers are for development use only and must not be used in a production deployment.
-
-**Next, you'll take a look at a simple implementation** of Sources, Brokers, Triggers and Sinks using an app called the CloudEvents Player.
diff --git a/docs/versioned/getting-started/first-source.md b/docs/versioned/getting-started/first-source.md
deleted file mode 100644
index 596c62dbb80..00000000000
--- a/docs/versioned/getting-started/first-source.md
+++ /dev/null
@@ -1,161 +0,0 @@
----
-audience: developer
-components:
- - eventing
- - serving
-function: tutorial
----
-
-# Using a Knative Service as a source
-
-In this tutorial, you will use the [CloudEvents Player](https://github.com/ruromero/cloudevents-player){target=blank} app to showcase the core concepts of Knative Eventing. By the end of this tutorial, you should have an architecture that looks like this:
-
-
-
-The above image is Figure 6.6 from [Knative in Action](https://www.manning.com/books/knative-in-action){target=_blank}.
-
-## Creating your first source
-
-The CloudEvents Player acts as a Source for CloudEvents by intaking the name of the Broker as an environment variable, `BROKER_NAME`. If the Broker is
-located in a different namespace it is possible to also set the `BROKER_NAMESPACE` environment variable. Alternatively, you can just use the `BROKER_URI`.
-
-You will send CloudEvents to the Broker through the CloudEvents Player application.
-
-Create the CloudEvents Player Service:
-=== "kn"
- Run the command:
- ```bash
- kn service create cloudevents-player \
- --image quay.io/ruben/cloudevents-player:latest
- ```
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- Service 'cloudevents-player' created to latest revision 'cloudevents-player-00001' is available at URL:
- http://cloudevents-player.default.${LOADBALANCER_IP}.sslip.io
- ```
-
-=== "YAML"
- 1. Copy the following YAML into a file named `cloudevents-player.yaml`:
- ```bash
- apiVersion: serving.knative.dev/v1
- kind: Service
- metadata:
- name: cloudevents-player
- spec:
- template:
- metadata:
- annotations:
- autoscaling.knative.dev/min-scale: "1"
- spec:
- containers:
- - image: quay.io/ruben/cloudevents-player:latest
- ```
-
- 1. Apply the YAML file by running the command:
- ``` bash
- kubectl apply -f cloudevents-player.yaml
- ```
-
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- service.serving.knative.dev/cloudevents-player created
- ```
-
-The service is now running but it doesn't know where the broker is so let's create a
-[SinkBinding](https://knative.dev/docs/eventing/custom-event-source/sinkbinding/) between the service and the broker.
-
-=== "kn"
- Run the command:
- ```bash
- kn source binding create ce-player-binding --subject "Service:serving.knative.dev/v1:cloudevents-player" --sink broker:example-broker
- ```
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- Sink binding 'ce-player-binding' created in namespace 'default'.
- ```
-
-=== "YAML"
- 1. Copy the following YAML into a file named `cloudevents-player-binding.yaml`:
- ```bash
- apiVersion: sources.knative.dev/v1
- kind: SinkBinding
- metadata:
- name: ce-player-binding
- spec:
- sink:
- ref:
- apiVersion: eventing.knative.dev/v1
- kind: Broker
- name: example-broker
- subject:
- apiVersion: serving.knative.dev/v1
- kind: Service
- name: cloudevents-player
- ```
-
- 1. Apply the YAML file by running the command:
- ``` bash
- kubectl apply -f cloudevents-player-binding.yaml
- ```
-
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- sinkbinding.sources.knative.dev/ce-player-binding created
- ```
-
-## Examining the CloudEvents Player
-
-**You can use the CloudEvents Player to send and receive CloudEvents.**
-If you open the Service URL in your browser, the **Create Event** form appears.
-
-The Service URL is `http://cloudevents-player.default.${LOADBALANCER_IP}.sslip.io`,
-for example, [http://cloudevents-player.default.127.0.0.1.sslip.io](http://cloudevents-player.default.127.0.0.1.sslip.io) for `kind`.
-
-
-
-??? question "What do these fields mean?"
- | Field | Description |
- |:----------------:|:-------------|
- | `Event ID` | A unique ID. Click the loop icon to generate a new one. |
- | `Event Type` | An event type.|
- | `Event Source` | An event source.|
- | `Specversion` | Demarcates which CloudEvents spec you're using (should always be 1.0).|
- | `Message` | The `data` section of the CloudEvent, a payload which is carrying the data you care to be delivered.|
-
- For more information on the CloudEvents Specification, check out the [CloudEvents Spec](https://github.com/cloudevents/spec/blob/v1.0.1/spec.md){target=_blank}.
-
-### Sending an event
-
-Try sending an event using the CloudEvents Player interface:
-
-1. Fill in the form with whatever data you want.
-1. Ensure your Event Source does not contain any spaces.
-1. Click **SEND EVENT**.
-
-
-
-??? tip "Clicking the :fontawesome-solid-envelope: shows you the CloudEvent as the Broker sees it."
- {:width="500px"}
-
-??? question "Want to send events using the command line instead?"
- As an alternative to the Web form, events can also be sent/viewed using the command line.
-
- To post an event:
- ```bash
- curl -i http://cloudevents-player.default.${LOADBALANCER_IP}.sslip.io \
- -H "Content-Type: application/json" \
- -H "Ce-Id: 123456789" \
- -H "Ce-Specversion: 1.0" \
- -H "Ce-Type: some-type" \
- -H "Ce-Source: command-line" \
- -d '{"msg":"Hello CloudEvents!"}'
- ```
-
- And to view events:
- ```bash
- curl http://cloudevents-player.default.${LOADBALANCER_IP}.sslip.io/messages
- ```
-
-The :material-send: icon in the "Status" column implies that the event has been sent to our Broker... but where has the event gone? **Well, right now, nowhere!**
-
-A Broker is simply a receptacle for events. In order for your events to be sent anywhere, you must create a Trigger which listens for your events and places them somewhere. And, you're in luck; you'll create your first Trigger on the next page!
diff --git a/docs/versioned/getting-started/first-traffic-split.md b/docs/versioned/getting-started/first-traffic-split.md
deleted file mode 100644
index fdd3d5051ef..00000000000
--- a/docs/versioned/getting-started/first-traffic-split.md
+++ /dev/null
@@ -1,185 +0,0 @@
----
-audience: developer
-components:
- - serving
-function: tutorial
----
-
-# Traffic splitting
-
-Traffic splitting is useful for [blue/green deployments](https://martinfowler.com/bliki/BlueGreenDeployment.html){target=blank_} and [canary deployments](https://martinfowler.com/bliki/CanaryRelease.html){target=blank_}.
-
-A [Revision](../serving/revisions/README.md){target=_blank} is a snapshot-in-time of application code and configuration. A new Revision is created every time you make changes to the configuration of a Knative Service. When splitting traffic, Knative splits traffic between different Revisions of your Knative Service.
-
-## Creating a new Revision
-
-Instead of `TARGET=World`, update the environment variable `TARGET` on your Knative Service to greet "Knative" instead.
-
-=== "kn"
-
- Deploy the updated version of your Knative Service by running the command:
-
- ``` bash
- kn service update hello \
- --env TARGET=Knative
- ```
-
- As before, `kn` prints out some helpful information to the CLI.
-
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- Service 'hello' created to latest revision 'hello-00002' is available at URL:
- http://hello.default.${LOADBALANCER_IP}.sslip.io
- ```
-
-=== "YAML"
- 1. Edit your existing `hello.yaml` file to contain the following:
- ``` yaml
- apiVersion: serving.knative.dev/v1
- kind: Service
- metadata:
- name: hello
- spec:
- template:
- spec:
- containers:
- - image: ghcr.io/knative/helloworld-go:latest
- ports:
- - containerPort: 8080
- env:
- - name: TARGET
- value: "Knative"
- ```
- 1. Deploy the updated version of your Knative Service by running the command:
- ``` bash
- kubectl apply -f hello.yaml
- ```
-
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- service.serving.knative.dev/hello configured
- ```
-
-Because you are updating an existing Knative Service, the URL won't change, but the new Revision has the new name `hello-00002`.
-
-## Accessing the new Revision
-
-To see the change, access the Knative Service again on your browser or use `curl` in your terminal:
-
-```bash
-echo "Accessing URL $(kn service describe hello -o url)"
-curl "$(kn service describe hello -o url)"
-```
-
-!!! Success "Expected output"
- ```{ .bash .no-copy }
- Hello Knative!
- ```
-
-## View existing Revisions
-
-You can view a list of existing Revisions by using the Knative (`kn`) or `kubectl` CLI:
-
-=== "kn"
- View a list of revisions by running the command:
- ```bash
- kn revisions list
- ```
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- NAME SERVICE TRAFFIC TAGS GENERATION AGE CONDITIONS READY REASON
- hello-00002 hello 100% 2 30s 3 OK / 4 True
- hello-00001 hello 1 5m 3 OK / 4 True
- ```
-
-=== "kubectl"
- View a list of Revisions by running the command:
- ```bash
- kubectl get revisions
- ```
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- NAME CONFIG NAME K8S SERVICE NAME GENERATION READY REASON ACTUAL REPLICAS DESIRED REPLICAS
- hello-00001 hello 1 True 0 0
- hello-00002 hello 2 True 0 0
- ```
-
-When running the `kn` command, the relevant column is `TRAFFIC`. You can see that 100% of traffic is going to the latest Revision, `hello-00002`, which is on the row with the highest `GENERATION`. 0% of traffic is going to the Revision `hello-00001`.
-
-When you create a new Revision of a Knative Service, Knative defaults to directing 100% of traffic to this latest Revision. You can change this default behavior by specifying how much traffic you want each Revision to receive.
-
-## Splitting traffic between Revisions
-
-Split the traffic between the two Revisions:
-
-=== "kn"
- Run the command:
- ```bash
- kn service update hello \
- --traffic hello-00001=50 \
- --traffic @latest=50
- ```
-
-=== "YAML"
- 1. Add the `traffic` section to the bottom of your existing `hello.yaml` file:
- ``` yaml
- apiVersion: serving.knative.dev/v1
- kind: Service
- metadata:
- name: hello
- spec:
- template:
- spec:
- containers:
- - image: ghcr.io/knative/helloworld-go:latest
- ports:
- - containerPort: 8080
- env:
- - name: TARGET
- value: "Knative"
- traffic:
- - latestRevision: true
- percent: 50
- - latestRevision: false
- percent: 50
- revisionName: hello-00001
- ```
- 1. Apply the YAML by running the command:
- ``` bash
- kubectl apply -f hello.yaml
- ```
-
-!!! info
- `@latest` always points to the "latest" Revision, which in this case is `hello-00002`.
-
-## Verify the traffic split
-
-To verify that the traffic split has configured correctly, list the Revisions again by running the command:
-
-```bash
-kn revisions list
-```
-
-!!! Success "Expected output"
- ```{ .bash .no-copy }
- NAME SERVICE TRAFFIC TAGS GENERATION AGE CONDITIONS READY REASON
- hello-00002 hello 50% 2 10m 3 OK / 4 True
- hello-00001 hello 50% 1 36m 3 OK / 4 True
- ```
-
-Access your Knative Service multiple times in your browser to see the different output being served by each Revision.
-
-Similarly, you can access the Service URL from the terminal multiple times to see the traffic being split between the Revisions.
-
-```bash
-echo "Accessing URL $(kn service describe hello -o url)"
-curl "$(kn service describe hello -o url)"
-```
-
-!!! Success "Expected output"
- ```{ .bash .no-copy }
- Hello Knative!
- Hello World!
- Hello Knative!
- Hello World!
- ```
diff --git a/docs/versioned/getting-started/first-trigger.md b/docs/versioned/getting-started/first-trigger.md
deleted file mode 100644
index ef1adc1f32e..00000000000
--- a/docs/versioned/getting-started/first-trigger.md
+++ /dev/null
@@ -1,87 +0,0 @@
----
-audience: developer
-components:
- - eventing
-function: tutorial
----
-
-# Using Triggers and sinks
-
-In the last topic we used the CloudEvents Player as an event source to send events to the Broker.
-We now want the event to go from the Broker to an event sink.
-
-In this topic, we will use the CloudEvents Player as the sink as well as a source.
-This means we will be using the CloudEvents Player to both send and receive events.
-We will use a Trigger to listen for events in the Broker to send to the sink.
-
-## Creating your first Trigger
-
-Create a Trigger that listens for CloudEvents from the event source and places them into the sink, which is also the CloudEvents Player app.
-
-=== "kn"
-
- To create the Trigger, run the command:
- ```bash
- kn trigger create cloudevents-trigger --sink cloudevents-player --broker example-broker
- ```
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- Trigger 'cloudevents-trigger' successfully created in namespace 'default'.
- ```
-
-=== "YAML"
-
- 1. Copy the following YAML into a file named `ce-trigger.yaml`:
- ```bash
- apiVersion: eventing.knative.dev/v1
- kind: Trigger
- metadata:
- name: cloudevents-trigger
- annotations:
- knative-eventing-injection: enabled
- spec:
- broker: example-broker
- subscriber:
- ref:
- apiVersion: serving.knative.dev/v1
- kind: Service
- name: cloudevents-player
- ```
-
- 1. Create the Trigger by running the command:
- ```bash
- kubectl apply -f ce-trigger.yaml
- ```
-
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- trigger.eventing.knative.dev/cloudevents-trigger created
- ```
-
-??? question "What CloudEvents is my Trigger listening for?"
- Because we didn't specify a `--filter` in our `kn` command, the Trigger is listening for any CloudEvents coming into the Broker.
-
- Expand the next note to see how to use Filters.
-
-Now, when we go back to the CloudEvents Player and send an event, we see that CloudEvents are both sent and received by the CloudEvents Player:
-
-{draggable=false}
-
-You may need to refresh the page to see your changes.
-
-??? question "What if I want to filter on CloudEvent attributes?"
- First, delete your existing Trigger:
- ```bash
- kn trigger delete cloudevents-trigger
- ```
- Now let's add a Trigger that listens for a certain CloudEvent Type
- ```bash
- kn trigger create cloudevents-player-filter --sink cloudevents-player --broker example-broker --filter type=some-type
- ```
-
- If you send a CloudEvent with type `some-type`, it is reflected in the CloudEvents Player UI. The Trigger ignores any other types.
-
- You can filter on any aspect of the CloudEvent you would like to.
-
-
-Some people call this **"Event-Driven Architecture"** which can be used to create your own **"Functions as a Service"** on Kubernetes :tada: :taco: :fire:
diff --git a/docs/versioned/getting-started/install-func.md b/docs/versioned/getting-started/install-func.md
deleted file mode 100644
index d3382e11fcd..00000000000
--- a/docs/versioned/getting-started/install-func.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-audience: developer
-components:
- - functions
-function: tutorial
----
-
-# Installing Knative Functions
-
---8<-- "install-functions-intro.md"
-
-## Installing the `func` CLI
-
---8<-- "install-func-CLI.md"
-
-## Installing the `kn func` CLI plugin
-
---8<-- "install-kn-func-plugin.md"
diff --git a/docs/versioned/getting-started/tutorial.md b/docs/versioned/getting-started/tutorial.md
deleted file mode 100644
index 16fcedcdcc8..00000000000
--- a/docs/versioned/getting-started/tutorial.md
+++ /dev/null
@@ -1,69 +0,0 @@
----
-audience: developer
-components:
- - functions
- - serving
- - eventing
-function: tutorial
----
-
-# Welcome to the Knative Tutorials
-
-Choose your learning path based on your goals and experience level.
-
----
-
-## Getting Started with Knative
-
-**Perfect for:** First-time users and developers wanting hands-on experience
-
-Comprehensive guide with multiple learning paths:
-
- - Quick local installation (10 minutes with kind/minikube)
- - Step-by-step tutorials for Serving, Eventing, and Functions
-
-**What you'll learn:** Deploy your first service, explore autoscaling, build event-driven applications, and create serverless functions.
-
-[Explore Getting Started Paths :octicons-arrow-right-24:](../getting-started/README.md){ .md-button }
-
----
-
-## Knative Bookstore: End-to-End Sample Application
-
-**Perfect for:** Learning Knative through a real-world application
-
-Build a complete online bookstore application from scratch and explore Knative's powerful features in action.
-
-**What you'll learn:** Integration of Serving and Eventing, real-world architecture patterns, and best practices for production applications.
-
-[Start Bookstore Tutorial :octicons-arrow-right-24:](../bookstore/page-0/welcome-knative-bookstore-tutorial.md){ .md-button }
-
-
-
----
-
-## Not sure where to start?
-
-Here are common paths:
-
- - **Want to try Knative in 10 minutes?** → [Quick Start Tutorial](quickstart-install.md)
- - **Need to understand Knative first?** → [Technical Overview](../README.md)
- - **Building event-driven apps?** → [Eventing Tutorial](getting-started-eventing.md)
- - **Creating serverless functions?** → [Functions Tutorial](about-knative-functions.md)
- - **Ready for production?** → [Installation Guide](../install/README.md)
-
----
-
-## Prerequisites
-
-**For Quick Start Tutorial:**
-
- - Docker
- - kubectl
- - 3 CPUs, 3 GB RAM
-
-**For Bookstore Tutorial:**
-
- - Kubernetes cluster (local or cloud)
- - Basic familiarity with Kubernetes concepts
-
\ No newline at end of file
diff --git a/docs/versioned/overview.md b/docs/versioned/overview.md
new file mode 100644
index 00000000000..2b21fcbb787
--- /dev/null
+++ b/docs/versioned/overview.md
@@ -0,0 +1,118 @@
+---
+audience: developer
+components:
+ - eventing
+ - functions
+ - serving
+function: explanation
+hide_prev: true
+hide_next: true
+---
+
+# Knative Technical Overview
+
+This page explains how Knative's components work under the hood and integrate
+with Kubernetes. For a high-level summary and hands-on tutorials, start at
+[Get started with Knative](README.md).
+
+## Architecture Overview
+
+Knative consists of three main components that work together to provide a complete serverless platform:
+
+[{draggable=false}](../images/home-images/knative_flowchart_graphic.svg){.diagram-link}
+
+- **Knative Serving**: An HTTP-triggered autoscaling container runtime that manages the complete lifecycle of stateless HTTP services, including deployment, routing, and automatic scaling.
+- **Knative Eventing**: A CloudEvents-over-HTTP asynchronous routing layer that provides infrastructure for consuming and producing events, enabling loose coupling between event producers and consumers.
+- **Knative Functions**: A developer-focused function framework that leverages Serving and Eventing components to provide a simplified experience for building and deploying stateless functions.
+
+These components can be used independently or together, allowing you to adopt Knative incrementally based on your needs.
+
+## Knative Serving
+
+--8<-- "about-serving.md"
+
+### Request Flow in Serving
+
+{draggable=false}
+
+When a request is made to a Knative Service:
+
+1. **Ingress Layer**: The request enters through the configured networking layer (Kourier, Istio, or Contour).
+2. **Routing Decision**: Based on current traffic patterns and scaling state, requests are routed either to the Activator or directly to application pods.
+3. **Scaling**: If no pods are running (scale-to-zero), the Activator queues the request and signals the Autoscaler to create pods.
+4. **Queue-Proxy**: All requests pass through the Queue-Proxy sidecar, which enforces concurrency limits and collects metrics.
+5. **Application**: The request reaches your application container.
+
+For more detail, see the [request flow documentation](serving/request-flow.md).
+
+### GPU Resources and LLM Inference
+
+Because Knative Services run as Kubernetes pods, they can request GPU resources
+through standard Kubernetes resource specifications while keeping scale-to-zero
+and traffic splitting. For production LLM serving, consider
+[KServe](https://kserve.github.io), which builds on Knative
+Serving to add standardized inference protocols, multi-framework runtimes, and
+request batching.
+
+## Knative Eventing
+
+--8<-- "about-eventing.md"
+
+### Key Eventing Concepts
+
+- **Event Sources**: Generate CloudEvents from external systems (databases, message queues, cloud services) and send them into the event mesh.
+- **Brokers**: Receive events from sources and forward them to matching consumers based on CloudEvent attributes.
+- **Triggers**: Filter events on a Broker by CloudEvent attributes and route matches to a subscriber.
+- **Sinks**: Consumers that receive and process events — Knative Services, Kubernetes Services, or external HTTP endpoints.
+- **Channels**: Lower-level primitives for point-to-point event delivery between producers and consumers.
+
+### Event Flow in Eventing
+
+{draggable=false}
+
+1. **Event Generation**: An event source detects a change or condition and creates a CloudEvent.
+2. **Event Ingestion**: The event is sent to a Broker via HTTP POST.
+3. **Event Routing**: The Broker evaluates Triggers to determine which consumers should receive the event.
+4. **Event Delivery**: The event is delivered to matching consumers as HTTP requests.
+5. **Event Processing**: Consumers process the event and optionally produce response events.
+
+## Knative Functions
+
+--8<-- "about-functions.md"
+
+### Functions Development Model
+
+- **Standard signatures**: Functions use standard HTTP and CloudEvents interfaces to avoid lock-in.
+- **Built-in templates**: Language packs provide templates for Node.js, TypeScript, Python, Go, and Java (Spring Boot and Quarkus), and you can author custom language packs.
+- **Local development**: Build, run, and test locally with `func` before deploying.
+- **Automatic containerization**: `func` builds OCI images without requiring a Dockerfile, and deploys them as Knative Services (or any container runtime).
+
+### Function Deployment and Lifecycle
+
+``` mermaid
+flowchart TD
+ init>"`func init
+ to create a function`"]
+ git@{ shape: lin-cyl, label: "fa:fa-git-alt local repo" }
+ laptop@{ shape: win-pane, label: "Local Development fa:fa-docker" }
+ oci@{ shape: procs, label: "Container Registry" }
+ cluster@{ label: "fa:fa-dharmachakra Knative Serving" }
+
+init --> git
+git -- develop and test locally--> laptop
+laptop --> git
+git -- "`func push
+push container to registry`" --> oci -.-> cluster
+git -- deploy container and triggers --> cluster
+```
+
+## Integration with Kubernetes
+
+While each component can be used independently, they compose cleanly: Functions
+deploy as Knative Services, Functions and Serving Services can act as event
+sources or sinks, and all resources follow Kubernetes-native patterns.
+
+- **Policy and IAM**: Serving and Eventing are Kubernetes CRDs, so standard RBAC, policies, and service accounts apply.
+- **Networking**: Integrates with cert-manager, Gateway API, Istio, Kourier, and Contour.
+- **Observability**: Uses [OpenTelemetry](https://opentelemetry.io/) to integrate with Prometheus, Grafana, Jaeger, and other backends.
+- **CI/CD**: Compatible with GitOps workflows, Tekton Pipelines, and other continuous delivery tools.
diff --git a/mkdocs.local.yml b/mkdocs.local.yml
index a3e97a9ea0c..ea2c101071f 100644
--- a/mkdocs.local.yml
+++ b/mkdocs.local.yml
@@ -2,6 +2,14 @@
INHERIT: mkdocs.yml
site_url: http://127.0.0.1:8000/
+# Retain shared exemptions and pages reached by links rather than lesson navigation.
+# Keep this local: published releases still include the chooser in their nav.
+not_in_nav: |
+ /index.md
+ /about-analytics-cookies.md
+ /blog/articles/set-up-a-local-knative-environment-with-kind.md
+ **/bookstore/create-slack-workspace/README.md
+ /versioned/samples/README.md
# Validate this checkout without imposing new checks on archived release branches.
validation:
nav:
diff --git a/mkdocs.yml b/mkdocs.yml
index b67486e5650..38cc9727269 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -58,6 +58,7 @@ markdown_extensions:
emoji_index: !!python/name:material.extensions.emoji.twemoji
emoji_generator: !!python/name:material.extensions.emoji.to_svg
- attr_list
+ - md_in_html
- meta
- pymdownx.superfences:
custom_fences:
@@ -81,6 +82,7 @@ markdown_extensions:
- admonition
- toc:
permalink: true
+ toc_depth: 2
- def_list
plugins:
diff --git a/overrides/partials/nav.html b/overrides/partials/nav.html
index 4e1d57120ab..0eb08d022ec 100644
--- a/overrides/partials/nav.html
+++ b/overrides/partials/nav.html
@@ -20,6 +20,8 @@
IN THE SOFTWARE.
-->
+{% set section = nav | selectattr("active") | first %}
+
{% import "partials/nav-item.html" as item with context %}
{% import "partials/site-links.html" as site with context %}
@@ -54,7 +56,6 @@
{# Keep Material's direct nav > list > item structure for the desktop sidebar. #}
- {% set section = nav | selectattr("active") | first %}
{% if section %}
{% set nav = section %}
{% endif %}
@@ -75,7 +76,12 @@
{% for nav_item in nav.children | default([], true) %}
{% set path = "__nav_" ~ loop.index %}
- {{ item.render(nav_item, path, 1) }}
+ {% if nav_item.title == "Get Started" and nav_item.active %}
+ {# Expand Component tutorials by default while keeping Bookstore tutorial collapsed. #}
+ {{ item.render(nav_item, path, 1) | replace('id="__nav_' ~ loop.index ~ '_2" >', 'id="__nav_' ~ loop.index ~ '_2" checked>') }}
+ {% else %}
+ {{ item.render(nav_item, path, 1) }}
+ {% endif %}
{% endfor %}
From f045037a059d938136817e6f85af5d7e5e8d6d2e Mon Sep 17 00:00:00 2001
From: Dave Protasowski
Date: Thu, 26 Nov 2026 20:37:26 -0500
Subject: [PATCH 2/7] Update Get Started landing page and splash component
cards
---
docs/stylesheets/extra.css | 154 ++++++++++++++
docs/versioned/README.md | 283 +++++---------------------
overrides/assets/stylesheets/home.css | 38 +++-
overrides/home.html | 14 +-
4 files changed, 236 insertions(+), 253 deletions(-)
diff --git a/docs/stylesheets/extra.css b/docs/stylesheets/extra.css
index b9bb6c53e73..0de39b7cc4b 100644
--- a/docs/stylesheets/extra.css
+++ b/docs/stylesheets/extra.css
@@ -16,6 +16,12 @@
--site-nav-bg: #14385d;
--site-nav-text: #d4e3f4;
--site-nav-focus: #9bd5ff;
+ --knative-functions-color: #7a357d;
+ --knative-functions-background: #faf5fb;
+ --knative-serving-color: #125cb3;
+ --knative-serving-background: #f2f7fd;
+ --knative-eventing-color: #287867;
+ --knative-eventing-background: #f1f8f6;
}
/* Deep-navy canvas for elastic overscroll; regular page content stays white. */
@@ -406,6 +412,154 @@ body:not(:has(#__search:checked)) .md-header .md-search__icon[for='__search'] {
overflow-wrap: anywhere;
}
+/* The docs front door reuses the splash page's component palette. */
+.md-typeset .knative-docs-home {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 1rem;
+ margin-block: 1.5rem;
+}
+
+.knative-docs-panel {
+ display: flex;
+ flex-direction: column;
+ min-width: 0;
+ padding-block: 1rem 0.25rem;
+ border-top: 1px solid #e4e7ec;
+}
+
+.knative-docs-panel--try {
+ display: block;
+ grid-column: 1 / -1;
+ padding: 0 0 0.5rem;
+ border: 0;
+}
+
+.md-typeset .knative-docs-home h2 {
+ margin: 0 0 0.6rem;
+ font-size: 1.05rem;
+ line-height: 1.4;
+}
+
+.md-typeset .knative-docs-panel--try > h2 {
+ font-size: 1.25rem;
+}
+
+.knative-docs-tracks {
+ display: grid;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ gap: 1rem;
+ margin-block: 1.15rem 0.85rem;
+}
+
+.knative-docs-track {
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ min-width: 0;
+ padding: 1.15rem;
+ border: 1px solid transparent;
+ border-radius: 0.6rem;
+ background: var(--component-background);
+}
+
+.knative-docs-track--serving {
+ --component-color: var(--knative-serving-color);
+ --component-background: var(--knative-serving-background);
+}
+
+.knative-docs-track--functions {
+ --component-color: var(--knative-functions-color);
+ --component-background: var(--knative-functions-background);
+}
+
+.knative-docs-track--eventing {
+ --component-color: var(--knative-eventing-color);
+ --component-background: var(--knative-eventing-background);
+}
+
+.md-typeset .knative-docs-track h3 {
+ margin: 0 0 0.55rem;
+ color: var(--component-color);
+ font-size: 1.05rem;
+}
+
+.md-typeset .knative-docs-track .headerlink {
+ display: none;
+}
+
+.md-typeset .knative-docs-track p {
+ margin: 0;
+ line-height: 1.6;
+}
+
+.md-typeset .knative-docs-track__link {
+ color: var(--component-color);
+ font-weight: 600;
+}
+
+/* A single descriptive link makes the whole track card clickable. */
+.knative-docs-track__link::after {
+ position: absolute;
+ inset: 0;
+ border-radius: 0.6rem;
+ content: "";
+}
+
+@media (hover: hover) {
+ .knative-docs-track:hover {
+ border-color: var(--component-color);
+ }
+}
+
+.knative-docs-track:has(:focus-visible) {
+ outline: 2px solid var(--component-color);
+ outline-offset: 2px;
+}
+
+.md-typeset .knative-docs-panel > :last-child,
+.md-typeset .knative-docs-track > :last-child {
+ margin-bottom: 0;
+}
+
+.md-typeset .knative-docs-panel > ul {
+ margin: 0;
+ padding-top: 0.35rem;
+ list-style: none;
+}
+
+.md-typeset .knative-docs-panel > ul > li {
+ margin: 0;
+ padding-block: 0.25rem;
+}
+
+.md-typeset .knative-docs-panel > ul > li > a {
+ display: inline-block;
+}
+
+.md-typeset .knative-docs-reference {
+ margin-block: 1.5rem;
+ padding-top: 1rem;
+ border-top: 1px solid #e4e7ec;
+}
+
+.md-typeset .knative-docs-reference ul {
+ margin: 0;
+ list-style: none;
+}
+
+.md-typeset .knative-docs-reference li {
+ margin: 0;
+ padding-block: 0.25rem;
+}
+
+@media screen and (max-width: 47.5em) {
+ .md-typeset .knative-docs-home,
+ .knative-docs-tracks {
+ grid-template-columns: minmax(0, 1fr);
+ }
+}
+
/* Ink/link colors differ by over 3:1; reserve persistent underlines for utilities. */
.md-typeset blockquote {
color: var(--md-default-fg-color);
diff --git a/docs/versioned/README.md b/docs/versioned/README.md
index ee2487b9182..c0ccfe48a1e 100644
--- a/docs/versioned/README.md
+++ b/docs/versioned/README.md
@@ -1,269 +1,78 @@
---
+title: Get started with Knative
audience: developer
components:
- eventing
- functions
- serving
-function: explanation
+hide_next: true
+hide:
+ - toc
---
-# Knative Technical Overview
+
-This comprehensive overview explains what Knative is, what problems it solves, and how its components work together. Whether you're evaluating Knative for your use case or need background information to understand the rest of the documentation, this section provides the conceptual foundation you need.
+# Get started with Knative
-## What is Knative?
+Knative extends Kubernetes to build, deploy, and manage serverless workloads.
+Its three components — **Serving**, **Functions**, and **Eventing** — can be
+used independently or together.
-Knative is a Kubernetes-based platform that provides a complete set of middleware components for building, deploying, and managing modern [serverless](https://en.wikipedia.org/wiki/Serverless_computing){target=_blank} workloads. Knative extends Kubernetes to provide higher-level abstractions that simplify the development and operation of cloud-native applications.
+
-### Problems Knative Solves
+
-Knative addresses several key challenges in modern application development and deployment:
+
-**Application Deployment Complexity**: Traditional Kubernetes requires deep knowledge of pods, services, deployments, and ingress resources. These constructs provide a lot of flexibility and complexity that most applications don't need. Knative provides simpler abstractions that handle these details automatically.
+### [Try Serving →](getting-started/first-service.md){ .knative-docs-track__link } { #try-serving }
-**Serverless Operations**: Manual scaling, cold starts, and traffic routing are complex to implement. Knative provides automatic scaling from zero to thousands of instances, intelligent traffic routing, and efficient resource utilization.
+Deploy a container, observe autoscaling, and split traffic. Recommended first.
-**Event-Driven Architecture**: Building reliable event-driven systems requires complex infrastructure for event ingestion, routing, and delivery. Building event routing and delivery into your application limits your choice of event delivery and architecture; Knative provides standardized event processing capabilities across multiple event implementations using CloudEvents for delivery and Kubernetes for configuration.
+
-**Developer Experience**: Moving from code to running applications involves multiple steps and tools. Knative Functions provide a streamlined and standardized developer experience for building and deploying stateless functions as standard containers. Build and test locally without Kubernetes, and avoid managing build details like Dockerfiles and Kubernetes resources until you need them.
+
-**Platform Lock-in**: Cloud-specific serverless solutions create vendor lock-in. Knative runs on any Kubernetes cluster, providing portability across cloud providers and on-premises environments.
+### [Try Functions →](getting-started/about-knative-functions.md){ .knative-docs-track__link } { #try-functions }
-## Background Knowledge
+Create, change, and test a Go function locally.
-While you didn't need any specific programming experience to get started with Knative, you'll pick up the following concepts along the way. Knative will manage a lot of these in the background, so you can dive in deep when you're ready to learn.
+
-- **Basic Kubernetes knowledge**: Understanding of pods, services, and deployments
-- **Container concepts**: How to build and manage container images
-- **HTTP/REST APIs**: Understanding of web service fundamentals
-- **Basic YAML**: Ability to read and write Kubernetes resource definitions
+
-For event-driven features, familiarity with:
-- **Event-driven patterns**: Basic understanding of producers, consumers, and message routing
-- **CloudEvents specification**: Helpful but not required (Knative handles the details)
+### [Try Eventing →](getting-started/getting-started-eventing.md){ .knative-docs-track__link } { #try-eventing }
-## Architecture Overview
+Send an event through a Broker and observe delivery.
-Knative consists of three main components that work together to provide a complete serverless platform:
+
-[{draggable=false}](../images/home-images/knative_flowchart_graphic.svg){.diagram-link}
+
-**Knative Serving**: An HTTP-triggered autoscaling container runtime that manages the complete lifecycle of stateless HTTP services, including deployment, routing, and automatic scaling.
+## Why Knative?
-**Knative Eventing**: A CloudEvents-over-HTTP asynchronous routing layer that provides infrastructure for consuming and producing events, enabling loose coupling between event producers and consumers.
+- **Simpler application deployment:** Define a Knative Service instead of wiring
+ Deployments, Services, Ingress, and autoscalers by hand.
+- **Scale to zero and back:** Automatically scale pods from zero to match demand
+ and split traffic across immutable Revisions.
+- **Loosely coupled events:** Route CloudEvents over HTTP between producers and
+ consumers without hard-coding endpoints into application code.
+- **Code-to-container workflow:** Build, run, and test stateless functions
+ locally without writing Dockerfiles or Kubernetes manifests first.
+- **Portable across Kubernetes:** Run on any Kubernetes cluster — cloud or
+ on-premises — without vendor lock-in.
-**Knative Functions**: A developer-focused function framework that leverages Serving and Eventing components to provide a simplified experience for building and deploying stateless functions.
+## When to use Knative
-These components can be used independently or together, allowing you to adopt Knative incrementally based on your needs.
+Knative is a strong fit for stateless HTTP APIs, event-driven pipelines,
+microservices, AI/ML inference (directly or with
+[KServe](https://kserve.github.io)), and on-demand development
+environments. Consider alternatives if your workloads require sub-100ms cold
+starts, persistent in-process state, or long-running stateful processes.
-## Knative Serving
+
---8<-- "about-serving.md"
+- [Technical overview](overview.md) — Serving, Eventing, and Functions internals and Kubernetes ecosystem integration.
+- [Install and Manage](admin/admin-overview.md) — install and operate Knative on your own cluster.
+- [Next steps and cleanup](getting-started/next-steps.md) — continue after a tutorial or clean up.
-### Key Serving Features
-
-**Automatic Scaling**: Services automatically scale from zero to handle incoming traffic and scale back down when idle, optimizing resource usage and costs.
-
-**Traffic Management**: Built-in support for blue-green deployments, canary releases, and traffic splitting between different revisions of your application.
-
-**Networking**: Automatic ingress configuration with support for custom domains, TLS termination, and integration with service mesh technologies.
-
-**Kubernetes Native**: Knative builds on the Kubernetes Pod abstraction, making it easy to access functionality like service accounts, accelerator access, and container sandboxing.
-
-**Configuration Management**: Clean separation between application code and configuration, following twelve-factor app principles.
-
-### Request Flow in Serving
-
-{draggable=false}
-
-When a request is made to a Knative Service:
-
-1. **Ingress Layer**: The request enters through the configured networking layer (Kourier, Istio, or Contour)
-2. **Routing Decision**: Based on current traffic patterns and scaling state, requests are routed either to the Activator or directly to application pods
-3. **Scaling**: If no pods are running (scale-to-zero), the Activator queues the request and signals the Autoscaler to create pods
-4. **Queue-Proxy**: All requests pass through the Queue-Proxy sidecar, which enforces concurrency limits and collects metrics
-5. **Application**: The request reaches your application container
-
-For detailed information, see the [request flow documentation](serving/request-flow.md).
-
-### GPU Resources and LLM Inference
-
-Knative Serving can leverage Kubernetes pod capabilities to access specialized hardware resources like GPUs, making it an excellent platform for AI/ML inference workloads:
-
-**GPU Resource Access**: Since Knative Services are implemented as Kubernetes pods, you can request GPU resources using standard Kubernetes resource specifications. This enables running inference models that require GPU acceleration while benefiting from Knative's automatic scaling and traffic management.
-
-**LLM Inference Support**: Knative Serving provides an ideal foundation for Large Language Model (LLM) inference services, offering:
-
-- **Automatic scaling** from zero to multiple GPU-enabled pods based on request demand
-- **Traffic splitting** for A/B testing different model versions or configurations
-- **Resource efficiency** by scaling down expensive GPU resources when not in use
-- **Standard HTTP interfaces** for model serving and inference endpoints
-
-**KServe Integration**: For production LLM deployments, consider using [KServe](https://kserve.github.io), a Kubernetes-native model serving platform built on Knative Serving. KServe provides:
-
-- Standardized inference protocols and multi-framework support
-- Advanced features like model ensembling, explainability, and drift detection
-- Optimized serving runtimes for popular ML frameworks (TensorFlow, PyTorch, ONNX, etc.)
-- Built-in support for autoscaling GPU workloads and batching requests
-
-Whether using Knative Serving directly for custom inference services or through KServe for standardized model serving, you get the benefits of Kubernetes-native resource management combined with serverless operational characteristics.
-
-## Knative Eventing
-
---8<-- "about-eventing.md"
-
-### Key Eventing Concepts
-
-**Event Sources**: Components that generate events from external systems (databases, message queues, cloud services, etc.) and send them into the Knative event mesh.
-
-**Brokers**: Event routers that receive events from sources and forward them to interested consumers based on CloudEvent attributes.
-
-**Triggers**: Configuration objects that define which events should be delivered to which consumers, using filtering based on event metadata.
-
-**Sinks**: Event consumers that receive and process events. These can be Knative Services, Kubernetes Services, or external endpoints.
-
-**Channels**: Lower-level primitives for point-to-point event delivery between producers and consumers.
-
-### Event Flow in Eventing
-
-{draggable=false}
-
-A typical event flow involves:
-
-1. **Event Generation**: An event source detects a change or condition and creates a CloudEvent
-2. **Event Ingestion**: The event is sent to a Broker via HTTP POST
-3. **Event Routing**: The Broker evaluates Triggers to determine which consumers should receive the event
-4. **Event Delivery**: The event is delivered to matching consumers as HTTP requests
-5. **Event Processing**: Consumers process the event and optionally produce response events
-
-### Eventing Use Cases
-
-- **Data Pipeline Processing**: Transform and route data through multiple processing stages
-- **Integration Patterns**: Connect disparate systems using event-driven communication
-- **Workflow Orchestration**: Coordinate complex business processes across multiple services
-- **Real-time Analytics**: Process streaming data for monitoring and alerting
-
-## Knative Functions
-
---8<-- "about-functions.md"
-
-### Functions Development Model
-
-Knative Functions provide a simplified programming model that abstracts away infrastructure concerns:
-
-**Function Signature**: Functions follow a simple signature pattern leveraging standard libraries (such as HTTP and CloudEvents) to prevent lock-in.
-
-**Built-in Templates**: Language-specific templates provide starting points for common function patterns and integrate with popular frameworks.
-
-**Local Development**: Functions can be built, run, and tested locally before deployment to Kubernetes.
-
-**Automatic Containerization**: The `func` CLI automatically builds container images from your function code without requiring Dockerfile expertise.
-
-**Easy Deployment**: Function containers can be run anywhere you can run an HTTP application. `func` can also deploy your container to Knative Serving, where you can manage it with the `kn` CLI or standard Kubernetes YAML.
-
-### Supported Languages and Runtimes
-
-Functions support multiple programming languages through language packs:
-
-- **Node.js**: Using popular frameworks like Express
-- **Python**: With Flask and FastAPI support
-- **Go**: Native Go HTTP handlers
-- **Java**: Using Spring Boot and Quarkus
-- **TypeScript**: Full TypeScript support with Node.js
-
-You can also build your own language packs to customize the output container to your own specifications.
-
-### Function Deployment and Lifecycle
-
-
-``` mermaid
-flowchart TD
- init>"`func init
- to create a function`"]
- git@{ shape: lin-cyl, label: "fa:fa-git-alt local repo" }
- laptop@{ shape: win-pane, label: "Local Development fa:fa-docker" }
- oci@{ shape: procs, label: "Container Registry" }
- cluster@{ label: "fa:fa-dharmachakra Knative Serving" }
-
-init --> git
-git -- develop and test locally--> laptop
-laptop --> git
-git -- "`func push
-push container to registry`" --> oci -.-> cluster
-git -- deploy container and triggers --> cluster
-```
-
-1. **Development**: Write your function using language-specific templates
-2. **Building**: The `func` CLI creates an optimized container image
-3. **Deployment**: Functions are deployed as Knative Services with automatic scaling
-4. **Invocation**: Functions can be triggered by HTTP requests or CloudEvents
-5. **Management**: Update, delete, and monitor functions using familiar Kubernetes tools
-
-## System Integration and Interoperability
-
-### How Components Work Together
-
-While each Knative component can be used independently, they're designed to work seamlessly together:
-
-**Functions + Serving**: Functions are deployed as Knative Services, inheriting all serving capabilities like autoscaling and traffic management.
-
-**Functions + Eventing**: Functions can be triggered by CloudEvents, enabling event-driven function execution and microservice orchestration.
-
-**Serving + Eventing**: Services can act as event sources or sinks, participating in complex event-driven workflows.
-
-### Integration with Kubernetes Ecosystem
-
-Knative integrates with standard Kubernetes resources and third-party tools:
-
-**Kubernetes-native resources**: Serving and Eventing are implemented as Kubernetes custom resources, meaning that you can use the same policy and IAM tools you use for Kubernetes.
-
-**Builds on Kubernetes**: Serving creates Pods (so you can use GPUs, service accounts, and other Kubernetes features), and Eventing can easily deliver events to Kubernetes services as well as Serving functions.
-
-**Networking**: Integrates with cert-manager for certificate management, and with Gateway API for ingress. Integrates with Istio, Envoy, and other service mesh technologies for advanced traffic management and security.
-
-**Monitoring**: Using [OpenTelemetry](https://opentelemetry.io/), integrates with Prometheus, Grafana, Jaeger, and many other observability tools for metrics and monitoring.
-
-**CI/CD**: Compatible with GitOps workflows, Tekton Pipelines, and other continuous deployment tools.
-
-## Use Cases and When to Choose Knative
-
-### Ideal Use Cases
-
-**API Development**: Rapidly develop and deploy REST APIs with built-in scaling and traffic management.
-
-**Event-Driven Applications**: Process events from various sources with reliable delivery and error handling.
-
-**Inference Services**: Use Knative directly, or integrate with [KServe](https://kserve.github.io) to easily manage AI inference models.
-
-**Microservices Architecture**: Build and deploy loosely coupled services with automatic scaling and service discovery.
-
-**Integration Workflows**: Connect legacy systems and SaaS applications using event-driven patterns.
-
-**Edge Computing**: Deploy lightweight functions and services closer to users or data sources.
-
-**Development Environments**: Automatically scale down development environments when not in use; start them up again when requests arrive.
-
-### Evaluation Criteria
-
-Choose Knative when you need:
-
-- **Kubernetes-native serverless** with no vendor lock-in
-- **Automatic scaling** including scale-to-zero capabilities
-- **Event-driven architecture** with standardized event processing
-- **Developer productivity** improvements for cloud-native applications
-- **Cost optimization** through efficient resource utilization
-- **Flexibility** to use components independently based on your needs
-
-Consider alternatives when:
-
-- You need extremely low cold-start latency (sub-100ms)
-- Your workloads require persistent state or long-running processes
-
-## Next Steps
-
-- **Installation**: Get started with [Knative installation](install/README.md)
-- **Quick Start**: Try the [Knative Quickstart](getting-started/README.md) for hands-on experience
-- **Serving Guide**: Learn more about [Knative Serving](serving/README.md)
-- **Eventing Guide**: Explore [Knative Eventing](eventing/README.md) capabilities
-- **Functions Guide**: Build your first [Knative Function](functions/README.md)
-- **Examples**: Browse [sample applications](samples/README.md) and use cases
+
diff --git a/overrides/assets/stylesheets/home.css b/overrides/assets/stylesheets/home.css
index b21c341bbf0..615acf715ca 100644
--- a/overrides/assets/stylesheets/home.css
+++ b/overrides/assets/stylesheets/home.css
@@ -246,6 +246,9 @@ body:has(.home-page) .site-announcement {
}
.building-blocks-capability {
+ position: relative;
+ display: flex;
+ flex-direction: column;
min-width: 0;
padding: 1.25rem;
border-radius: 0.5rem;
@@ -253,37 +256,54 @@ body:has(.home-page) .site-announcement {
}
.building-blocks-functions {
- --block-color: #7a357d;
- --block-background: #faf5fb;
+ --block-color: var(--knative-functions-color);
+ --block-background: var(--knative-functions-background);
}
.building-blocks-serving {
- --block-color: #125cb3;
- --block-background: #f2f7fd;
+ --block-color: var(--knative-serving-color);
+ --block-background: var(--knative-serving-background);
}
.building-blocks-eventing {
- --block-color: #287867;
- --block-background: #f1f8f6;
+ --block-color: var(--knative-eventing-color);
+ --block-background: var(--knative-eventing-background);
}
.home-page .building-blocks-capability h3 {
margin-bottom: 0.6rem;
+ color: var(--block-color);
font-size: 1.1rem;
line-height: 1.4;
font-weight: 500;
letter-spacing: -0.02em;
}
-.building-blocks-capability h3 a {
+.home-page .building-blocks-capability__link {
color: var(--block-color);
}
-.building-blocks-capability h3 a:hover {
- text-decoration: underline;
+.building-blocks-capability__link::after {
+ position: absolute;
+ inset: 0;
+ border-radius: 0.5rem;
+ content: "";
+}
+
+@media (hover: hover) {
+ .building-blocks-capability:hover {
+ outline: 2px solid var(--block-color);
+ outline-offset: 2px;
+ }
+}
+
+.building-blocks-capability:has(:focus-visible) {
+ outline: 2px solid var(--block-color);
+ outline-offset: 2px;
}
.home-page .building-blocks-capability p {
+ margin-bottom: 0;
color: #475467;
font-size: 0.8rem;
line-height: 1.65;
diff --git a/overrides/home.html b/overrides/home.html
index 3769924a305..d9f60b6e57a 100644
--- a/overrides/home.html
+++ b/overrides/home.html
@@ -21,9 +21,9 @@
{% endfor %}
From f0b33d5adad682385d43d489138778ee8e1b7f5b Mon Sep 17 00:00:00 2001
From: Dave Protasowski
Date: Thu, 26 Nov 2026 20:37:26 -0500
Subject: [PATCH 3/7] Rewrite Get Started tutorials as single-page tracks
---
.../about-knative-functions.md | 124 ++++++++++++-
.../getting-started/first-service.md | 173 +++++++++++++-----
.../getting-started-eventing.md | 154 +++++++++++++++-
docs/versioned/getting-started/next-steps.md | 80 +++++---
.../getting-started/quickstart-install.md | 81 +++++++-
5 files changed, 531 insertions(+), 81 deletions(-)
diff --git a/docs/versioned/getting-started/about-knative-functions.md b/docs/versioned/getting-started/about-knative-functions.md
index 26dd4e18ca0..724c2802764 100644
--- a/docs/versioned/getting-started/about-knative-functions.md
+++ b/docs/versioned/getting-started/about-knative-functions.md
@@ -3,8 +3,128 @@ audience: developer
components:
- functions
function: tutorial
+hide_prev: true
+hide_next: true
---
-# Knative Functions
+
---8<-- "about-functions.md"
+# Try Functions
+
+Write a Go HTTP function, change its response, and run it locally with `func`.
+No Kubernetes cluster, registry account, Dockerfile, or local Go toolchain is
+required for the local workflow.
+
+
+
+## Prepare
+
+- A running [Docker](https://docs.docker.com/get-started/get-docker/) engine
+ and a Bash-compatible terminal (on Windows, use WSL 2 with Docker integration).
+- Install the standalone `func` CLI:
+
+=== "Homebrew"
+
+ ```bash
+ brew install knative-extensions/kn-plugins/func
+ ```
+
+=== "Release binary"
+
+ Download the binary for your OS and architecture from the
+ [Functions release page](https://github.com/knative/func/releases) (use a
+ Linux binary in WSL 2), make it executable, and place it on your `PATH` as
+ `func`.
+
+Verify `func version` prints a version number. For `kn func` plugin installation,
+see [Installing Knative Functions](../functions/install-func.md).
+
+
+
+## Create and change
+
+1. Create a Go HTTP function in a fresh directory:
+
+ ```bash
+ func create -l go -t http hello-function
+ cd hello-function
+ ```
+
+1. Open `function.go`, find `fmt.Fprintln(res, "OK")` inside `Handle`, and
+ replace it with:
+
+ ```go
+ fmt.Fprintln(res, "Hello from my function!")
+ ```
+
+1. Save the file and leave the rest of the template unchanged (`func.yaml`
+ describes the project; `function_test.go` is a starter test).
+
+
+
+## Run and test
+
+1. Inside `hello-function`, build and run the function locally with buildpacks:
+
+ ```bash
+ func run --builder pack \
+ --image localhost/hello-function:latest
+ ```
+
+ The first build downloads builder images and dependencies and can take
+ several minutes. `localhost/hello-function:latest` is a local image name —
+ nothing is pushed or deployed. Wait for a line like:
+
+ ```text
+ Function running on 127.0.0.1:8080
+ ```
+
+1. Keep that terminal open. In a **second terminal** inside the same
+ `hello-function` directory, invoke the local function:
+
+ ```bash
+ func invoke --target local
+ ```
+
+ The response includes `Hello from my function!`.
+
+1. To iterate, press ++ctrl+c++ in the first terminal, edit the message in
+ `function.go`, and re-run `func run` and `func invoke --target local`.
+
+??? help "If the build exits or invoking fails"
+
+ Read the final build error; the container builder needs a running Docker
+ engine ([Docker documentation](https://docs.docker.com/)) and network access.
+ If invoking cannot find a local function, verify the first terminal is still
+ running and the second terminal is inside `hello-function` (`ls func.yaml`).
+ If stuck, [get help](next-steps.md#get-help) with the error and `func version`.
+
+
+
+## Deploy to Knative (optional)
+
+You have finished the local workflow. To run the same function on Knative, you need:
+
+- A learning cluster — [set up a cluster](quickstart-install.md) if you do not have one, and confirm your [context and `default` namespace](quickstart-install.md#create-and-verify).
+- Access to a container registry (logged in locally) with push permissions and a public image repository so the cluster can pull the image without pull secrets. Never include secrets in the project.
+
+1. From `hello-function`, build, push, and deploy (replace `` with your registry and namespace, for example `ghcr.io/alice` or `docker.io/alice`):
+
+ ```bash
+ func deploy --builder pack \
+ --image /hello-function:latest
+ ```
+
+1. Invoke the remote Service explicitly:
+
+ ```bash
+ func invoke --target remote
+ ```
+
+ The response contains the same message you tested locally. If the Service is not ready, verify the image is publicly pullable and inspect `kn service describe hello-function`.
+
+## Next steps
+
+Stop `func run` with ++ctrl+c++ when finished. Continue with
+[Try Serving](first-service.md), [Try Eventing](getting-started-eventing.md),
+or [Next steps and cleanup](next-steps.md).
diff --git a/docs/versioned/getting-started/first-service.md b/docs/versioned/getting-started/first-service.md
index ec13d8fb3b2..cb0cdff5778 100644
--- a/docs/versioned/getting-started/first-service.md
+++ b/docs/versioned/getting-started/first-service.md
@@ -3,55 +3,142 @@ audience: developer
components:
- serving
function: tutorial
+hide_prev: true
+hide_next: true
---
-# Deploying a Knative Service
+
-In this tutorial, you will deploy a "Hello world" Knative Service that accepts the environment variable `TARGET` and prints `Hello ${TARGET}!`.
+# Try Serving
-=== "kn"
+Deploy a sample HTTP container as a Knative Service, watch it scale to zero,
+and split traffic between two Revisions.
- Deploy the Service by running the command:
+
+
+## Prepare
+
+[Set up a cluster](quickstart-install.md) if you have not already done so, then
+return here with the `kind-knative` context and `default` namespace selected.
+Start with no Service named `hello` in that namespace.
+
+
+
+## Deploy and call
+
+A Knative **Service** manages deployment, autoscaling, and HTTP routing for your
+container, giving it a stable URL.
+
+1. Create the `hello` Service:
```bash
kn service create hello \
- --image ghcr.io/knative/helloworld-go:latest \
- --port 8080 \
- --env TARGET=World
+ --image ghcr.io/knative/helloworld-go:latest \
+ --port 8080 \
+ --env TARGET=World
+ ```
+
+1. Call its URL:
+
+ ```bash
+ SERVICE_URL=$(kn service describe hello -o url)
+ curl "$SERVICE_URL"
+ ```
+
+ Expected response: `Hello World!`
+
+??? help "If the request fails"
+
+ Check your [learning context](quickstart-install.md#create-and-verify), then
+ run `kn service list`. If `hello` is not ready, inspect `kn service describe hello`.
+ If the Service is ready, a DNS error means the `sslip.io` hostname could not
+ be resolved, while a connection error means the cluster gateway on port 80 is
+ unreachable. See the
+ [Serving troubleshooting guide](../serving/troubleshooting/debugging-application-issues.md)
+ or [get help](next-steps.md#get-help).
+
+
+
+## Watch autoscaling
+
+Idle Knative Services scale to zero pods and wake up when the next request arrives.
+
+1. Watch the Service's pods in your first terminal:
+
+ ```bash
+ kubectl get pods --selector serving.knative.dev/service=hello --watch
+ ```
+
+ Stop sending requests. After an idle period (up to a couple of minutes), the pod
+ terminates and disappears. The Service and URL remain.
+
+1. Keep the watch running. In a **second terminal**, send another request:
+
+ ```bash
+ curl "$(kn service describe hello -o url)"
```
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- Service hello created to latest revision 'hello-0001' is available at URL:
- http://hello.default.${LOADBALANCER_IP}.sslip.io
- ```
- The value of `${LOADBALANCER_IP}` above depends on your type of cluster,
- for `kind` it will be `127.0.0.1` for `minikube` depends on the local tunnel.
-
-=== "YAML"
- 1. Copy the following YAML into a file named `hello.yaml`:
-
- ```yaml
- apiVersion: serving.knative.dev/v1
- kind: Service
- metadata:
- name: hello
- spec:
- template:
- spec:
- containers:
- - image: ghcr.io/knative/helloworld-go:latest
- ports:
- - containerPort: 8080
- env:
- - name: TARGET
- value: "World"
- ```
- 1. Deploy the Knative Service by running the command:
-
- ```bash
- kubectl apply -f hello.yaml
- ```
- !!! Success "Expected output"
- ```{ .bash .no-copy }
- service.serving.knative.dev/hello created
- ```
+
+ The request pauses briefly while a new pod starts, then returns `Hello World!`.
+ Press ++ctrl+c++ in the first terminal to stop watching.
+
+
+
+## Create a revision
+
+A **Revision** is an immutable snapshot of a Service's configuration. Changing
+`TARGET` creates a new Revision.
+
+1. Save the current Revision's name in your terminal so you can reference it later:
+
+ ```bash
+ ORIGINAL_REVISION=$(
+ kubectl get kservice hello \
+ -o jsonpath='{.status.latestReadyRevisionName}'
+ )
+ echo "$ORIGINAL_REVISION"
+ ```
+
+1. Update `TARGET` and send all traffic to the new Revision:
+
+ ```bash
+ kn service update hello --env TARGET=Knative --traffic @latest=100
+ curl "$(kn service describe hello -o url)"
+ ```
+
+ The URL stays the same, and the response is now `Hello Knative!`.
+
+??? note "If you lose the saved Revision name"
+
+ Run `kn revision list --service hello`, check `kn revision describe `
+ for `TARGET=World`, and set `ORIGINAL_REVISION=`.
+
+
+
+## Split traffic
+
+Send 50% of traffic to the original Revision and 50% to the latest:
+
+```bash
+kn service update hello --traffic "$ORIGINAL_REVISION=50" --traffic @latest=50
+kn service describe hello
+```
+
+The traffic section should show 50% for each Revision. Send several requests to
+observe both versions:
+
+```bash
+SERVICE_URL=$(kn service describe hello -o url)
+for i in 1 2 3 4 5 6 7 8 9 10; do
+ curl "$SERVICE_URL"
+done
+```
+
+You should see both `Hello World!` and `Hello Knative!` (routing is probabilistic,
+so responses need not alternate). If ten requests show only one response, run the
+loop again and verify the 50/50 split in `kn service describe hello`.
+
+## Next steps
+
+Keep your cluster if you want to try another track. Continue with
+[Try Eventing](getting-started-eventing.md), [Try Functions](about-knative-functions.md),
+or [Next steps and cleanup](next-steps.md).
diff --git a/docs/versioned/getting-started/getting-started-eventing.md b/docs/versioned/getting-started/getting-started-eventing.md
index cfe59e87db7..b6e6809049a 100644
--- a/docs/versioned/getting-started/getting-started-eventing.md
+++ b/docs/versioned/getting-started/getting-started-eventing.md
@@ -3,15 +3,157 @@ audience: developer
components:
- eventing
function: tutorial
+hide_prev: true
+hide_next: true
---
-# Knative Eventing
+
-Knative Eventing provides you with helpful tools that can be used to create event-driven applications, by easily attaching event sources, triggers, and other options to your Knative Services.
+# Try Eventing
-Event-driven applications are designed to detect events as they occur, and process these events by using user-defined, event-handling procedures.
+Send a CloudEvent through a **Broker** and use a **Trigger** to deliver it to a
+consumer (sink). The CloudEvents Player acts as both sender and consumer so you
+can observe delivery without writing code.
-!!! tip
- To find out more about event-driven architecture and Knative Eventing, check out this CNCF Session about [event-driven architecture with Knative events](https://www.cncf.io/online-programs/event-driven-architecture-with-knative-events/){target=blank}
+
-After you install Knative Eventing, you can create, send, and verify events. This tutorial shows how you can use a basic workflow for managing events that uses **Event Sources**, **Brokers**, **Triggers**, and **Sinks**.
+## Prepare
+
+1. [Set up a cluster](quickstart-install.md) if you have not already done so,
+ then return here with the `kind-knative` context and `default` namespace.
+
+1. Confirm that the learning Broker (`example-broker`) is ready:
+
+ ```bash
+ kn broker list
+ ```
+
+ `example-broker` should show `READY=True`. This in-memory Broker is for
+ learning, not production durability.
+
+??? help "If the Broker is missing or not ready"
+
+ Verify your [learning context](quickstart-install.md#create-and-verify),
+ then inspect `kn broker describe example-broker`. If the Broker is missing,
+ Quickstart setup did not finish cleanly.
+
+
+
+## Connect the player
+
+[](images/event_diagram.png){ .diagram-link }
+
+1. Deploy the CloudEvents Player as a Knative Service:
+
+ ```bash
+ kn service create cloudevents-player \
+ --image quay.io/ruben/cloudevents-player:latest
+ ```
+
+1. Create a **SinkBinding** so the player knows to send events to `example-broker`,
+ and wait until it is ready:
+
+ ```bash
+ kn source binding create ce-player-binding \
+ --subject "Service:serving.knative.dev/v1:cloudevents-player" \
+ --sink broker:example-broker
+ kubectl wait sinkbinding/ce-player-binding \
+ --for=condition=Ready --timeout=120s
+ ```
+
+1. Create a **Trigger** that delivers all events from `example-broker` back to
+ `cloudevents-player`, and wait for `READY=True`:
+
+ ```bash
+ kn trigger create cloudevents-trigger \
+ --broker example-broker \
+ --sink cloudevents-player
+ kn trigger list
+ ```
+
+ Connect the consumer before sending an event — a Broker alone does not
+ establish a delivery path.
+
+
+
+## Send and receive
+
+1. Print the player URL and open it in your browser:
+
+ ```bash
+ kn service describe cloudevents-player -o url
+ ```
+
+1. Fill in the **CloudEvent** form (leave Event Subject blank and keep the
+ preset Specversion). A CloudEvent pairs JSON data with standard attributes
+ such as `type` (a label for filtering) and `source` (the producer identifier):
+
+ | Field | Value |
+ | --- | --- |
+ | Event ID | `tutorial-1` (or another unused ID) |
+ | Event Type | `dev.knative.tutorial` |
+ | Event Source | `/tutorial` |
+ | Specversion | `1.0` |
+ | Message | `{"message":"Hello Eventing!"}` |
+
+ Click **SEND EVENT** (Message must be valid JSON).
+
+1. Check the **Activity** table for **two** entries with the same Event ID:
+
+ | Status | Event ID | Event Type |
+ | --- | --- | --- |
+ | Sent — outgoing arrow | `tutorial-1` | `dev.knative.tutorial` |
+ | Received — checkmark | `tutorial-1` | `dev.knative.tutorial` |
+
+ Click the envelope icon in **Message** on the received row and confirm
+ `id`, `type`, and `data.message` (`Hello Eventing!`). A sent row alone is
+ not proof of delivery.
+
+??? help "If you do not see a received event"
+
+ Refresh the browser, then check readiness of all four resources:
+
+ ```bash
+ kn broker list
+ kn service list
+ kn trigger list
+ kubectl get sinkbinding ce-player-binding
+ ```
+
+ Describe any resource that is not ready (`kn broker describe example-broker`,
+ `kn service describe cloudevents-player`, `kn trigger describe cloudevents-trigger`,
+ `kubectl describe sinkbinding ce-player-binding`), or [get help](next-steps.md#get-help).
+ Do not apply the separate example from the advanced
+ [Eventing troubleshooting guide](../eventing/troubleshooting/README.md) just
+ to repeat these checks.
+
+
+
+## Filter events (optional)
+
+Narrow `cloudevents-trigger` so it delivers only events of type
+`dev.knative.tutorial`:
+
+1. Add the type filter and confirm `READY=True`:
+
+ ```bash
+ kn trigger update cloudevents-trigger --filter type=dev.knative.tutorial
+ kn trigger list
+ ```
+
+1. In the player form, send two events with fresh Event IDs:
+ - Type `dev.knative.tutorial` → appears as both **sent** and **received**.
+ - Type `dev.knative.other` → appears only as **sent** (ignored by the Trigger).
+
+1. Remove the filter to restore delivery of all event types, wait for readiness,
+ and confirm a new `dev.knative.other` event is now received:
+
+ ```bash
+ kn trigger update cloudevents-trigger --filter type-
+ ```
+
+## Next steps
+
+Keep your cluster if you want to try another track. Continue with
+[Try Serving](first-service.md), [Try Functions](about-knative-functions.md),
+or [Next steps and cleanup](next-steps.md).
diff --git a/docs/versioned/getting-started/next-steps.md b/docs/versioned/getting-started/next-steps.md
index 7a2e8bfedfe..0eb166cb73a 100644
--- a/docs/versioned/getting-started/next-steps.md
+++ b/docs/versioned/getting-started/next-steps.md
@@ -5,46 +5,80 @@ components:
- serving
- eventing
function: tutorial
+hide_prev: true
+hide_next: true
---
-# Next Steps
+
-This topic provides a list of resources to help you continue your Knative journey.
+# Next steps and cleanup
-[](https://slack.cncf.io/){target=_blank}
+
-## :test_tube: Knative samples
+## Build your own application
-Try out some of the following Knative samples:
+- **Serving:** [deploy your own container](../serving/services/creating-services.md)
+ or [configure a custom domain](../serving/services/custom-domains.md).
+- **Functions:** [build a function image](../functions/building-functions.md)
+ or [deploy your own function](../functions/deploying-functions.md).
+- **Eventing:** [create a Broker](../eventing/brokers/create-broker.md)
+ or [route events using Triggers](../eventing/triggers/README.md).
+- **Platform operations:** [install and manage Knative](../admin/admin-overview.md),
+ or browse [CLI tools](../client/README.md) and API references ([Serving](../serving/reference/serving-api.md),
+ [Eventing](../eventing/reference/eventing-api.md)).
-- [Converting a Kubernetes Service to a Knative Service](../serving/convert-deployment-to-knative-service.md)
-- [Knative Serving code samples](../samples/serving.md)
-- [Knative Eventing and Event source code samples](../samples/eventing.md)
+
-## :page_with_curl: Explore the Knative docs
+## Try Bookstore
-See the following guides for documentation specific to your use case:
+Build the [Bookstore sample application](../bookstore/page-0/welcome-knative-bookstore-tutorial.md)
+to combine Functions, Serving, and Eventing. Its
+[environment setup](../bookstore/page-0.5/environment-setup.md) reuses your
+learning cluster with local port-forwarding. You can also browse
+[code samples](../samples/README.md).
-- [Serving Guide](../serving/README.md)
-- [Eventing Guide](../eventing/README.md)
+
-## :book: Knative books
+## Clean up
-Books to help you understand Knative concepts and get additional examples:
+Keep your learning cluster if you want to try another track. Clean up only the
+resources you created:
-- [Knative in Action](https://www.manning.com/books/knative-in-action)
+??? note "Local Functions"
- ??? question "Want a free digital copy of Knative in Action?"
- VMWare has generously donated access to a free copy of the Knative in Action eBook, [get your copy here!](https://tanzu.vmware.com/content/ebooks/knative-in-action){target=_blank}
+ Press ++ctrl+c++ in the `func run` terminal. Your source files remain on
+ disk. To remove the local tutorial image after stopping the function:
-- [Knative Cookbook](https://www.oreilly.com/library/view/knative-cookbook/9781492061182/)
+ ```bash
+ docker image rm localhost/hello-function:latest
+ ```
-## :globe_with_meridians: Other Knative links
+??? note "Disposable learning cluster"
-Other links to help you get started with Knative:
+ Deleting the `knative` kind cluster removes **all applications and data in
+ that cluster** across every tutorial, without touching other clusters on
+ your machine:
-- [Knative YouTube Channel](https://www.youtube.com/channel/UCq7cipu-A1UHOkZ9fls1N8A)
+ ```bash
+ kind delete cluster --name knative
+ ```
-## :question: Are we missing something?
+ Do not run this against a cluster used for other work. If you have other
+ clusters, switch back to your usual `kubectl` context afterward.
-We'd love to help you along the next step of your Knative journey. If we're missing something on this page that you feel should be here, please [give us feedback](https://forms.gle/Ab44BUBowmnnJsdW9)!
+ If you used the older minikube Quickstart, delete that profile with
+ `minikube delete -p knative`.
+
+??? note "Published image (optional deployment)"
+
+ Deleting the cluster does not remove images pushed to your container
+ registry. Delete the `hello-function` tutorial image from your registry if
+ you no longer need it.
+
+
+
+## Get help
+
+[Join the Knative community](https://knative.dev/community/) and share the
+tutorial page, failing command, and error message. Never share kubeconfig,
+passwords, or access tokens.
diff --git a/docs/versioned/getting-started/quickstart-install.md b/docs/versioned/getting-started/quickstart-install.md
index 7cb5c424301..e2ddcc21975 100644
--- a/docs/versioned/getting-started/quickstart-install.md
+++ b/docs/versioned/getting-started/quickstart-install.md
@@ -5,16 +5,83 @@ components:
- serving
- eventing
function: tutorial
+hide_prev: true
+hide_next: true
---
-# Installing Knative using quickstart
+
-Following this quickstart tutorial provides you with a simplified, local Knative installation by using the Knative `quickstart` plugin.
+# Set up a cluster
---8<-- "quickstart-prereqs.md"
---8<-- "install-kn.md"
---8<-- "quickstart-install.md"
+Create a disposable local `kind` cluster with Knative Serving and Eventing.
+Set this up once for Serving and Eventing; local Functions development does not
+need a cluster. For production clusters, see [Install and Manage](../install/README.md).
-## Next steps
+
-Now that you have installed Knative, you can learn how to deploy your first Knative Service in the next topic in this tutorial.
+## Requirements
+
+- A running [Docker](https://docs.docker.com/get-started/get-docker/) engine.
+- A Bash-compatible terminal (on Windows, use WSL 2 with Docker integration).
+- At least 3 CPUs, 3 GB of RAM, internet access, `curl`, and a free port 80.
+
+
+
+## Install tools
+
+=== "Homebrew"
+
+ ```bash
+ brew install \
+ kind \
+ kubectl \
+ knative/client/kn \
+ knative-extensions/kn-plugins/quickstart
+ ```
+
+=== "Release binaries"
+
+ Download the binary for your OS and architecture (use Linux binaries in
+ WSL 2), make it executable, and place it on your `PATH`. Keep
+ `kn-quickstart` as the plugin filename so `kn` can discover it.
+
+ | Tool | Download | Name |
+ | --- | --- | --- |
+ | kind | [kind installation](https://kind.sigs.k8s.io/docs/user/quick-start/#installation) | `kind` |
+ | kubectl | [kubectl installation](https://kubernetes.io/docs/tasks/tools/#kubectl) | `kubectl` |
+ | Knative CLI | [kn releases](https://github.com/knative/client/releases) | `kn` |
+ | Quickstart plugin | [quickstart releases](https://github.com/knative-extensions/kn-plugin-quickstart/releases) | `kn-quickstart` |
+
+
+
+## Create and verify
+
+Already have the `knative` learning cluster ready? Skip cluster creation and
+verify your context below. Do not recreate or repurpose a cluster used for other
+work.
+
+```bash
+kn quickstart kind
+```
+
+This creates a kind cluster named `knative`, installs Serving and Eventing, and
+creates `example-broker`. Confirm your context and `default` namespace before
+running tutorial commands — do not use a production cluster:
+
+```bash
+kubectl config use-context kind-knative
+kubectl config set-context --current --namespace=default
+kubectl config current-context
+kubectl config view --minify -o jsonpath='{.contexts[0].context.namespace}'; echo
+```
+
+If setup fails, see the [Quickstart documentation](https://github.com/knative-extensions/kn-plugin-quickstart#readme)
+or [get help](next-steps.md#get-help).
+
+
+
+Continue with [Try Serving](first-service.md) (recommended first),
+[Try Eventing](getting-started-eventing.md), or
+[Try Functions](about-knative-functions.md) (jump directly to
+[Deploy to Knative](about-knative-functions.md#deploy-to-knative-optional) if
+you have already created and tested your function locally).
From bacbcfcfc18215ecef7b42537d5fc1169d516799 Mon Sep 17 00:00:00 2001
From: Dave Protasowski
Date: Thu, 26 Nov 2026 20:37:26 -0500
Subject: [PATCH 4/7] Update Bookstore intro and port-forwarding setup
---
.../extra-challenge/extra-challenges.md | 1 +
.../bookstore/page-0.5/environment-setup.md | 306 ++++++------------
.../welcome-knative-bookstore-tutorial.md | 71 ++--
...eventing-and-apache-camel-K-integration.md | 2 +-
4 files changed, 142 insertions(+), 238 deletions(-)
diff --git a/docs/versioned/bookstore/extra-challenge/extra-challenges.md b/docs/versioned/bookstore/extra-challenge/extra-challenges.md
index 606fe155f6c..1fda6d0d12c 100644
--- a/docs/versioned/bookstore/extra-challenge/extra-challenges.md
+++ b/docs/versioned/bookstore/extra-challenge/extra-challenges.md
@@ -5,6 +5,7 @@ components:
- serving
- functions
function: tutorial
+hide_next: true
---
# **Extra Challenges**
diff --git a/docs/versioned/bookstore/page-0.5/environment-setup.md b/docs/versioned/bookstore/page-0.5/environment-setup.md
index e7cd8f4b6f1..80355c060bb 100644
--- a/docs/versioned/bookstore/page-0.5/environment-setup.md
+++ b/docs/versioned/bookstore/page-0.5/environment-setup.md
@@ -8,262 +8,160 @@ function: tutorial
# Environment Setup
-
+Deploy the Bookstore frontend and Book Review backend using the provided images.
+This is a larger application than the introductory tracks. Read the
+[Bookstore introduction](../page-0/welcome-knative-bookstore-tutorial.md) and
+[disclaimer](../disclaimer/disclaimer.md) before beginning.
-In this page, we will be discussing how to set up your environment, and make sure to run up the UI front end and the Book Review Service’s node server.
+## What does the final deliverable for this section look like?
-## **What does the final deliverable for this section look like?**
+- Your disposable Kubernetes cluster has Knative Serving and Eventing ready.
+- The frontend and backend run in the same namespace.
+- You can open the application from your browser using local port-forwarding.
-- You have a running Kubernetes (k8s) cluster on your local machine, with Knative installed.
-- You have your front end application deployed as Kubernetes deployment
-- You have your Node.js application deployed as Kubernetes deployment
+Reuse your Quickstart learning cluster if you kept it. You do not need another
+cluster, a cloud account, or a LoadBalancer helper for the access method on this page.
-We will be fulfilling each requirement with the order above.
+## Clone the Repository
-## **Clone the Repository**
-
+From a directory where you keep projects, clone the repository and enter the
+sample's working directory:
-```sh
+```bash
git clone https://github.com/knative/docs.git
+cd docs/code-samples/eventing/bookstore-sample-app/start
```
-???+ bug "Troubleshooting"
- Having issue with cloning your repo? Check [here](https://docs.github.com/en/repositories/creating-and-managing-repositories/troubleshooting-cloning-errors){:target="_blank"} for help.
-!!! warning
+If you already cloned the repository, use its existing copy and change to that
+same `code-samples/eventing/bookstore-sample-app/start` directory instead.
- **IMPORTANT**: Please take some time to read the [Disclaimer](../disclaimer/README.md){:target="_blank"} before moving to the next page.
+## File Structure
+The sample has two sibling directories:
-## **File Structure**
+- `start`: the working directory for these lessons, containing the frontend,
+ backend, and starter configuration.
+- `solution`: completed examples to consult when you are stuck.
-
+When later lessons say to return to `start`, they mean this directory **inside
+the cloned repository**, not a filesystem directory named `/start`. Run the
+commands below from the `start` directory.
-The code for the sample app is in `docs/code-samples/eventing/bookstore-sample-app`
+## Shortcut
-Under `bookstore-sample-app` folder, there are 2 folders:
+These instructions use the manual steps and local port-forwarding below.
+The optional `setup.sh` script instead reinstalls Knative components and waits
+for real LoadBalancer addresses. Do not use it for this port-forwarding route
+or run it over an existing Quickstart installation.
-* **/solution**: this folder contains all the yaml files, and the code you needed. Check it when you got stuck.
+## Instructions
-* **/start**: this folder contains the necessary files for you to get started. Save there all the configuration files yourself following the tutorial!
+### Task 1: Set Up a Running Kubernetes Cluster with Knative Installed
-
+If needed, [create a learning cluster](../../getting-started/quickstart-install.md),
+then return here. Otherwise keep your existing cluster. Follow the shared guide's
+[context and namespace checks](../../getting-started/quickstart-install.md#create-and-verify)
+so commands use the disposable cluster and its `default` namespace.
-!!! tip
- Kuack suggests you to start from **/start**, write all the configuration files as you go over the tutorial, and check solutions when you got stuck.
+Check the Knative components:
-
-
-Always `cd` back to the root directory, which is `/start`, before running any commands.
-
-All the commands in the tutorial are written **assuming you are in the `/start` directory**.
-
-
-## **Shortcut**
-
-
-
-Running `docs/code-samples/eventing/bookstore-sample-app/start/setup.sh` will automatically complete all tasks in this section.
-
-!!! warning
-
- However, if you are not familiar with the process, we recommend reviewing the steps below.
-
-## **Instructions**
-
-### **Task 1: Set Up a Running Kubernetes Cluster with Knative Installed**
-
-
-
-We recommend using [KinD (Kubernetes in Docker)](https://kind.sigs.k8s.io/docs/user/quick-start/) to run a Kubernetes cluster locally.
-
-In order to access Kubernetes services KinD provides a standalone binary in your host and connects to your cluster and provisions new Load Balancer containers for your Services. It requires privileges to open ports on the system and to connect to the container runtime.
-
-See instructions here: https://kind.sigs.k8s.io/docs/user/loadbalancer/
-
-!!! tip
-
- We recommend you using `kn quickstart` plugin to install Knative.
-
-Please follow the instructions [here](https://knative.dev/docs/install/){:target="_blank"} to spin up your cluster with Knative installed!
-
-???+ success "Verify"
-
- You should see the pods in the `knative-eventing` and `knative-serving` namespaces running before proceeding.
-
- ```
- NAMESPACE NAME READY STATUS RESTARTS AGE
- knative-eventing eventing-controller-645c4bcd55-fln6l 1/1 Running 0 17m
- knative-eventing eventing-webhook-7fd9cb958f-ft9vj 1/1 Running 0 17m
- knative-eventing imc-controller-6b9fbb6487-kwvbz 1/1 Running 0 17m
- knative-eventing imc-dispatcher-6c4b5856d-hh7wq 1/1 Running 0 17m
- knative-eventing job-sink-5cc89b5d95-fhlt5 1/1 Running 0 17m
- knative-eventing mt-broker-controller-568d6b9c59-qk8dj 1/1 Running 0 17m
- knative-eventing mt-broker-filter-db66554c4-sxxzr 1/1 Running 0 17m
- knative-eventing mt-broker-ingress-774547844d-bbbdw 1/1 Running 0 17m
- knative-serving activator-7bcd47489b-ljmt6 1/1 Running 0 17m
- knative-serving autoscaler-65cf6767c4-v7rfn 1/1 Running 0 17m
- knative-serving controller-964dcf97b-9qwsv 1/1 Running 0 17m
- knative-serving net-kourier-controller-854b568d4f-6xhl5 1/1 Running 0 17m
- knative-serving webhook-658b566b8-sxbdz 1/1 Running 0 17m
- kourier-system 3scale-kourier-gateway-54fb555bd7-v2l8q 1/1 Running 0 17m
- kube-system coredns-66bc5c9577-fhnxr 1/1 Running 0 18m
- kube-system coredns-66bc5c9577-x299f 1/1 Running 0 18m
- kube-system etcd-kind-control-plane 1/1 Running 0 18m
- kube-system kindnet-gpq75 1/1 Running 0 18m
- kube-system kube-apiserver-kind-control-plane 1/1 Running 0 18m
- kube-system kube-controller-manager-kind-control-plane 1/1 Running 0 18m
- kube-system kube-proxy-v2kdx 1/1 Running 0 18m
- kube-system kube-scheduler-kind-control-plane 1/1 Running 0 18m
- local-path-storage local-path-provisioner-7b8c8ddbd6-m5n2m 1/1 Running 0 18m
- ```
-
-### **Task 2: Running the Bookstore Web App**
-
-
+```bash
+kubectl get pods -n knative-serving
+kubectl get pods -n knative-eventing
+```
-The Next.js frontend app is located in the `docs/code-samples/eventing/bookstore-sample-app/start/frontend` folder.
+Check that the Serving and Eventing pods are ready before deploying the Bookstore
+application. If these components are missing or not ready, resolve the installation
+first.
-#### **Deploy the Frontend App**
+We will use `kubectl port-forward` to open a temporary connection from your
+computer to a Service. It works with this tutorial's existing cluster and avoids
+adapting another provider's sample cluster or relying on container IP addresses.
+The forwarding command must stay running in its terminal while you use the app.
-You can either [build the image locally](https://docs.docker.com/get-started/02_our_app/){:target="_blank"} or use our pre-built image. If you are using the pre-built image, you can proceed to the next step.
+### Task 2: Running the Bookstore Web App
-When ready, run the following command to deploy the frontend app:
+The frontend and backend use ordinary Kubernetes Deployments and Services,
+not the Knative Service resource used in the Serving track.
-```shell
-kubectl apply -f frontend/config/100-front-end-deployment.yaml
-```
+#### Deploy the Frontend App
-This will create the Deployment and expose it with a Service of type LoadBalancer to receive external traffic:
+Use the pre-built image referenced by the starter configuration:
-```
-deployment.apps/bookstore-frontend created
-service/bookstore-frontend-svc created
+```bash
+kubectl apply -f frontend/config/
+kubectl rollout status deployment/bookstore-frontend
```
-???+ success "Verify"
- Run the following command to check if the pod is running:
-
- ```shell
- kubectl get pods
- ```
-
- You will see that your front end pod is running.
-
- ```
- NAME READY STATUS RESTARTS AGE
- bookstore-frontend-7b879ffb78-9bln6 1/1 Running 0 4m37s
- ```
+The rollout command waits for the frontend to become available. If it reports
+an error, resolve it before opening the browser.
#### Access the frontend workload
-Follow the respective `minikube` or `kind` instructions to access Kubernetes Services locally from your machine.
+In a dedicated terminal, using the same cluster context and namespace, run:
-Check the running Kubernetes Services:
-
-```shell
-kubectl get services
+```bash
+kubectl port-forward service/bookstore-frontend-svc 18080:80
```
-And you will see the following console output:
-```
-NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
-bookstore-frontend-svc LoadBalancer 10.99.187.173 172.18.0.6 80:31600/TCP 27m
-kubernetes ClusterIP 10.96.0.1 443/TCP 39m
-```
-
-!!! note
- If the `EXTERNAL-IP` for your frontend service is ``, then there you'll need to check that
- your `minikube tunnel` or KinD `cloud-provider-kind` is working properly.
-
-???+ success "Verify"
- Access the UI page using the `bookstore-frontend-svc` `EXTERNAL-IP` address. The UI page should appear!
+Leave it running and open **http://127.0.0.1:18080** in your browser. `18080` is
+on your computer; `80` is the Service's port inside the cluster.
- 
+The UI should appear. Its backend connection may be unavailable until you complete
+Task 3. If port `18080` is already in use, choose another free local port and use
+that port in the browser URL; do not stop an unrelated application.
-### **Task 3: Running the Book Review Service**
+The manifest uses a LoadBalancer Service, but its `EXTERNAL-IP` may remain
+`` on a local cluster. That is not a blocker for this port-forwarding
+route. Use the localhost URL above, not a Docker/container IP or an example IP.
-
+### Task 3: Running the Book Review Service
-The Node.js server is located in the `node-server` folder.
+Keep the frontend's port-forward running. Use another terminal for deployment,
+and change back to the sample's `start` directory if necessary.
-#### **Deploy the Book Review Service: Node.js Server**
+#### Deploy the Book Review Service: Node.js Server
-You can either [build the image locally](https://docs.docker.com/get-started/02_our_app/){:target="_blank"} or use our pre-built image. If you are using the pre-built image, you can proceed to the next step.
-
-When ready, run the following command to deploy the Node.js server:
-
-```shell
-kubectl apply -f node-server/config/100-deployment.yaml
-```
-
-This command will pull the image and deploy it to your cluster as a Deployment. It will also expose it as a LoadBalancer to receive external traffic.
-
-```
-deployment.apps/node-server created
-service/node-server-svc created
+```bash
+kubectl apply -f node-server/config/
+kubectl rollout status deployment/node-server
```
-???+ success "Verify"
-
- Run the following command to check if the pod is running:
-
- ```shell
- kubectl get pods
- ```
-
- You will see that your Node.js server (node-server) pod is running.
- ```
- NAME READY STATUS RESTARTS AGE
- bookstore-frontend-7b879ffb78-9bln6 1/1 Running 0 39m
- node-server-68bf98cdf4-skjmh 1/1 Running 0 38m
- ```
-
+This starts the backend. The frontend reaches it using the internal
+`node-server-svc` Service address; no public backend address is needed for the
+frontend to communicate with it.
#### Access the node server backend
-Follow the respective `minikube` or `kind` instructions to access Kubernetes Services locally from your machine.
-
-Check the running Kubernetes Services:
+To check the backend directly, open another terminal and run:
-```shell
-kubectl get services
-```
-And you will see the following console output:
+```bash
+kubectl port-forward service/node-server-svc 18081:80
```
-NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
-bookstore-frontend-svc LoadBalancer 10.99.187.173 172.18.0.6 80:31600/TCP 73m
-kubernetes ClusterIP 10.96.0.1 443/TCP 85m
-node-server-svc LoadBalancer 10.101.90.35 172.18.0.8 80:31792/TCP 73m
-```
-
-!!! note
- If the `EXTERNAL-IP` for your frontend service is ``, then there you'll need to check that
- your `minikube tunnel` or KinD `cloud-provider-kind` is working properly.
-
-???+ success "Verify"
- Access the node server page using the `node-server-svc` `EXTERNAL-IP` address. The UI page should appear!
-
- And in your front end page, you should see the status turns green and say "Connected to node server".
-
- 
-
-## **Troubleshooting**
-If you encounter any issues during the setup process, refer to the troubleshooting section in the documentation or check the logs of your Kubernetes pods for more details.
-???+ bug "Troubleshooting"
- To check the logs, use the following command:
+Open **http://127.0.0.1:18081** to confirm that the backend responds. Then refresh
+the frontend at **http://127.0.0.1:18080** and check its backend-connection status.
+Do not enter the backend's localhost URL into cluster configuration; these
+localhost addresses are only for your browser.
- ```shell
- kubectl logs
- ```
+The backend check's port-forward can be stopped with ++ctrl+c++ afterward.
+Keep the frontend's port-forward running for the following lessons. Neither
+++ctrl+c++ nor closing a forwarding terminal deletes the application's resources.
- Replace `` with the name of the pod you want to check.
+## Troubleshooting
-Secondly, ensure your KinD & minikube tunnels are running in order to access the websites.
+- Check the cluster context and namespace before investigating the application.
+- `kubectl get pods` shows whether the frontend and backend pods are ready.
+- Inspect the relevant application logs with `kubectl logs deployment/bookstore-frontend`
+ or `kubectl logs deployment/node-server`.
+- If the browser loses access, check that the corresponding port-forward terminal
+ is still running and that you are using its local port in the URL.
+- If a command fails, [get help](../../getting-started/next-steps.md#get-help)
+ with its error rather than reinstalling Knative or creating another cluster.
-## **Next Step**
-
+## Next Step
-You have successfully set up the cluster with Knative installed, and running your front end app and node server. You are all set to start learning. Your journey begins from here.
+The frontend and backend are running. Continue using the sample's `start`
+directory and keep the frontend port-forward open:
-[Go to Lesson 1 - Send Review Comment to Broker :fontawesome-solid-paper-plane:](../page-1/send-review-comment-to-broker.md){ .md-button .md-button--primary }
+[Go to Lesson 1: Send Review Comments to the Broker](../page-1/send-review-comment-to-broker.md){ .md-button .md-button--primary }
diff --git a/docs/versioned/bookstore/page-0/welcome-knative-bookstore-tutorial.md b/docs/versioned/bookstore/page-0/welcome-knative-bookstore-tutorial.md
index 32baa4ab100..2c60a3c4afa 100644
--- a/docs/versioned/bookstore/page-0/welcome-knative-bookstore-tutorial.md
+++ b/docs/versioned/bookstore/page-0/welcome-knative-bookstore-tutorial.md
@@ -5,24 +5,24 @@ components:
- functions
- serving
function: tutorial
+hide_prev: true
---
-# Welcome: Knative Bookstore Tutorial
+
-
-
-**Welcome to Knative's End-to-End Sample Application Tutorial!**
-
-- Are you completely new to Knative and unsure where to start?
-- Are you considering converting your application to an event-driven architecture but don't know how?
-- Are you curious to see what Knative can do in real life?
-- Are you new to the cloud computing world and looking to get started with open source?
+# Knative Bookstore tutorial
-!!! success "You found the right place"
+Build a larger sample application that combines Functions, Serving, and Eventing.
+The lessons follow reviews through an event-processing workflow and add the web
+application, processing services, and database around it.
- If any of these resonate with you, you've found the perfect starting point.
+If you are new to Knative, begin with the independent [Get Started tracks](../../README.md)
+first. Bookstore is a follow-on application exercise, not another universal
+introduction, a migration guide, or a production bookstore. You can reuse your
+learning cluster; the [environment setup](../page-0.5/environment-setup.md) describes
+the extra application resources.
-In this tutorial, we will construct an online bookstore application. This interactive guide, suitable for beginners and experienced engineers alike, will take you through the steps of building, deploying, and monitoring an application using Knative's powerful features. For those familiar with the process, concise graphics are available to streamline your learning experience.
+
## **What are we building?**
@@ -36,21 +36,16 @@ As the bookstore owner, you'll receive notifications via Slack each time if a co

-You will learn Event-Driven Architecture (EDA) and how it contrasts with traditional application designs that use microservices and REST APIs. You'll learn:
-
-- **The Fundamentals of EDA**: Explore the core principles of event-driven architecture and how it enhances responsiveness and scalability in applications.
-- **Comparative Insights**: Understand the differences between EDA and traditional architectures, highlighting the benefits and use cases of each.
-- **Practical Application**: Discover how to transition your existing applications to an event-driven model, utilizing the powerful features of Knative Eventing.
+Follow a concrete event-driven application from its producer to its consumers:
-
+- Send review comments to a Broker and route them using Triggers.
+- Connect processing functions in a Sequence to analyze and filter reviews.
+- Store processed reviews and display them in the web application.
+- Explore an external notification integration in the later Slack/Camel K lesson.
-Knative is a powerful framework that operates on top of Kubernetes. This tutorial will guide you through:
-
-- **Setting Up Your Cluster**: You'll start by spinning up your own Kubernetes cluster, which is the foundation for deploying and managing containers.
-- **Exploring Knative**: Gain hands-on experience with key Knative concepts and components.
-- **Some example use cases of Knative**.
-
-By the end of this tutorial, you will not only understand these concepts but also feel comfortable implementing them, empowering you to build robust, scalable event-driven applications with Knative.
+Reuse a ready learning cluster or create one through the shared setup guide.
+The application adds its own frontend, backend, processing services, and database;
+the introductory tracks do not create those resources for you.
## **Bookstore Architecture**
@@ -80,7 +75,8 @@ There are 2 Machine learning workflows that can conduct sentiment analysis on us
### Book Store Broker
-It acts as the central brain of our event-driven architecture. It connects all the microservices together, receives the event, and makes sure all the events are safely delivered to the correct destination.
+It receives review events and routes them to the consumers selected by its Triggers.
+This learning example does not establish production durability or delivery guarantees.
### Bad Word Broker
@@ -91,7 +87,7 @@ It acts as the bridge between the book store Broker and the Slack Sink, so we ca
We will be building the sample app in this order:
-0. [**Environment Setup**](../page-0.5/environment-setup.md){:target="_blank"}: Set up the environment for the tutorial. This includes installing the cluster, the frontend and the backend.
+0. [**Environment Setup**](../page-0.5/environment-setup.md): Reuse or create a learning cluster, then deploy the frontend and backend and open the local browser connection.
1. [**Send comments to the Broker**](../page-1/send-review-comment-to-broker.md){:target="_blank"}: Pass reviews from the frontend to event-display via the Broker. This involves learning about Broker, SinkBinding and CloudEvents event types.
@@ -107,30 +103,39 @@ We will be building the sample app in this order:
7. [**Connect with External Services/API**](../page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md){:target="_blank"}: Learn how to connect your application with external services and APIs using Knative Eventing and Apache Camel K integrations.
-8. [**Extra Challenges**](../extra-challenge/README.md){:target="_blank"}: Additional challenges to test your understanding of the concepts learned in the tutorial.
+8. [**Extra Challenges**](../extra-challenge/extra-challenges.md){:target="_blank"}: Additional challenges to test your understanding of the concepts learned in the tutorial.
## **How to properly learn?**
-### Preview the Final Bookstore: 1-Minute Demo Video
+
-To help you visualize what you'll be creating, we've prepared a brief demo video. This two-minute preview showcases the final bookstore application, providing a clearer understanding of what you can expect to build.
+### Preview the final application
+
+Watch the demo to see the application you will build.
???+ bug "Video not working above?"
If the video is not working, you can watch it [here](https://www.youtube.com/watch?v=5D8pTcQSacw&ab_channel=Knative){:target="_blank"}.
-### Step-by-Step Guidance for Beginners
+
+
+### Follow the application sequence

-This tutorial is meticulously structured to be beginner-friendly, featuring detailed, step-by-step instructions for building the sample app. Simply follow the sequence we've laid out: each section builds upon the previous, guiding you through the construction of the application. Should you encounter any hurdles, the Knative community is a fantastic resource for support. Don't hesitate to ask questions and seek advice. Check the [Help](#help) section below!
+Unlike the independent Get Started tracks, these lessons build on one application.
+Follow them in order and keep the frontend's port-forward running while you use
+the browser UI. See [Help](#help) if a step fails rather than creating another
+cluster or restarting from an unrelated introductory tutorial.
### Accelerated Learning Path for Advanced Users

-If you find the tutorial too basic, or if it covers familiar territory, feel free to adjust your learning approach. Each section of the tutorial is accompanied by concise graphics that summarize key concepts. Advanced learners can choose to focus on these graphics to grasp the essentials faster, streamlining the learning experience without sacrificing depth or understanding.
+If you already know the components, use the diagrams to orient yourself. Before
+jumping to a later lesson, check that the resources created by its earlier steps
+already exist; the later lessons are not independent setup paths.
## **Help**
diff --git a/docs/versioned/bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md b/docs/versioned/bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md
index f0a47892d8b..36b06588a76 100644
--- a/docs/versioned/bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md
+++ b/docs/versioned/bookstore/page-7/slack-sink-learning-knative-eventing-and-apache-camel-K-integration.md
@@ -439,4 +439,4 @@ Congratulations on successfully completing the bookstore sample app tutorial! If
We've prepared additional challenges that build on top of the existing bookstore app for you to tackle. Some solutions are provided, while others are left open to encourage you to explore your own solutions.
-[Go to Extra Challenges :fontawesome-solid-paper-plane:](../extra-challenge/README.md){ .md-button .md-button--primary }
+[Go to Extra Challenges :fontawesome-solid-paper-plane:](../extra-challenge/extra-challenges.md){ .md-button .md-button--primary }
From ae65d9b791bfb4e0f0b28e34df8fde897283a309 Mon Sep 17 00:00:00 2001
From: Dave Protasowski
Date: Thu, 26 Nov 2026 20:37:26 -0500
Subject: [PATCH 5/7] Align component guides, CLI docs, and snippets with Get
Started
---
docs/snippets/about-functions.md | 2 +-
docs/snippets/install-func-CLI.md | 17 ---
docs/snippets/install-kn.md | 18 +--
docs/snippets/proc-deploying-function.md | 12 +-
docs/versioned/client/README.md | 13 +-
docs/versioned/client/install-kn.md | 9 +-
docs/versioned/eventing/README.md | 6 +
.../eventing/brokers/create-broker.md | 16 ++-
docs/versioned/eventing/triggers/README.md | 56 ++++++--
docs/versioned/functions/README.md | 7 +-
.../versioned/functions/building-functions.md | 120 +++++++++++++++---
.../functions/deploying-functions.md | 20 ++-
docs/versioned/install/README.md | 4 +
docs/versioned/serving/README.md | 7 +-
.../serving/config-network-adapters.md | 2 +-
docs/versioned/serving/services/README.md | 11 +-
.../serving/services/creating-services.md | 29 ++++-
.../serving/services/custom-domains.md | 77 +++++++++--
.../custom-tls-certificate-domain-mapping.md | 102 +++++++++------
.../debugging-application-issues.md | 63 ++++++---
20 files changed, 441 insertions(+), 150 deletions(-)
diff --git a/docs/snippets/about-functions.md b/docs/snippets/about-functions.md
index 620e20e9964..3ac67b05f77 100644
--- a/docs/snippets/about-functions.md
+++ b/docs/snippets/about-functions.md
@@ -6,6 +6,6 @@ Knative Functions provides a simple programming model for using functions on Kna
Knative Functions enables you to easily create, build, and deploy [stateless](https://www.techtarget.com/whatis/definition/stateless-app){target=_blank}, [event-driven](https://en.wikipedia.org/wiki/Event-driven_programming){target=_blank} functions as Knative Services by using the `func` CLI.
-When you build or run a function, an [Open Container Initiative (OCI) format](https://opencontainers.org/about/overview/){target=_blank} container image is generated automatically for you, and is stored in a container registry. Each time you update your code and then run or deploy it, the container image is also updated.
+Functions can be packaged as [Open Container Initiative (OCI) images](https://opencontainers.org/about/overview/){target=_blank} 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.
diff --git a/docs/snippets/install-func-CLI.md b/docs/snippets/install-func-CLI.md
index db5b386b987..ebd4598e9f9 100644
--- a/docs/snippets/install-func-CLI.md
+++ b/docs/snippets/install-func-CLI.md
@@ -72,20 +72,3 @@
```bash
func version
```
-
-=== "Container image"
-
- Run `func` from a container image. For example:
-
- ```bash
- docker run --rm -it ghcr.io/knative/func/func create -l node -t http myfunc
- ```
-
- Links to images are available here:
-
- - [Latest release](https://gcr.io/knative-releases/knative.dev/client/cmd/kn){target=_blank}
-
- !!! note
- Running `func` from a container image does not place the binary on a permanent path. This procedure must be repeated each time you want to use `func`.
-
-
diff --git a/docs/snippets/install-kn.md b/docs/snippets/install-kn.md
index a481a78c3a1..969fb79e562 100644
--- a/docs/snippets/install-kn.md
+++ b/docs/snippets/install-kn.md
@@ -10,6 +10,9 @@ The Knative CLI (`kn`) provides a quick and easy interface for creating Knative
The `kn` CLI also simplifies completion of otherwise complex procedures such as autoscaling and traffic splitting.
+Install `kn` on your local machine so you can run it directly and use plugins
+such as `quickstart`.
+
=== "Using Homebrew"
Do one of the following:
@@ -73,18 +76,3 @@ The `kn` CLI also simplifies completion of otherwise complex procedures such as
```bash
kn version
```
-
-=== "Using a container image"
-
- Links to images are available here:
-
- - [Latest release](https://gcr.io/knative-releases/knative.dev/client/cmd/kn){target=_blank}
-
- You can run `kn` from a container image. For example:
-
- ```bash
- docker run --rm -v "$HOME/.kube/config:/root/.kube/config" gcr.io/knative-releases/knative.dev/client/cmd/kn:latest service list
- ```
-
- !!! note
- Running `kn` from a container image does not place the binary on a permanent path. This procedure must be repeated each time you want to use `kn`.
diff --git a/docs/snippets/proc-deploying-function.md b/docs/snippets/proc-deploying-function.md
index 74943a0b0e6..b91cf4ef548 100644
--- a/docs/snippets/proc-deploying-function.md
+++ b/docs/snippets/proc-deploying-function.md
@@ -56,21 +56,25 @@ The `deploy` command uses the function project name as the Knative Service name.
**Note:** Using environment variables is more secure than the `--password` flag because command-line arguments are visible to all users on the system via `ps`.
-You can verify that your function has been successfully deployed by using the `invoke` command and observing the output:
+Verify the deployed function with an explicit `remote` target, even if a local
+function is also running. The response should contain your function's expected
+output; deployment readiness alone does not prove you called the remote instance:
=== "func"
```bash
- func invoke
+ func invoke --target remote
```
=== "kn func"
```bash
- kn func invoke
+ kn func invoke --target remote
```
-!!! Success "Expected output"
+The response format varies by template. For example:
+
+!!! Success "Example response"
```{ .bash .no-copy }
Received response
POST / HTTP/1.1 hello.default.127.0.0.1.sslip.io
diff --git a/docs/versioned/client/README.md b/docs/versioned/client/README.md
index 1c37f3fb51e..c05df275eea 100755
--- a/docs/versioned/client/README.md
+++ b/docs/versioned/client/README.md
@@ -22,7 +22,9 @@ See [Install and Set Up `kubectl`](https://kubernetes.io/docs/tasks/tools/instal
`kn` provides a quick and easy interface for creating Knative resources such as services and event sources, without the need to create or modify YAML files directly. `kn` also simplifies completion of otherwise complex procedures such as autoscaling and traffic splitting.
!!! note
- `kn` cannot be used to install Knative components such as Serving or Eventing.
+ The core `kn` commands manage resources on an existing Knative installation.
+ The optional `quickstart` plugin creates a local learning cluster and installs
+ Serving and Eventing for you.
### Additional resources
@@ -50,11 +52,10 @@ Using the `kn` CLI, you can specify the following options to connect to the clus
- `--context`: use this option to specify the name of a context from the existing `kubeconfig` file. Use one of the contexts from the output of `kubectl config get-contexts`.
-You can also specify a config file in the following ways:
-
-- Setting the environment variable `$KUBECONFIG`, and point it to the kubeconfig file.
-
-- Using the `kn` CLI `--config` option, for example, `kn service list --config path/to/config.yaml`. The default config is at `~/.config/kn/config.yaml`.
+The `kn` CLI's `--config` option is different: it selects the
+[kn configuration file](configure-kn.md), such as `~/.config/kn/config.yaml`.
+It does not select Kubernetes cluster credentials. Use `--kubeconfig` or
+`KUBECONFIG` for that.
For more information about `kubeconfig` files, see
[Organizing Cluster Access Using kubeconfig Files](https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig/){target=_blank}.
diff --git a/docs/versioned/client/install-kn.md b/docs/versioned/client/install-kn.md
index 31a97b480c2..0eedf9814fb 100644
--- a/docs/versioned/client/install-kn.md
+++ b/docs/versioned/client/install-kn.md
@@ -13,7 +13,10 @@ There are three CLI tools available for managing Knative:
- Kubernetes CLI - `kubectl`
- Knative CLI - `kn`
-- Knative Operator CLI - `kn`
+- Knative Functions CLI - `func`
+
+The Knative Operator CLI is an optional `kn operator` plugin for platform
+administration; it is not required for the introductory tutorials.
The `kn` CLI makes Knative operations easier, but all functionality is available in `kubectl` CLI provided you want to primarily use YAML representations of resources.
@@ -26,7 +29,7 @@ Install the [Kubernetes CLI (`kubectl`)](https://kubernetes.io/docs/tasks/tools/
### Install kn using the nightly-built binary
!!! warning
- Nightly container images include features which may not be included in the latest Knative release and are not considered to be stable.
+ Nightly binaries include features which may not be included in the latest Knative release and are not considered to be stable.
Nightly-built executable binaries are available for users who want to install the latest pre-release build of `kn`.
@@ -56,7 +59,7 @@ Before you install the Knative Operator CLI Plugin, first install the Knative CL
=== "Linux"
- 1. Download the binary `kn-operator-linux-amd64` for your system from the [release page](https://github.com/knative-extensions/kn-plugin-operator/releases/tag/knative-v1.7.1).
+ 1. Download the binary `kn-operator-linux-amd64` for your system from the [release page](https://github.com/knative-extensions/kn-plugin-operator/releases/latest).
1. Rename the binary to `kn-operator`:
diff --git a/docs/versioned/eventing/README.md b/docs/versioned/eventing/README.md
index a0eaf2324f4..f92ba671a76 100644
--- a/docs/versioned/eventing/README.md
+++ b/docs/versioned/eventing/README.md
@@ -30,4 +30,10 @@ Examples of supported Knative Eventing use cases:
## Next steps
+- Follow [Get started with Eventing](../getting-started/getting-started-eventing.md)
+ to send an event through a Broker and deliver it using a Trigger. This is the
+ same Eventing track linked from Get Started; it links to shared cluster setup.
+- Once you know the basics, try the
+ [Bookstore tutorial](../bookstore/page-0/welcome-knative-bookstore-tutorial.md)
+ to combine the components in a larger application.
- You can install Knative Eventing by using the methods listed on the [installation page](../install/README.md).
diff --git a/docs/versioned/eventing/brokers/create-broker.md b/docs/versioned/eventing/brokers/create-broker.md
index a409c75c636..50de1f8a87e 100644
--- a/docs/versioned/eventing/brokers/create-broker.md
+++ b/docs/versioned/eventing/brokers/create-broker.md
@@ -25,7 +25,9 @@ You can create a Broker by using the `kn` CLI or by applying YAML files using `k
This will create a new Broker of your default Broker class and default Broker configuration (both defined in the `config-br-defaults` ConfigMap).
!!! note
- If you choose not to specify a namespace, the Broker will be created in the current namespace.
+ If you omit the namespace, the Broker is created in the current namespace.
+ Omit the namespace flag in both verification commands too, or explicitly
+ use that same namespace.
!!! note
If you have multiple Broker classes installed in your cluster, you can specify the Broker class via the `--class` parameter, e.g.:
@@ -34,21 +36,25 @@ You can create a Broker by using the `kn` CLI or by applying YAML files using `k
kn broker create -n --class MTChannelBasedBroker
```
- 1. Optional: Verify that the Broker was created by listing existing Brokers:
+ 1. Verify the Broker in the same namespace used for creation:
```bash
- kn broker list
+ kn broker list -n
```
+ Find `` and check that `READY` is `True`. If it is `False`,
+ wait and repeat the check, or inspect its condition messages below.
+
1. Optional: You can also verify the Broker exists by describing the Broker you have created:
```bash
- kn broker describe
+ kn broker describe -n
```
=== "kubectl"
- The YAML in the following example creates a Broker named `default`.
+ Supply the Broker name and namespace in this YAML template, then use those
+ same values in the verification command.
1. Create a Broker by creating a YAML file using the following template:
diff --git a/docs/versioned/eventing/triggers/README.md b/docs/versioned/eventing/triggers/README.md
index d019995f8c9..4230814ad8a 100644
--- a/docs/versioned/eventing/triggers/README.md
+++ b/docs/versioned/eventing/triggers/README.md
@@ -11,8 +11,23 @@ A trigger represents a desire to subscribe to events from a specific broker.
The `subscriber` value must be a [Destination](https://pkg.go.dev/knative.dev/pkg/apis/duck/v1#Destination).
+## Prerequisites
+
+- Knative Eventing is installed and you have a ready Broker in the namespace
+ selected by your `kubectl` context. [Create a Broker](../brokers/create-broker.md)
+ if needed.
+- An event consumer is already running and ready. Use the correct reference kind
+ and API version for a Knative Service or an ordinary Kubernetes Service.
+- Replace the example names with your resources. Here `default` is a **Broker
+ name**, not an instruction to create a Broker or select a namespace. The
+ Quickstart tutorial's Broker is named `example-broker`, so substitute that name
+ if you are reusing it. Replace `my-service` with your consumer's name too.
+
## Example Triggers
+Choose the subscriber form that matches your consumer; these are alternatives,
+not two steps to apply to the same Trigger.
+
The following trigger receives all the events from the `default` broker and
delivers them to the Knative Serving service `my-service`:
@@ -67,6 +82,29 @@ delivers them to the custom path `/my-custom-path` for the Kubernetes service `m
```
Where `` is the name of the file you created in the previous step.
+## Verify the subscription
+
+After applying your chosen example, check the Trigger, substituting its name if
+it differs from `my-service-trigger`:
+
+```bash
+kubectl get trigger my-service-trigger
+```
+
+Its `READY` condition should be `True`. If not, inspect the reported conditions:
+
+```bash
+kubectl describe trigger my-service-trigger
+```
+
+Check the named Broker and consumer before changing the Trigger. To verify
+end-to-end delivery, send a known CloudEvent from your producer to that Broker
+and confirm its Event ID and data at your consumer. A ready Trigger means its
+subscription is configured; it does not prove an event has been delivered.
+
+For a guided example with a sender and observable consumer, see
+[Get started with Eventing](../../getting-started/getting-started-eventing.md).
+
## Trigger filtering
Various forms of filtering based on any number of CloudEvents attributes and extensions
@@ -83,7 +121,7 @@ do not support filtering on the `data` field of CloudEvents.
This example filters events from the `default` broker that are of type
`dev.knative.foo.bar` and have the extension `myextension` which ends
-with `-extensions.
+with `-value`.
1. Create a YAML file using the following example:
@@ -97,7 +135,7 @@ with `-extensions.
filters:
- exact:
type: dev.knative.foo.bar
- suffix:
+ - suffix:
myextension: -value
subscriber:
ref:
@@ -279,8 +317,8 @@ metadata:
spec:
broker: default
filters:
- exact:
- type: dev.knative.a
+ - exact:
+ type: dev.knative.a
filter:
attributes:
type: dev.knative.b
@@ -312,9 +350,9 @@ spec:
attributes:
type: dev.knative.foo.bar
myextension: my-extension-value
- subscriber:
- ref:
- apiVersion: serving.knative.dev/v1
- kind: Service
- name: my-service
+ subscriber:
+ ref:
+ apiVersion: serving.knative.dev/v1
+ kind: Service
+ name: my-service
```
diff --git a/docs/versioned/functions/README.md b/docs/versioned/functions/README.md
index dd869dba76b..70f9fc91d63 100644
--- a/docs/versioned/functions/README.md
+++ b/docs/versioned/functions/README.md
@@ -20,4 +20,9 @@ Functions can be written in any language supported by the available [language pa
## Getting started with functions
-Before you can use Knative Functions, you must have access to a Knative development environment. To set up a development environment, you can follow the [Knative Quickstart tutorial](../getting-started/README.md){target=_blank}.
+Follow [Get started with Functions](../getting-started/about-knative-functions.md)
+to create, change, and test a Go function locally. This is the same Functions
+track linked from Get Started. Cluster deployment is optional and links to the
+shared learning-cluster setup.
+
+For an existing project, use the how-to guides in this section.
diff --git a/docs/versioned/functions/building-functions.md b/docs/versioned/functions/building-functions.md
index 75076b249fa..7bca01c18f9 100644
--- a/docs/versioned/functions/building-functions.md
+++ b/docs/versioned/functions/building-functions.md
@@ -7,46 +7,132 @@ function: how-to
# Building functions
---8<-- "build-func-intro.md"
+Build a container image from an existing function project. The local procedure
+builds only: it does not run, publish, or deploy the function. The optional
+on-cluster workflow below builds **and deploys**, so choose it only when you want
+that result.
## Local builds
-You can build a container image for your function locally without deploying it to a cluster, by using the `build` command.
-
### Prerequisites
-- You have a Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.
+- You have an initialized function project containing `func.yaml` and its source.
+ [Create a project](creating-functions.md) if needed.
+- Docker is running for the container-based buildpacks builder used here.
+- Run these commands from that project directory, not its parent directory.
### Procedure
---8<-- "proc-building-function.md"
+Set an explicit local image name so the build does not need a registry prompt:
-## On-cluster Builds
+=== "func"
+
+ ```bash
+ func build --builder pack \
+ --image localhost/my-function:latest
+ ```
+
+=== "kn func"
-If you do not have a local Docker daemon running, or you are using a CI/CD pipeline, you might want to build your function on the cluster instead of using a local build. You can create an on-cluster build by using the `func deploy --remote` command.
+ ```bash
+ kn func build --builder pack \
+ --image localhost/my-function:latest
+ ```
+
+`my-function` is an example image name; substitute yours consistently if desired.
+`localhost` here is a local tag, not a registry server you must create. Wait for
+building to complete, then check the image in Docker:
+
+```bash
+docker image ls localhost/my-function:latest
+```
+
+A row with the tag `latest` and an image ID identifies the built image. This does
+not mean it was pushed or started. For publishing, see the
+[deployment guide](deploying-functions.md#procedure), which explains registry
+prefixes and full image destinations. [Try Functions](../getting-started/about-knative-functions.md#run-and-test)
+shows how to run and test an image as a separate step. For other builders, image
+naming options, and flags, see the [func build reference](https://github.com/knative/func/blob/main/docs/reference/func_build.md).
+
+## On-cluster Builds
-!!! note
- If you're doing a direct-upload deployment (i.e. the source code is on your local machine instead of a git repo), you can create an on-cluster build without the need of specifying the Git URL, but if you already specified a Git URL before, you'll need to specify the flag as empty, using the command `func deploy --remote --git-url=""`
+This alternative uses a remote pipeline and deploys the resulting function.
+It avoids a local container build, but requires a configured cluster and registry
+credentials. The source can come from Git **or** direct upload; Git is not required
+for the direct-upload branch.
### Prerequisites
-- The function must exist in a Git repository.
-- You must configure your cluster to use Tekton Pipelines. See the [on-cluster build](https://github.com/knative/func/blob/main/docs/building-functions/on_cluster_build.md){target=_blank} documentation.
+- Your kubeconfig selects a cluster with Knative Serving installed.
+- Tekton Pipelines and the function build pipeline are configured according to the
+ [on-cluster build setup guide](https://github.com/knative/func/blob/main/docs/building-functions/on_cluster_build.md).
+- The pipeline can push to your chosen registry, and the cluster can pull the image.
+ Complete the registry/credential setup in that guide rather than assuming local
+ Docker login alone configures every remote pipeline.
+- You have an initialized local function project and are in its directory.
### Procedure
-When running the command for the first time, you must specify the Git URL for the function:
+Choose the source branch below. Replace `REGISTRY-USER` with your Docker Hub
+account namespace in the image name. For Git, separately replace `GIT-OWNER` and
+`GIT-REPO` with the repository owner and name; the Git owner need not match your
+registry account. The explicit image destination avoids carrying over a local-only
+tag from an earlier build.
+
+#### Git-backed source
+
+The function project must be committed in a Git repository the pipeline can read.
+For a private repository, your platform administrator must provision pipeline
+access before you use this branch; the linked function-build setup guide does
+not provide a private-Git authentication recipe. The [Tekton authentication guide](https://tekton.dev/docs/pipelines/auth/)
+is background for that platform setup. If you cannot arrange repository access,
+use direct upload instead.
+
+These commands assume the project is at the repository root. For a subdirectory,
+set `build.source.dir` in your project's `func.yaml` to its relative path, following
+the configuration example in the [on-cluster build guide](https://github.com/knative/func/blob/main/docs/building-functions/on_cluster_build.md).
+For example, `dir: functions/my-function` selects that directory within the Git repository.
+
+=== "func"
+
+ ```bash
+ func deploy --remote \
+ --image docker.io/REGISTRY-USER/my-function:latest \
+ --git-url https://github.com/GIT-OWNER/GIT-REPO
+ ```
+
+=== "kn func"
+
+ ```bash
+ kn func deploy --remote \
+ --image docker.io/REGISTRY-USER/my-function:latest \
+ --git-url https://github.com/GIT-OWNER/GIT-REPO
+ ```
+
+#### Direct-upload source
+
+Use this branch to upload the current local project. No Git repository is required.
+Passing an empty Git URL explicitly clears a previously configured Git source.
+If you previously set `build.source.dir` for a Git subdirectory, remove that `dir`
+entry from `build.source` too so the upload uses the current local project root:
=== "func"
- ```{ .console }
- func deploy --remote --registry --git-url -p hello
+ ```bash
+ func deploy --remote \
+ --image docker.io/REGISTRY-USER/my-function:latest \
+ --git-url=""
```
=== "kn func"
- ```{ .console }
- kn func deploy --remote --registry --git-url -p hello
+ ```bash
+ kn func deploy --remote \
+ --image docker.io/REGISTRY-USER/my-function:latest \
+ --git-url=""
```
-After you have specified the Git URL for your function once, you can omit it in subsequent commands.
+Wait for the pipeline and deployment to finish. Verify the **deployed** function
+using `func invoke --target remote` (or `kn func invoke --target remote`) and
+check your function's expected response. A finished image build alone does not
+prove deployment or invocation succeeded.
diff --git a/docs/versioned/functions/deploying-functions.md b/docs/versioned/functions/deploying-functions.md
index cb11900a3ef..62b578d60db 100644
--- a/docs/versioned/functions/deploying-functions.md
+++ b/docs/versioned/functions/deploying-functions.md
@@ -11,10 +11,28 @@ function: how-to
## Prerequisites
-- You have a Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.
+- You have a Kubernetes cluster with Knative Serving installed, and your kubeconfig
+ selects the intended cluster and namespace. For a disposable environment,
+ [set up a learning cluster](../getting-started/quickstart-install.md) and check
+ its context before returning here. Local Functions development alone does not
+ create a cluster.
+
+- You have a Docker daemon running on your local machine for the container builder.
+ Quickstart uses an existing container engine; it does not install one.
- You have access to a container registry and are able to push images to this registry. Note that some image registries set newly pushed images to private by default. If you are deploying a function for the first time, you may need to ensure that your images are set to public.
## Procedure
+For a first deployment, follow the [worked deployment tutorial](../getting-started/about-knative-functions.md#deploy-to-knative-optional),
+which covers cluster setup, registry login, and the full image name. This is also
+the next step if you are coming from the local Functions track.
+
+In the commands below, `` means the registry **and your account namespace**.
+For example, `docker.io/alice` means Alice's Docker Hub namespace, and
+`ghcr.io/alice` means her GitHub Container Registry namespace. Substitute your own
+account; do not type the angle brackets. The CLI uses that prefix with the
+function's project name to construct the image name. The worked tutorial instead
+uses `--image` to set the complete destination explicitly.
+
--8<-- "proc-deploying-function.md"
diff --git a/docs/versioned/install/README.md b/docs/versioned/install/README.md
index 64388e154d9..cfd8514fedc 100644
--- a/docs/versioned/install/README.md
+++ b/docs/versioned/install/README.md
@@ -31,6 +31,10 @@ Use the following table to determine your installation method. If you just want
Supported platforms are Linux, MacOS, and Windows.
+The [learning-cluster tutorial](../getting-started/quickstart-install.md) uses kind.
+For Minikube, follow the [Quickstart plugin's Minikube instructions](https://github.com/knative-extensions/kn-plugin-quickstart#quickstart-with-minikube),
+including its separate tunnel step.
+
The Knative Operator is a custom controller that extends the Kubernetes API to install Knative components. For more information about YAML-based and installations with the Knative Operator, see [YAML and Knative Operator installations compared](#yaml-and-knative-operator-installations-compared).
Use the following steps to install Knative depending on your installation method:
diff --git a/docs/versioned/serving/README.md b/docs/versioned/serving/README.md
index a4e30ebfd47..fec4107ae78 100644
--- a/docs/versioned/serving/README.md
+++ b/docs/versioned/serving/README.md
@@ -25,9 +25,10 @@ You can install Knative Serving via the methods listed on the [installation page
## Getting Started
-To get started with Serving, check out one of the [hello world](../samples/serving.md)
-sample projects. These projects use the `Service` resource, which manages all
-the details for you.
+Follow [Get started with Serving](../getting-started/first-service.md) to deploy
+and call a service, observe scale-to-zero, and split traffic between revisions.
+This is the same Serving track linked from Get Started, not a separate tutorial.
+It links to the shared learning-cluster setup if you need an environment.
With the `Service` resource, a deployed service will automatically have a
matching route and configuration created. Each time the `Service` is updated, a
diff --git a/docs/versioned/serving/config-network-adapters.md b/docs/versioned/serving/config-network-adapters.md
index 89de0dae987..b7f4a8369a7 100644
--- a/docs/versioned/serving/config-network-adapters.md
+++ b/docs/versioned/serving/config-network-adapters.md
@@ -67,7 +67,7 @@ Review the tabbed content in this section to determine the optimal provider for
style bottom fill:transparent
```
- [Kourier](https://github.com/knative-extensions/net-kourier/blob/main/README.md#deployment), a Knative extension, is a lightweight implementation of the KIngress resource and is suitable for clusters that don't need other ingress features. Kourier is optimal for learning and prototyping, and is installed by the Knative [Quickstart](../getting-started/README.md).
+ [Kourier](https://github.com/knative-extensions/net-kourier/blob/main/README.md#deployment), a Knative extension, is a lightweight implementation of the KIngress resource and is suitable for clusters that don't need other ingress features.
Kourier provides the following additional configuration options:
diff --git a/docs/versioned/serving/services/README.md b/docs/versioned/serving/services/README.md
index 56f4f2c0450..fe05bd9cda9 100755
--- a/docs/versioned/serving/services/README.md
+++ b/docs/versioned/serving/services/README.md
@@ -7,7 +7,10 @@ function: explanation
# Knative Services
-Knative Services are used to deploy an application. To create an application using Knative, you must create a YAML file that defines a Service. This YAML file specifies metadata about the application, points to the hosted image of the app, and allows the Service to be configured.
+Knative Services deploy an application from a container image. You can create or
+update one using YAML with `kubectl` or the `kn` CLI. Both approaches configure
+the same Service resource, including its metadata, image, and application settings.
+See [Creating a Service](creating-services.md) for the task guide.
Each Service is defined by a Route and a Configuration that have the same name as the service. The Configuration and Route are created by the service controller, and derive their configuration from the configuration of the Service.
@@ -15,7 +18,11 @@ Each time the configuration is updated, a new Revision is created. Revisions are
## Modifying Knative services
-Any changes to specifications, metadata labels, or metadata annotations for a Service must be copied to the Route and Configuration owned by that Service. The `serving.knative.dev/service` label on the Route and Configuration must also be set to the name of the Service. Any additional labels or annotations on the Route and Configuration not specified earlier must be removed.
+The **Service controller** reconciles changes to the Service into the Route and
+Configuration it owns, including propagated labels and annotations. It also sets
+`serving.knative.dev/service` to identify their owning Service. These are controller
+responsibilities, not extra manual steps: configure the Service rather than copying
+its changes into the generated Route and Configuration yourself.
The Service updates its `status` fields based on the corresponding `status` value for the owned Route and Configuration.
The Service must include conditions of `RoutesReady` and `ConfigurationsReady` in addition to the generic `Ready` condition. Other conditions can also be present.
diff --git a/docs/versioned/serving/services/creating-services.md b/docs/versioned/serving/services/creating-services.md
index 3e09d183d85..1aebe3e68c6 100644
--- a/docs/versioned/serving/services/creating-services.md
+++ b/docs/versioned/serving/services/creating-services.md
@@ -14,7 +14,12 @@ You can create a Knative service by applying a YAML file or using the `kn servic
To create a Knative service, you will need:
* A Kubernetes cluster with Knative Serving installed. For more information, see [Installing Knative Serving](../../install/yaml-install/serving/install-serving-with-yaml.md).
-* Optional: To use the `kn service create` command, you must [install the `kn` CLI](../../client/configure-kn.md).
+* Optional: To use the `kn service create` command, you must [install the `kn` CLI](../../client/install-kn.md).
+
+Select the intended cluster and namespace before starting. Both creation
+alternatives and the checks below use your currently selected namespace; the
+YAML deliberately omits a hard-coded namespace. If you use an explicit namespace
+flag instead, use the same namespace for creation and every verification command.
## Procedure
@@ -33,7 +38,6 @@ Create a sample service:
kind: Service
metadata:
name: helloworld-go
- namespace: default
spec:
template:
spec:
@@ -62,3 +66,24 @@ After the service has been created, Knative performs the following tasks:
* Creates a new immutable revision for this version of the app.
* Performs network programming to create a route, ingress, service, and load balancer for your app.
* Automatically scales your pods up and down based on traffic, including to zero active pods.
+
+## Verify readiness and access
+
+Wait for the Service to be ready, replacing `helloworld-go` if you used another name:
+
+```bash
+kubectl wait kservice/helloworld-go --for=condition=Ready --timeout=120s
+```
+
+Read its URL and send a request:
+
+```bash
+SERVICE_URL=$(kubectl get kservice helloworld-go -o jsonpath='{.status.url}')
+curl "$SERVICE_URL"
+```
+
+For your own image, check that the response matches your application's behavior.
+A ready resource means Knative configured the Service; the request also checks
+that you can reach it from your environment. If either step fails, inspect
+`kubectl describe kservice helloworld-go` and use the
+[Serving troubleshooting guide](../troubleshooting/debugging-application-issues.md).
diff --git a/docs/versioned/serving/services/custom-domains.md b/docs/versioned/serving/services/custom-domains.md
index f5630f9d83a..9735cd66311 100644
--- a/docs/versioned/serving/services/custom-domains.md
+++ b/docs/versioned/serving/services/custom-domains.md
@@ -28,9 +28,32 @@ serve a Knative Service at this domain.
## Prerequisites
- You must have access to a Kubernetes cluster, with Knative Serving and an Ingress implementation installed. For more information, see the [Serving Installation documentation](../../install/yaml-install/serving/install-serving-with-yaml.md).
-- You must have the domain mapping feature enabled on your cluster.
+- The DomainMapping API and controller must be installed. They are included in
+ the standard Serving core installation.
+- You need permission to create a ClusterDomainClaim, or an administrator must
+ delegate the chosen domain to your namespace.
- You must have access to [a Knative service](creating-services.md) that you can map a domain to.
-- You must own or have access to a domain name to map, and be able to change the domain DNS to point to your Knative cluster by using the tools provided by your domain registrar.
+- For public access, you control the domain and its DNS, and your Serving networking
+ gateway has an address reachable by your callers. Use the **networking gateway's**
+ public IP or hostname, not the Kubernetes API endpoint, a pod IP, or an arbitrary
+ cluster address. See [networking gateway checks](../troubleshooting/debugging-application-issues.md#check-ingress-status)
+ for the installed adapter.
+
+For a standard installation, check the API and controller:
+
+```bash
+kubectl get crd domainmappings.serving.knative.dev
+kubectl rollout status deployment/controller -n knative-serving
+```
+
+If either is missing, follow the Serving installation guide or ask your platform
+administrator; do not guess at a feature flag. Controller and namespace names may
+differ in a customized installation.
+
+The default kind Quickstart is local-only: its gateway is exposed on your machine,
+not at a public cloud address. For a local test you can use the reserved domain
+`example.test` and the explicit localhost request below; no public DNS change is
+needed. Do not publish a DNS record pointing your real domain to `127.0.0.1`.
## Procedure
@@ -83,15 +106,14 @@ DomainMappings in that namespace to use the domain name.
name:
kind: Service
apiVersion: serving.knative.dev/v1
- tls:
- secretName:
```
Where:
- `` is the domain name that you want to map a Service to.
- `` is the namespace that contains both the `DomainMapping` and `Service` objects.
- `` is the name of the Service that is mapped to the domain.
- - `` is the name of a Secret that holds the server certificate for TLS communication. If this optional `tls:` section is provided, the protocol is switched from HTTP to HTTPS.
+ This basic example uses HTTP. To add HTTPS with a certificate Secret,
+ follow [Using a custom TLS certificate for DomainMapping](custom-tls-certificate-domain-mapping.md).
!!! tip
You can also map to other targets as long as they conform to the Addressable contract and their resolved URL is of the form `..`, where `` and `` are the name and namespace of a Kubernetes Service, and ``is the cluster domain.
@@ -108,7 +130,7 @@ DomainMappings in that namespace to use the domain name.
Run the command:
```bash
- kn domain create --ref --tls --namespace
+ kn domain create --ref --namespace
```
Where:
@@ -121,7 +143,9 @@ DomainMappings in that namespace to use the domain name.
Examples:
- `mysvc` maps to a Service `mysvc` in the same namespace as this mapping.
- `kroute:myroute:othernamespace` maps to a Route `myroute` in namespace `othernamespace`.
- - `` is optional and if provided enables the TLS protocol. The value specifies the secret that holds the server certificate.
+ - To enable HTTPS, add `--tls ` with an existing certificate
+ Secret and follow the [TLS guide](custom-tls-certificate-domain-mapping.md).
+ It is not required for the HTTP example.
- `` is the namespace where you want to create the DomainMapping. By default the DomainMapping is created in the current namespace.
!!! note
@@ -129,5 +153,40 @@ DomainMappings in that namespace to use the domain name.
command to list, describe, update, and delete existing DomainMappings.
For more information about the command, run `kn domain --help`.
-1. Point the domain name to the IP address of your Knative cluster. Details of this step differ
-depending on your domain registrar.
+1. Choose how callers will reach the domain:
+
+ - **Public access:** create a DNS record for the **exact hostname** used as the
+ DomainMapping name. Use an A record for your gateway's public IPv4 address
+ or an AAAA record for its public IPv6 address. If your provider gives the
+ gateway a hostname instead, follow your DNS provider's CNAME/alias rules.
+ This is a single-domain record, not a wildcard for the cluster's default
+ domain suffix. You do **not** need to patch `config-domain` just to use
+ this DomainMapping. DNS may take time to propagate.
+ - **Local kind Quickstart:** do not change public DNS. Create the mapping using
+ `example.test` (or your chosen test domain) and use the localhost request below.
+
+## Verify the mapping and request
+
+Substitute the same domain name and namespace used when creating the DomainMapping:
+
+```bash
+kubectl wait domainmapping/ \
+ --namespace --for=condition=Ready --timeout=120s
+```
+
+If it is not ready, inspect `kubectl describe domainmapping --namespace `
+and check the reported claim, target-Service, and ingress conditions.
+
+For a public HTTP mapping, request `http://` from an environment that
+can reach the gateway; use `https://` if you configured TLS. Confirm your
+application's expected response, not just that the resource exists.
+
+For the default local kind Quickstart with a mapping named `example.test`, use:
+
+```bash
+curl --resolve example.test:80:127.0.0.1 http://example.test
+```
+
+Substitute your test domain in both places if different. This sends the domain's
+HTTP Host header to the gateway on your machine without requiring DNS resolution.
+It verifies a local route only, not public reachability or production TLS.
diff --git a/docs/versioned/serving/services/custom-tls-certificate-domain-mapping.md b/docs/versioned/serving/services/custom-tls-certificate-domain-mapping.md
index d74164c9b07..2ed9cea0ed9 100644
--- a/docs/versioned/serving/services/custom-tls-certificate-domain-mapping.md
+++ b/docs/versioned/serving/services/custom-tls-certificate-domain-mapping.md
@@ -9,63 +9,93 @@ function: how-to
{{ feature(beta="0.24") }}
-By providing the reference to an existing _TLS Certificate_ you can instruct a `DomainMapping` to use that
-certificate to secure the mapped service.
-Please note that for Services using this feature, the automatic certificate creation using
-[external-domain-tls](../encryption/external-domain-tls.md) is skipped.
+Provide a certificate Secret to an existing DomainMapping to serve its mapped
+hostname over HTTPS. Supplying this certificate bypasses automatic certificate
+creation for that mapping through [external-domain TLS](../encryption/external-domain-tls.md).
## Prerequisites
-- You have followed the steps from [Configuring custom domains](custom-domains.md) and now have a working `DomainMapping`.
-- You must have a TLS certificate from your Certificate Authority provider or a self-signed certificate.
+- You have a working [DomainMapping](custom-domains.md). Keep its domain name and
+ **mapping namespace** for every command below.
+- You can create a TLS Secret in that namespace and update the mapping. The Secret
+ must be in the **DomainMapping's namespace**, even if its target is elsewhere.
+- You have a matching certificate and private key. The certificate must cover the
+ mapped hostname; callers must trust its issuing Certificate Authority.
+- Your networking gateway has an HTTPS endpoint reachable by your callers.
+ The default kind Quickstart's local HTTP test does not by itself expose an HTTPS
+ endpoint. Prepare HTTPS access through your [networking layer](../../install/yaml-install/serving/install-serving-with-yaml.md#install-a-networking-layer)
+ before using this optional TLS procedure.
## Procedure
-1. Assuming you have obtained the `cert` and `key` files from your Certificate Authority provider or have self-signed certificate, create a plain Kubernetes [TLS Secret](https://kubernetes.io/docs/concepts/configuration/secret/#tls-secrets) by running the command:
+Replace the placeholders with the same domain and namespace used by your existing
+mapping. Replace certificate/key paths with your actual files. Do not commit or
+share the private key.
+
+1. Create the [TLS Secret](https://kubernetes.io/docs/concepts/configuration/secret/#tls-secrets)
+ in the mapping's namespace:
+
+ ```bash
+ kubectl create secret tls \
+ --namespace \
+ --cert=path/to/certificate --key=path/to/private-key
+ ```
+
+1. Set the mapping's certificate reference. This patch changes only the TLS
+ setting and retains the existing target reference and other configuration:
- Use kubectl to create the secret:
```bash
- kubectl create secret tls --cert=path/to/cert/file --key=path/to/key/file
+ kubectl patch domainmapping \
+ --namespace --type merge \
+ --patch '{"spec":{"tls":{"secretName":""}}}'
```
- Where `` is the name of the secret object being created.
-1. Update your `DomainMapping` YAML file to use the newly created secret as follows:
+ If you maintain the mapping as a YAML manifest, use that method **instead**:
+ add this `tls` block alongside the existing `spec.ref` without replacing it:
```yaml
- apiVersion: serving.knative.dev/v1beta1
- kind: DomainMapping
- metadata:
- name:
- namespace:
spec:
- ref:
- name:
- kind: Service
- apiVersion: serving.knative.dev/v1
- # tls block specifies the secret to be used
+ # Keep the existing ref and other settings here.
tls:
secretName:
```
- Where:
- - `` is the name of the TLS secret created in the previous step.
- - `` is the domain name that you want to map a Service to.
- - `` is the namespace that contains both the `DomainMapping` and `Service` objects.
- - `` is the name of the Service that will be mapped to the domain.
+ Apply the edited manifest explicitly:
-1. Verify the `DomainMapping` status:
-
- 1. Check the status by running the command:
```bash
- kubectl get domainmapping
- ```
- The `URL` column of the status should show the mapped domain with the scheme updated to `https`:
+ kubectl apply -f .yaml --namespace
```
- NAME URL READY REASON
- https:// True
+
+1. Verify the update in the same namespace:
+
+ ```bash
+ kubectl wait domainmapping/ \
+ --namespace --for=condition=Ready --timeout=120s
+ kubectl get domainmapping --namespace
```
- 1. If the Service is exposed publicly, verify that it is available by running:
+
+ `READY` should be `True`, and `URL` should use `https://`. If not, inspect
+ `kubectl describe domainmapping --namespace ` for
+ certificate, claim, or ingress errors. Do not share Secret contents when
+ asking for help.
+
+1. From a client that can resolve the mapped hostname and reach its HTTPS gateway,
+ request your application:
+
```bash
curl https://
```
- If the certificate is self-signed skip verification by adding the `-k` flag to the curl command.
+
+ Confirm the application's expected response. Readiness alone does not prove
+ external reachability or that your client trusts the certificate.
+
+ For a private test CA or self-signed test certificate, explicitly supply the
+ trusted CA certificate rather than disabling certificate checks:
+
+ ```bash
+ curl --cacert path/to/trusted-ca-certificate https://
+ ```
+
+TLS protects the connection; it does not add application authorization. The
+certificate Secret and DomainMapping remain in the cluster until you remove them
+or delete the disposable cluster that contains them.
diff --git a/docs/versioned/serving/troubleshooting/debugging-application-issues.md b/docs/versioned/serving/troubleshooting/debugging-application-issues.md
index eccba931948..7bb4dd90c41 100644
--- a/docs/versioned/serving/troubleshooting/debugging-application-issues.md
+++ b/docs/versioned/serving/troubleshooting/debugging-application-issues.md
@@ -7,7 +7,10 @@ function: how-to
# Debugging application issues
-If you have deployed an application but are having issues, you can use the following steps to troubleshoot the application.
+If you have deployed a Serving application but are having issues, use these checks.
+Choose the networking checks for your installed adapter: the introductory
+Quickstart uses **Kourier**, not Istio. Missing Istio resources are therefore
+expected in that environment.
## Check terminal output
@@ -41,7 +44,9 @@ The `conditions` in `status` provide the reason if there is any failure. For
details, see Knative
[Error Conditions and Reporting](https://github.com/knative/specs/blob/main/specs/serving/knative-api-specification-1.0.md#error-signalling).
-### Check Ingress/Istio routing
+
+
+### Check Knative Ingress readiness
To list all Ingress resources and their corresponding labels, run the following command:
@@ -68,8 +73,12 @@ particularly, look at the `status:` section. If the Ingress is working
correctly, we should see the condition with `type=Ready` to have `status=True`.
Otherwise, there will be error messages.
-Now, if Ingress shows status `Ready`, there must be a corresponding
-VirtualService. Run the following command:
+#### If using Istio
+
+Only use these VirtualService checks with the Istio networking adapter. Kourier
+users should skip them and check the [networking gateway](#check-ingress-status).
+
+With Istio, a ready Ingress should have a corresponding VirtualService. Run:
```bash
kubectl get virtualservice -l networking.internal.knative.dev/ingress= -n --output yaml
@@ -84,24 +93,40 @@ If you are familiar with Istio and `istioctl`, you may try using `istioctl` to
look deeper using Istio
[guide](https://istio.io/help/ops/traffic-management/proxy-cmd/).
-### Check Ingress status
+
-Knative uses a LoadBalancer service called `istio-ingressgateway` Service.
+### Check the networking gateway
-To check the IP address of your Ingress, use
+=== "Kourier"
-```bash
-kubectl get svc -n istio-system istio-ingressgateway
-```
+ For the standard Kourier installation, inspect its gateway resources:
-If there is no external IP address, use
+ ```bash
+ kubectl get services,pods -n kourier-system
+ ```
-```bash
-kubectl describe svc istio-ingressgateway -n istio-system
-```
+ Check that the gateway pods are ready and that its Service exposes the expected
+ ports. The kind Quickstart adds `kourier-ingress` as a NodePort Service and
+ forwards host port 80 to it. It does not need a cloud LoadBalancer address;
+ a pending address on a separate LoadBalancer Service is not by itself a
+ failure of that local route. Other installations may use a LoadBalancer or
+ different Service/namespace names.
+
+=== "Istio"
+
+ The standard Istio installation uses the `istio-ingressgateway` Service:
+
+ ```bash
+ kubectl get svc -n istio-system istio-ingressgateway
+ ```
+
+ If it should have an external IP address but none was provisioned, inspect it:
+
+ ```bash
+ kubectl describe svc istio-ingressgateway -n istio-system
+ ```
-to see a reason why IP addresses weren't provisioned. Most likely it is due to a
-quota issue.
+ Check the reported events and your platform's LoadBalancer provisioning.
## Check Revision status
@@ -134,7 +159,7 @@ conditions:
If you see this condition, check the following to continue debugging:
- [Check Pod status](#check-pod-status)
-- [Check Istio routing](#check-ingressistio-routing)
+- [Check the networking gateway](#check-ingress-status), using your installed adapter
!!! tip
If you see other conditions, you can look up the meaning of the conditions in Knative [Error Conditions and Reporting](https://github.com/knative/serving/blob/main/docs/spec/errors.md). An alternative is to [check Pod status](#check-pod-status).
@@ -147,7 +172,9 @@ To get the `Pod`s for all your deployments:
kubectl get pods
```
-This command should list all `Pod`s with brief status. For example:
+This command lists `Pod`s with brief status. A Knative Service that has scaled to
+zero may currently have no application pods; send a request to distinguish normal
+scale-to-zero from a failure to start. For example:
```text
NAME READY STATUS RESTARTS AGE
From 26fbbf10fa359c56bc5e5e8b953e4e7539d8abfa Mon Sep 17 00:00:00 2001
From: Dave Protasowski
Date: Fri, 27 Nov 2026 21:32:22 -0500
Subject: [PATCH 6/7] Consolidate Functions navigation and add redirects for
retired pages
---
config/redirects.yml | 4 ++++
docs/versioned/.nav.yml | 14 +++++---------
docs/versioned/client/README.md | 2 +-
docs/versioned/functions/creating-functions.md | 10 ----------
docs/versioned/functions/install-func.md | 18 ------------------
docs/versioned/functions/invoking-functions.md | 17 -----------------
docs/versioned/functions/kafka-functions.md | 15 ---------------
.../getting-started/about-knative-functions.md | 2 +-
8 files changed, 11 insertions(+), 71 deletions(-)
delete mode 100644 docs/versioned/functions/creating-functions.md
delete mode 100644 docs/versioned/functions/install-func.md
delete mode 100644 docs/versioned/functions/invoking-functions.md
delete mode 100644 docs/versioned/functions/kafka-functions.md
diff --git a/config/redirects.yml b/config/redirects.yml
index 1a15338fbf6..095e3629643 100644
--- a/config/redirects.yml
+++ b/config/redirects.yml
@@ -240,3 +240,7 @@ plugins:
versioned/getting-started/clean-up.md: versioned/getting-started/next-steps.md#clean-up
versioned/bookstore/disclaimer/README.md: versioned/bookstore/disclaimer/disclaimer.md
versioned/bookstore/extra-challenge/README.md: versioned/bookstore/extra-challenge/extra-challenges.md
+ versioned/functions/install-func.md: versioned/functions/running-functions.md
+ versioned/functions/creating-functions.md: versioned/functions/running-functions.md
+ versioned/functions/invoking-functions.md: versioned/functions/running-functions.md
+ versioned/functions/kafka-functions.md: versioned/functions/subscribing-functions.md
diff --git a/docs/versioned/.nav.yml b/docs/versioned/.nav.yml
index c04631218ba..3c98e91b6d0 100644
--- a/docs/versioned/.nav.yml
+++ b/docs/versioned/.nav.yml
@@ -28,15 +28,11 @@ nav:
###############################################################################
- Functions:
- Overview: functions/README.md
- - Install: functions/install-func.md
- - Create: functions/creating-functions.md
- - Build: functions/building-functions.md
- - Run locally: functions/running-functions.md
- - Deploy: functions/deploying-functions.md
- - Invoke: functions/invoking-functions.md
- - Subscribe to events: functions/subscribing-functions.md
- - Kafka: functions/kafka-functions.md
- - Language packs: functions/language-packs.md
+ - Develop locally: functions/running-functions.md
+ - Build an image: functions/building-functions.md
+ - Deploy a function: functions/deploying-functions.md
+ - Connect events: functions/subscribing-functions.md
+ - Templates and runtimes: functions/language-packs.md
###############################################################################
# Serving
###############################################################################
diff --git a/docs/versioned/client/README.md b/docs/versioned/client/README.md
index c05df275eea..28700ce25f9 100755
--- a/docs/versioned/client/README.md
+++ b/docs/versioned/client/README.md
@@ -37,7 +37,7 @@ The `func` CLI enables you to create, build, and deploy Knative Functions withou
### Additional resources
-- See [Installing Knative Functions](../functions/install-func.md).
+- See [Develop locally — Prepare](../functions/running-functions.md#prepare).
- See the [`func` documentation]({{ funcdocs() }}){target=_blank} in Github.
## Connecting CLI tools to your cluster
diff --git a/docs/versioned/functions/creating-functions.md b/docs/versioned/functions/creating-functions.md
deleted file mode 100644
index c34be4b9261..00000000000
--- a/docs/versioned/functions/creating-functions.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-audience: developer
-components:
- - functions
-function: how-to
----
-
-# Creating functions
-
---8<-- "create-a-function.md"
diff --git a/docs/versioned/functions/install-func.md b/docs/versioned/functions/install-func.md
deleted file mode 100644
index ad5aca03307..00000000000
--- a/docs/versioned/functions/install-func.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-audience: developer
-components:
- - functions
-function: how-to
----
-
-# Installing Knative Functions
-
---8<-- "install-functions-intro.md"
-
-## Installing the `func` CLI
-
---8<-- "install-func-CLI.md"
-
-## Installing the `kn func` CLI plugin
-
---8<-- "install-kn-func-plugin.md"
diff --git a/docs/versioned/functions/invoking-functions.md b/docs/versioned/functions/invoking-functions.md
deleted file mode 100644
index da8d92b9300..00000000000
--- a/docs/versioned/functions/invoking-functions.md
+++ /dev/null
@@ -1,17 +0,0 @@
----
-audience: developer
-components:
- - functions
-function: how-to
----
-
-# Invoking functions
-
-You can use the `func invoke` command to send a test request to invoke a
-function either locally or on your Knative cluster.
-
-This command can be used to test that a function is working and able to receive HTTP requests and CloudEvents correctly.
-
-If your function is running locally, `func invoke` sends a test request to the local instance.
-
-You can use the `func invoke` command to send test data to your function with the `--data` flag, as well as other options to simulate different types of requests. See the [func invoke](https://github.com/knative/func/blob/main/docs/reference/func_invoke.md){target=_blank} documentation for more information.
diff --git a/docs/versioned/functions/kafka-functions.md b/docs/versioned/functions/kafka-functions.md
deleted file mode 100644
index 66cbcbef7be..00000000000
--- a/docs/versioned/functions/kafka-functions.md
+++ /dev/null
@@ -1,15 +0,0 @@
----
-audience: developer
-components:
- - functions
-function: explanation
----
-
-# Kafka functions
-
-A function can consume messages from an Apache Kafka topic. When a function declares a `run.kafka` configuration, `func` deploys a language-agnostic runtime sidecar alongside it. The sidecar consumes the topic and delivers each record to the function as a CloudEvent over HTTP, so the function stays a plain CloudEvents handler in any language, with no Kafka client code of its own.
-
-The full guide lives in the `func` repository, covering concepts, a getting-started walkthrough, delivery and retries, deployment and scaling, idempotency, local development, and troubleshooting:
-
-- [Kafka functions guide](https://github.com/knative/func/blob/main/docs/kafka-functions/README.md){target=_blank}
-- [run.kafka configuration reference](https://github.com/knative/func/blob/main/docs/reference/func_yaml.md#runkafka){target=_blank}
diff --git a/docs/versioned/getting-started/about-knative-functions.md b/docs/versioned/getting-started/about-knative-functions.md
index 724c2802764..7a5b3debe7d 100644
--- a/docs/versioned/getting-started/about-knative-functions.md
+++ b/docs/versioned/getting-started/about-knative-functions.md
@@ -37,7 +37,7 @@ required for the local workflow.
`func`.
Verify `func version` prints a version number. For `kn func` plugin installation,
-see [Installing Knative Functions](../functions/install-func.md).
+see [Develop locally — Prepare](../functions/running-functions.md#prepare).
From 07985c2b7702d866cb88337573ef957e16ae214f Mon Sep 17 00:00:00 2001
From: Dave Protasowski
Date: Fri, 27 Nov 2026 21:32:22 -0500
Subject: [PATCH 7/7] Rewrite Functions guides as six task-focused pages
---
docs/versioned/functions/README.md | 33 ++--
.../versioned/functions/building-functions.md | 135 ++++-----------
.../functions/deploying-functions.md | 143 +++++++++++++---
docs/versioned/functions/language-packs.md | 81 ++++++++-
docs/versioned/functions/running-functions.md | 157 +++++++++++++++++-
.../functions/subscribing-functions.md | 107 ++++++++++--
6 files changed, 486 insertions(+), 170 deletions(-)
diff --git a/docs/versioned/functions/README.md b/docs/versioned/functions/README.md
index 70f9fc91d63..7bdb8d08fa5 100644
--- a/docs/versioned/functions/README.md
+++ b/docs/versioned/functions/README.md
@@ -3,26 +3,31 @@ audience: developer
components:
- functions
function: explanation
+hide_prev: true
+hide_next: true
---
-# Knative Functions overview
+# Knative Functions
--8<-- "about-functions.md"
-## Function templates
+## Start here
---8<-- "functions-templates-intro.md"
+New to Knative Functions? Follow [Try Functions](../getting-started/about-knative-functions.md)
+to create, edit, and test a Go function locally — no Kubernetes cluster or
+registry account required.
-## Language packs
+## Choose a task
-Functions can be written in any language supported by the available [language packs](https://github.com/knative/func/blob/main/docs/language-packs/language-pack-contract.md){target=_blank}.
-
+- **[Develop locally](running-functions.md):** install `func`, create a project,
+ run it locally, and send HTTP or CloudEvents test requests.
+- **[Build an image](building-functions.md):** build a container image locally
+ without running or deploying it.
+- **[Deploy a function](deploying-functions.md):** deploy from your machine or
+ build and deploy remotely on a cluster with Tekton.
+- **[Connect events](subscribing-functions.md):** subscribe a function to a
+ Knative Broker with Triggers, or consume Apache Kafka topics via sidecar.
+- **[Templates and runtimes](language-packs.md):** choose a language and
+ HTTP/CloudEvents template, or use custom language-pack repositories.
-## Getting started with functions
-
-Follow [Get started with Functions](../getting-started/about-knative-functions.md)
-to create, change, and test a Go function locally. This is the same Functions
-track linked from Get Started. Cluster deployment is optional and links to the
-shared learning-cluster setup.
-
-For an existing project, use the how-to guides in this section.
+For the full CLI reference, see the [`func` documentation]({{ funcdocs() }}){target=_blank}.
diff --git a/docs/versioned/functions/building-functions.md b/docs/versioned/functions/building-functions.md
index 7bca01c18f9..f6caf1138a7 100644
--- a/docs/versioned/functions/building-functions.md
+++ b/docs/versioned/functions/building-functions.md
@@ -3,27 +3,29 @@ audience: developer
components:
- functions
function: how-to
+hide_prev: true
+hide_next: true
---
-# Building functions
+# Build an image
-Build a container image from an existing function project. The local procedure
-builds only: it does not run, publish, or deploy the function. The optional
-on-cluster workflow below builds **and deploys**, so choose it only when you want
-that result.
+Build an OCI container image from an existing function project without running,
+pushing, or deploying it. If you want to build **and deploy** in one step
+(locally or on a cluster with Tekton), see [Deploy a function](deploying-functions.md).
-## Local builds
+## Requirements
-### Prerequisites
+- An initialized function project containing `func.yaml` and source code.
+ [Create a project](running-functions.md#create-a-project) if needed.
+- A running [Docker](https://docs.docker.com/get-started/get-docker/) engine
+ for containerized builders (`pack` or `s2i`).
+- Run commands from inside the function project directory.
-- You have an initialized function project containing `func.yaml` and its source.
- [Create a project](creating-functions.md) if needed.
-- Docker is running for the container-based buildpacks builder used here.
-- Run these commands from that project directory, not its parent directory.
+
-### Procedure
+## Build
-Set an explicit local image name so the build does not need a registry prompt:
+Pass an explicit local image name so the build does not prompt for a registry:
=== "func"
@@ -39,100 +41,29 @@ Set an explicit local image name so the build does not need a registry prompt:
--image localhost/my-function:latest
```
-`my-function` is an example image name; substitute yours consistently if desired.
-`localhost` here is a local tag, not a registry server you must create. Wait for
-building to complete, then check the image in Docker:
+`localhost/my-function:latest` is a local tag — nothing is pushed to a registry
+or deployed to a cluster. To prepare an image for a registry, pass
+`--registry ` (for example `ghcr.io/alice` or `docker.io/alice`) or
+set `FUNC_REGISTRY`.
+
+## Verify the image
+
+Confirm the image exists in Docker:
```bash
docker image ls localhost/my-function:latest
```
-A row with the tag `latest` and an image ID identifies the built image. This does
-not mean it was pushed or started. For publishing, see the
-[deployment guide](deploying-functions.md#procedure), which explains registry
-prefixes and full image destinations. [Try Functions](../getting-started/about-knative-functions.md#run-and-test)
-shows how to run and test an image as a separate step. For other builders, image
-naming options, and flags, see the [func build reference](https://github.com/knative/func/blob/main/docs/reference/func_build.md).
-
-## On-cluster Builds
-
-This alternative uses a remote pipeline and deploys the resulting function.
-It avoids a local container build, but requires a configured cluster and registry
-credentials. The source can come from Git **or** direct upload; Git is not required
-for the direct-upload branch.
-
-### Prerequisites
-
-- Your kubeconfig selects a cluster with Knative Serving installed.
-- Tekton Pipelines and the function build pipeline are configured according to the
- [on-cluster build setup guide](https://github.com/knative/func/blob/main/docs/building-functions/on_cluster_build.md).
-- The pipeline can push to your chosen registry, and the cluster can pull the image.
- Complete the registry/credential setup in that guide rather than assuming local
- Docker login alone configures every remote pipeline.
-- You have an initialized local function project and are in its directory.
-
-### Procedure
-
-Choose the source branch below. Replace `REGISTRY-USER` with your Docker Hub
-account namespace in the image name. For Git, separately replace `GIT-OWNER` and
-`GIT-REPO` with the repository owner and name; the Git owner need not match your
-registry account. The explicit image destination avoids carrying over a local-only
-tag from an earlier build.
+A row with tag `latest` and an image ID confirms the build succeeded. This does
+not push or start the container.
-#### Git-backed source
+
-The function project must be committed in a Git repository the pipeline can read.
-For a private repository, your platform administrator must provision pipeline
-access before you use this branch; the linked function-build setup guide does
-not provide a private-Git authentication recipe. The [Tekton authentication guide](https://tekton.dev/docs/pipelines/auth/)
-is background for that platform setup. If you cannot arrange repository access,
-use direct upload instead.
-
-These commands assume the project is at the repository root. For a subdirectory,
-set `build.source.dir` in your project's `func.yaml` to its relative path, following
-the configuration example in the [on-cluster build guide](https://github.com/knative/func/blob/main/docs/building-functions/on_cluster_build.md).
-For example, `dir: functions/my-function` selects that directory within the Git repository.
-
-=== "func"
-
- ```bash
- func deploy --remote \
- --image docker.io/REGISTRY-USER/my-function:latest \
- --git-url https://github.com/GIT-OWNER/GIT-REPO
- ```
-
-=== "kn func"
-
- ```bash
- kn func deploy --remote \
- --image docker.io/REGISTRY-USER/my-function:latest \
- --git-url https://github.com/GIT-OWNER/GIT-REPO
- ```
-
-#### Direct-upload source
-
-Use this branch to upload the current local project. No Git repository is required.
-Passing an empty Git URL explicitly clears a previously configured Git source.
-If you previously set `build.source.dir` for a Git subdirectory, remove that `dir`
-entry from `build.source` too so the upload uses the current local project root:
-
-=== "func"
-
- ```bash
- func deploy --remote \
- --image docker.io/REGISTRY-USER/my-function:latest \
- --git-url=""
- ```
-
-=== "kn func"
-
- ```bash
- kn func deploy --remote \
- --image docker.io/REGISTRY-USER/my-function:latest \
- --git-url=""
- ```
+## Other builders
-Wait for the pipeline and deployment to finish. Verify the **deployed** function
-using `func invoke --target remote` (or `kn func invoke --target remote`) and
-check your function's expected response. A finished image build alone does not
-prove deployment or invocation succeeded.
+`func build` supports `--builder pack` (Cloud Native Buildpacks), `--builder s2i`
+(Source-to-Image), and `--builder host` (host-native builds for supported
+languages). For remote on-cluster builds with Tekton, see
+[Deploy a function — Build and deploy remotely](deploying-functions.md#build-and-deploy-remotely).
+For all flags and builder options, see the
+[`func build` reference](https://github.com/knative/func/blob/main/docs/reference/func_build.md){target=_blank}.
diff --git a/docs/versioned/functions/deploying-functions.md b/docs/versioned/functions/deploying-functions.md
index 62b578d60db..587caa08dde 100644
--- a/docs/versioned/functions/deploying-functions.md
+++ b/docs/versioned/functions/deploying-functions.md
@@ -3,36 +3,135 @@ audience: developer
components:
- functions
function: how-to
+hide_prev: true
+hide_next: true
---
-# Deploying functions
+# Deploy a function
---8<-- "deploy-func-intro.md"
+Build, push, and deploy a function project to Kubernetes as a Knative Service
+(or as a raw Kubernetes Deployment). For a guided first deployment, see
+[Try Functions — Deploy to Knative](../getting-started/about-knative-functions.md#deploy-to-knative-optional).
-## Prerequisites
+## Requirements
-- You have a Kubernetes cluster with Knative Serving installed, and your kubeconfig
- selects the intended cluster and namespace. For a disposable environment,
- [set up a learning cluster](../getting-started/quickstart-install.md) and check
- its context before returning here. Local Functions development alone does not
- create a cluster.
+- An initialized function project containing `func.yaml`
+ ([create a project](running-functions.md#create-a-project) if needed).
+- A Kubernetes cluster with Knative Serving installed, with your `kubectl`
+ context selecting the target cluster and namespace.
+- Push access to a container registry that your cluster can pull from (use a
+ public repository or configure image pull secrets for private registries).
+- For local builds: a running [Docker](https://docs.docker.com/get-started/get-docker/)
+ engine. For remote builds: Tekton Pipelines configured on the cluster.
-- You have a Docker daemon running on your local machine for the container builder.
- Quickstart uses an existing container engine; it does not install one.
+## Deploy from your machine
-- You have access to a container registry and are able to push images to this registry. Note that some image registries set newly pushed images to private by default. If you are deploying a function for the first time, you may need to ensure that your images are set to public.
+Run `func deploy` from inside the project directory. Pass `--registry `
+where `` is the registry and your account namespace (for example
+`ghcr.io/alice` or `docker.io/alice`), or pass `--image ` to
+override a previous local-only `localhost/...` image tag:
-## Procedure
+=== "func"
-For a first deployment, follow the [worked deployment tutorial](../getting-started/about-knative-functions.md#deploy-to-knative-optional),
-which covers cluster setup, registry login, and the full image name. This is also
-the next step if you are coming from the local Functions track.
+ ```bash
+ func deploy --registry
+ ```
-In the commands below, `` means the registry **and your account namespace**.
-For example, `docker.io/alice` means Alice's Docker Hub namespace, and
-`ghcr.io/alice` means her GitHub Container Registry namespace. Substitute your own
-account; do not type the angle brackets. The CLI uses that prefix with the
-function's project name to construct the image name. The worked tutorial instead
-uses `--image` to set the complete destination explicitly.
+=== "kn func"
---8<-- "proc-deploying-function.md"
+ ```bash
+ kn func deploy --registry
+ ```
+
+`func` builds the image, pushes it to `/:latest`, and
+creates or updates a Knative Service with the project name.
+
+- **Namespace:** By default, `func deploy` uses the previously deployed
+ namespace recorded in the project, or your current `kubectl` namespace on
+ first deploy. Pass `-n ` to target a specific namespace.
+- **Private registries:** Set `FUNC_USERNAME` and `FUNC_PASSWORD` environment
+ variables for registry push credentials (avoid passing `--password` on the
+ command line), and ensure the target cluster namespace has pull credentials.
+- **Raw Kubernetes deployer:** Add `--deployer raw` to deploy as a standard
+ Kubernetes Deployment and Service instead of a Knative Service.
+
+## Build and deploy remotely
+
+Use `--remote` to run the build and deployment on the cluster with Tekton
+Pipelines instead of a local Docker engine. Configure Tekton and pipeline RBAC
+first using the
+[on-cluster build guide](https://github.com/knative/func/blob/main/docs/building-functions/on_cluster_build.md){target=_blank}.
+
+Choose one source method and pass an explicit `--image` destination (replace
+`REGISTRY-USER` with your registry account namespace):
+
+=== "Git-backed source"
+
+ Commit your project to a Git repository the cluster pipeline can read. For
+ private repositories, have your platform administrator provision pipeline
+ Git access first (see the
+ [Tekton authentication guide](https://tekton.dev/docs/pipelines/auth/){target=_blank}).
+ If the project is in a subdirectory, set `build.source.dir` in `func.yaml`
+ as shown in the on-cluster build guide.
+
+ ```bash
+ func deploy --remote \
+ --image docker.io/REGISTRY-USER/my-function:latest \
+ --git-url https://github.com/GIT-OWNER/GIT-REPO
+ ```
+
+ (Some CLI versions accept `--source` / `--source-dir` instead of `--git-url`;
+ check `func deploy --help` for your installed CLI.)
+
+=== "Direct upload (no Git)"
+
+ Upload the current local project directory directly. Passing `--git-url=""`
+ clears any previously configured Git URL (also remove `build.source.dir`
+ from `func.yaml` if previously set):
+
+ ```bash
+ func deploy --remote \
+ --image docker.io/REGISTRY-USER/my-function:latest \
+ --git-url=""
+ ```
+
+(`kn func deploy` accepts the same flags.)
+
+## Verify
+
+Invoke the deployed function with an explicit `--target remote` so you do not
+accidentally hit a locally running instance:
+
+=== "func"
+
+ ```bash
+ func invoke --target remote
+ ```
+
+=== "kn func"
+
+ ```bash
+ kn func invoke --target remote
+ ```
+
+Confirm the response body matches your function's expected output. You can also
+check status on the cluster:
+
+- **Knative deployer (default):** `kn service describe -n `
+- **Raw deployer (`--deployer raw`):** `kubectl get deployment/ service/ -n `
+
+## Update and remove
+
+- **Update:**
+ - Local builds and direct-upload remote builds: edit your code and re-run
+ `func deploy` (or `func deploy --remote --git-url=""`).
+ - Git-backed remote builds: commit and push your changes to the configured
+ Git branch first, then re-run `func deploy --remote`.
+ - With the default Knative deployer, each deploy rolls out a new Revision;
+ with `--deployer raw`, it updates the Kubernetes Deployment.
+- **Remove:** Run `func delete` from inside the project directory (works for
+ both Knative and raw deployers). You can also delete directly with
+ `kn service delete -n ` (Knative deployer) or
+ `kubectl delete deployment/ service/ -n ` (raw
+ deployer). Deleting the workload does not delete the pushed image from your
+ container registry.
diff --git a/docs/versioned/functions/language-packs.md b/docs/versioned/functions/language-packs.md
index 0322039ed87..431011aee5f 100644
--- a/docs/versioned/functions/language-packs.md
+++ b/docs/versioned/functions/language-packs.md
@@ -3,19 +3,84 @@ audience: developer
components:
- functions
function: how-to
+hide_prev: true
+hide_next: true
---
-# Language packs
+# Templates and runtimes
-Language packs can be used to extend Knative Functions to support additional runtimes, function signatures, operating systems, and installed tooling for functions. Language Packs are distributed through Git repositories or as a directory on a disc.
+Knative Functions includes built-in language runtimes and templates, and lets
+you pull custom templates from Git repositories via language packs.
-For more information see the [language pack](https://github.com/knative/func/blob/main/docs/language-packs/language-pack-contract.md){target=_blank} documentation.
+## Choose a runtime
-## Using external Git repositories
+Pass `-l ` to `func create`. Built-in runtimes:
-When creating a new function, a Git repository can be specified as the source
-for the template files.
+| Runtime | `-l` value |
+| --- | --- |
+| Go | `go` |
+| Node.js | `node` |
+| TypeScript | `typescript` |
+| Python | `python` |
+| Quarkus (Java) | `quarkus` |
+| Spring Boot (Java) | `springboot` |
+| Rust | `rust` |
-## Installing language packs locally
+## Choose HTTP or CloudEvents
-Language packs can be installed locally by using the [`func repository`](https://github.com/knative/func/blob/main/docs/reference/func_repository.md){target=_blank} command.
+Pass `-t ` to `func create` (default `http`):
+
+- **`http`** — handles standard HTTP requests and responses.
+- **`cloudevents`** — receives and optionally returns CloudEvents; use this
+ when connecting a function to Knative Eventing or Kafka.
+
+```bash
+func create -l python -t cloudevents my-event-fn
+```
+
+## Use an external repository
+
+To scaffold a function from a remote Git template repository without installing
+it locally, pass `--repository`:
+
+```bash
+func create -l go \
+ --template \
+ --repository \
+ my-function
+```
+
+Verify the generated `my-function/` directory contains `func.yaml` and the
+expected template files.
+
+## Installed repositories { #manage-installed-repositories }
+
+Install a trusted template repository locally with `func repository` so you can
+reuse its templates by name:
+
+1. Add the repository and verify it appears in the list:
+
+ ```bash
+ func repository add my-pack
+ func repository list
+ ```
+
+ The output lists `default` alongside `my-pack`.
+
+1. Create a function using `/`:
+
+ ```bash
+ func create -l go -t my-pack/ my-function
+ ```
+
+1. Rename or remove installed repositories when needed:
+
+ ```bash
+ func repository rename my-pack renamed-pack
+ func repository remove renamed-pack
+ ```
+
+For all repository flags, see the
+[`func repository` reference](https://github.com/knative/func/blob/main/docs/reference/func_repository.md){target=_blank}.
+To author your own language pack, see the
+[language pack contract](https://github.com/knative/func/blob/main/docs/language-packs/language-pack-contract.md){target=_blank}.
diff --git a/docs/versioned/functions/running-functions.md b/docs/versioned/functions/running-functions.md
index db19a8ab722..dacbf271fbd 100644
--- a/docs/versioned/functions/running-functions.md
+++ b/docs/versioned/functions/running-functions.md
@@ -3,16 +3,161 @@ audience: developer
components:
- functions
function: how-to
+hide_prev: true
+hide_next: true
---
-# Running functions
+# Develop locally
---8<-- "run-func-intro.md"
+Install the `func` CLI, scaffold a function project, run it on your machine,
+and test it with HTTP or CloudEvents requests — no Kubernetes cluster or
+container registry required.
-## Prerequisites
+
-- You have a Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.
+## Prepare
-## Procedure
+- A running [Docker](https://docs.docker.com/get-started/get-docker/) engine
+ for containerized builds (`pack` or `s2i`). For `--builder host`, Docker is
+ optional, but the target language toolchain (Go or Python) must be installed
+ on your host.
+- Install the `func` CLI (or `kn func` plugin):
---8<-- "proc-running-function.md"
+=== "Homebrew"
+
+ ```bash
+ brew install knative-extensions/kn-plugins/func
+ ```
+
+ If `kn` is also installed via Homebrew, `kn func` is available automatically.
+
+=== "Release binary"
+
+ Download the binary for your OS and architecture from the
+ [`func` release page](https://github.com/knative/func/releases){target=_blank},
+ make it executable, and place it on your `PATH` as `func` (or as `kn-func`
+ to use it as a `kn` plugin).
+
+=== "Build from source"
+
+ Requires Go and `make`:
+
+ ```bash
+ git clone https://github.com/knative/func.git func
+ cd func
+ make
+ ```
+
+ Place the resulting `func` binary on your `PATH`.
+
+Verify the installation using the command matching how you installed it:
+
+```bash
+func version
+# or, if installed as a kn plugin:
+kn func version
+```
+
+
+
+## Create a project
+
+Create a new function directory using `-l` (language) and `-t` (template:
+`http` or `cloudevents`, default `http`). See
+[Templates and runtimes](language-packs.md) for the full list of supported
+languages.
+
+=== "func"
+
+ ```bash
+ func create -l go -t http my-function
+ cd my-function
+ ```
+
+=== "kn func"
+
+ ```bash
+ kn func create -l go -t http my-function
+ cd my-function
+ ```
+
+`func create` writes a new `my-function/` directory containing `func.yaml`,
+handler source, and starter tests. Pass `-t cloudevents` if your function will
+consume CloudEvents. For all flags, see the
+[`func create` reference](https://github.com/knative/func/blob/main/docs/reference/func_create.md){target=_blank}.
+
+## Run locally
+
+Inside the project directory, build and run the function locally. Pass an
+explicit `localhost/...` image name so the build stays local without needing a
+container registry:
+
+=== "func"
+
+ ```bash
+ func run --builder pack \
+ --image localhost/my-function:latest
+ ```
+
+=== "kn func"
+
+ ```bash
+ kn func run --builder pack \
+ --image localhost/my-function:latest
+ ```
+
+Wait until the function prints its local address, for example:
+
+```text
+Function running on 127.0.0.1:8080
+```
+
+Useful flags:
+
+- `--builder host` — run Go or Python directly on your host without Docker.
+- `--build=true` — force a rebuild even if no source changes were detected.
+- `--build=false` — reuse an already-built image without rebuilding (fails if
+ no image has been built yet).
+- `--address 127.0.0.1:8081` — bind to a different local port.
+
+Keep this terminal open while testing.
+
+
+
+## Send test requests
+
+In a **second terminal** inside the same project directory, use `func invoke`
+with `--target local` so you are guaranteed to hit the local instance:
+
+=== "HTTP request"
+
+ ```bash
+ func invoke --target local \
+ --content-type application/json \
+ --data '{"message":"Hello local!"}'
+ ```
+
+=== "CloudEvent"
+
+ ```bash
+ func invoke --target local \
+ --format cloudevent \
+ --type dev.knative.example \
+ --source /local-test \
+ --data '{"message":"Hello event!"}'
+ ```
+
+(`kn func invoke` accepts the same flags.) Confirm the response body matches
+your handler's output. You can also target a deployed instance with
+`--target remote` or an arbitrary endpoint with `--target https://...`. See the
+[`func invoke` reference](https://github.com/knative/func/blob/main/docs/reference/func_invoke.md){target=_blank}
+for all options.
+
+## Iterate and stop
+
+1. Press ++ctrl+c++ in the `func run` terminal to stop the local function.
+2. Edit your handler code and save.
+3. Re-run `func run` and verify the updated output with `func invoke --target local`.
+
+When you are ready to package or ship the function, continue to
+[Build an image](building-functions.md) or [Deploy a function](deploying-functions.md).
diff --git a/docs/versioned/functions/subscribing-functions.md b/docs/versioned/functions/subscribing-functions.md
index 41d48749330..00499b06f65 100644
--- a/docs/versioned/functions/subscribing-functions.md
+++ b/docs/versioned/functions/subscribing-functions.md
@@ -2,43 +2,114 @@
audience: developer
components:
- functions
+ - eventing
function: how-to
+hide_prev: true
+hide_next: true
---
-# Subscribe functions to CloudEvents
+# Connect events
-### Prerequisites
+Deliver events to a function either through a Knative Eventing **Broker** and
+**Trigger**, or directly from an **Apache Kafka** topic using a runtime sidecar.
-- Knative Eventing installed on the cluster
+## Broker subscription { #configure-a-broker-subscription }
-### Procedure
+**Requirements (Broker path):**
---8<-- "proc-subscribe-function.md"
+- An initialized function project using the `cloudevents` template
+ (`func create -l -t cloudevents `), with a handler that logs
+ or otherwise makes received events observable.
+- A Kubernetes cluster with Knative Serving and Knative Eventing installed, and
+ a ready Broker in your target namespace (for example `default`, or
+ `example-broker` if reusing a Quickstart cluster).
+- Registry push and cluster pull access as described in
+ [Deploy a function](deploying-functions.md#requirements).
-### Deployment with Triggers
+`func subscribe` records event subscription filters in `func.yaml` — it does
+not modify the cluster until you deploy.
-When invoking `func deploy` the CLI will create Knative Triggers for the function.
+Pass `--source` with your Broker's name (if omitted, `func` defaults to a
+Broker named `default`) and one or more `--filter` key/value pairs (all filters
+must match):
=== "func"
- Deploy the function with Triggers by running the command inside the project directory:
-
```bash
- func deploy
+ func subscribe \
+ --source example-broker \
+ --filter type=dev.knative.example
```
=== "kn func"
- Deploy the function with Triggers by running the command inside the project directory:
+ ```bash
+ kn func subscribe \
+ --source example-broker \
+ --filter type=dev.knative.example
+ ```
+
+Repeat `--filter key=value` to require additional CloudEvent attributes or
+extensions. To change or remove subscriptions later, edit `deploy.subscriptions`
+in `func.yaml` and redeploy.
+
+## Deploy and verify delivery
+
+Use the same target namespace (``) for deployment, Trigger checks,
+and logs (pass `-n ` consistently if you are not using the current
+context's namespace).
+
+1. Deploy from inside the project directory. `func deploy` creates or updates
+ the Knative Service and creates the matching Knative Triggers on the cluster:
+
+ ```bash
+ func deploy --registry -n
+ ```
+
+1. Confirm the generated Trigger is ready (`READY=True`):
```bash
- kn func deploy
+ kn trigger list -n
```
-!!! Success "Expected output"
- ```{ .bash .no-copy }
- 🙌 Function image built: /hello:latest
- 🎯 Creating Triggers on the cluster
- ✅ Function deployed in namespace "default" and exposed at URL:
- http://hello.default.127.0.0.1.sslip.io
+1. Send a matching CloudEvent (`type: dev.knative.example`) to `example-broker`
+ — for example using the CloudEvents Player from
+ [Try Eventing](../getting-started/getting-started-eventing.md) or another
+ event source connected to that Broker.
+
+1. Verify your function received the event by checking its pod logs (or other
+ observable effect from your handler):
+
+ ```bash
+ kubectl logs -n \
+ -l serving.knative.dev/service= -c user-container
```
+
+ Confirm your handler logged the event's ID and payload. Direct
+ `func invoke` calls the function directly and does not verify Broker
+ routing or Trigger filters.
+
+
+
+## Consume Kafka records
+
+A function can also consume records directly from an Apache Kafka topic without
+a Knative Eventing Broker. When `func.yaml` declares a `run.kafka`
+configuration, `func` deploys a language-agnostic sidecar that consumes the
+topic and delivers each record to your function as a CloudEvent over HTTP, so
+your function needs no Kafka client code.
+
+**Requirements (Kafka path):**
+
+- An initialized `cloudevents` function project and container registry push/pull
+ access.
+- An accessible Apache Kafka cluster and topic.
+- The **KEDA** or **raw** deployer — direct Kafka consumption (`run.kafka`) is
+ **not** supported with the default Knative Serving deployer (KEDA requires
+ KEDA installed on the cluster).
+
+For the full walkthrough — including concepts, delivery and retries, scaling,
+idempotency, local development, and troubleshooting — see the upstream guides:
+
+- [Kafka functions guide](https://github.com/knative/func/blob/main/docs/kafka-functions/README.md){target=_blank}
+- [`run.kafka` configuration reference](https://github.com/knative/func/blob/main/docs/reference/func_yaml.md#runkafka){target=_blank}