diff --git a/config/redirects.yml b/config/redirects.yml
index a9c66224e45..b4117dd3e54 100644
--- a/config/redirects.yml
+++ b/config/redirects.yml
@@ -20,7 +20,7 @@ plugins:
versioned/eventing/broker/rabbitmq-broker/README.md: versioned/eventing/brokers/broker-types/rabbitmq-broker/README.md
versioned/eventing/broker/README.md: versioned/eventing/brokers/README.md
versioned/concepts/resources/revisions.md: versioned/serving/revisions/README.md
- versioned/serving/revision-gc.md: versioned/serving/revisions/revision-developer-config-options.md
+ versioned/serving/revision-gc.md: versioned/serving/revisions/README.md#disabling-garbage-collection-for-a-revision
versioned/serving/configuration/revision-gc.md: versioned/serving/revisions/revision-admin-config-options.md
versioned/reference/concepts/duck-typing.md: versioned/eventing/concepts/duck-typing.md
versioned/reference/client/README.md: versioned/client/README.md
@@ -92,7 +92,7 @@ plugins:
versioned/developer/eventing/sinks/README.md: versioned/eventing/sinks/README.md
versioned/developer/eventing/sinks/kafka-sink.md: versioned/eventing/sinks/kafka-sink.md
versioned/developer/eventing/sources/README.md: versioned/eventing/sources/README.md
- versioned/developer/eventing/sources/apiserversource/README.md: versioned/eventing/sources/apiserversource/README.md
+ versioned/developer/eventing/sources/apiserversource/README.md: versioned/eventing/sources/apiserversource/getting-started.md
versioned/developer/eventing/sources/apiserversource/getting-started.md: versioned/eventing/sources/apiserversource/getting-started.md
versioned/developer/eventing/sources/apiserversource/reference.md: versioned/eventing/sources/apiserversource/reference.md
versioned/developer/eventing/sources/containersource/README.md: versioned/eventing/custom-event-source/containersource/README.md
@@ -147,7 +147,7 @@ plugins:
versioned/eventing/samples/helloworld/helloworld-python/README.md: https://github.com/knative/docs/tree/main/code-samples/eventing/helloworld/helloworld-python
versioned/eventing/samples/kafka/binding/README.md: versioned/eventing/sources/kafka-source/README.md
versioned/eventing/samples/kafka/channel/README.md: https://github.com/knative/docs/tree/main/code-samples/eventing/kafka/channel
- versioned/eventing/samples/kubernetes-event-source/index.md: versioned/eventing/sources/apiserversource/README.md
+ versioned/eventing/samples/kubernetes-event-source/index.md: versioned/eventing/sources/apiserversource/getting-started.md
versioned/eventing/samples/parallel/README.md: https://github.com/knative/docs/tree/main/code-samples/eventing/parallel
versioned/eventing/samples/parallel/multiple-branches/README.md: https://github.com/knative/docs/tree/main/code-samples/eventing/parallel#filter-routing
versioned/eventing/samples/parallel/mutual-exclusivity/README.md: https://github.com/knative/docs/tree/main/code-samples/eventing/parallel#switch-routing
@@ -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
@@ -181,12 +181,12 @@ plugins:
versioned/operator/configuring-serving-cr/index.md: versioned/install/operator/configuring-serving-cr.md
versioned/reference/resources/index.md: versioned/client/README.md
versioned/serving/autoscaling/autoscaling-concepts.md: versioned/serving/autoscaling/autoscaler-types.md
- versioned/serving/autoscaling/target-burst-capacity/index.md: versioned/serving/load-balancing/target-burst-capacity.md
+ versioned/serving/autoscaling/target-burst-capacity/index.md: versioned/serving/load-balancing/README.md#setting-the-target-burst-capacity
versioned/serving/configuring-autoscaling/index.md: versioned/serving/autoscaling/README.md
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,27 @@ 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
+ 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
+ versioned/serving/load-balancing/target-burst-capacity.md: versioned/serving/load-balancing/README.md
+ versioned/serving/load-balancing/activator-capacity.md: versioned/serving/load-balancing/README.md
+ versioned/serving/revisions/revision-developer-config-options.md: versioned/serving/revisions/README.md
+ versioned/serving/app-security/secure-pod-defaults.md: versioned/serving/configuration/secure-pod-defaults.md
+ versioned/eventing/faq/README.md: versioned/eventing/sugar/README.md
+ versioned/eventing/sources/apiserversource/README.md: versioned/eventing/sources/apiserversource/getting-started.md
+ versioned/eventing/sources/redis/README.md: versioned/eventing/sources/redis/getting-started.md
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/snippets/route-status-updates.md b/docs/snippets/route-status-updates.md
index 7a55b7e8858..f073a32fc39 100644
--- a/docs/snippets/route-status-updates.md
+++ b/docs/snippets/route-status-updates.md
@@ -18,14 +18,14 @@ spec:
revisionName: config-00005 # Pinned to a specific Revision.
```
-Initially 1% of the traffic is rolled out to the Revisions:
+Initially 1% of the traffic is rolled out to the new Revision in `status.traffic`:
```yaml
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
...
-spec:
+status:
...
traffic:
- percent: 54
@@ -43,7 +43,7 @@ apiVersion: serving.knative.dev/v1
kind: Service
metadata:
...
-spec:
+status:
...
traffic:
- percent: 36
@@ -61,7 +61,7 @@ apiVersion: serving.knative.dev/v1
kind: Service
metadata:
...
-spec:
+status:
...
traffic:
- percent: 55
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/.nav.yml b/docs/versioned/.nav.yml
index b1a9efc1e61..c066a1415d9 100644
--- a/docs/versioned/.nav.yml
+++ b/docs/versioned/.nav.yml
@@ -1,235 +1,168 @@
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
- - Language packs: functions/language-packs.md
+ - Overview: functions/README.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
###############################################################################
- Serving:
- - Knative Serving:
- - Overview: serving/README.md
- - Architecture: serving/architecture.md
- - Request Flow: serving/request-flow.md
- - Converting a Kubernetes Deployment to a Knative Service: serving/convert-deployment-to-knative-service.md
+ - Overview: serving/README.md
+ - Architecture: serving/architecture.md
+ - Request flow: serving/request-flow.md
+ - Deploy and configure:
+ - Services overview: serving/services/README.md
+ - Create a Service: serving/services/creating-services.md
+ - Convert a Deployment: serving/convert-deployment-to-knative-service.md
+ - Private registries: serving/deploying-from-private-registry.md
+ - Resource requests and limits: serving/services/configure-requests-limits-services.md
+ - Health probes: serving/services/configure-probing.md
+ - Volumes: serving/services/storage.md
+ - Dry run: serving/dryrun.md
+ - Networking:
+ - Private Services: serving/services/private-services.md
+ - Ingress class: serving/services/ingress-class.md
+ - Certificate class: serving/services/certificate-class.md
+ - Custom domains: serving/services/custom-domains.md
+ - Custom TLS certificates: serving/services/custom-tls-certificate-domain-mapping.md
+ - HTTP protocols: serving/services/http-protocol.md
+ - Revisions and traffic:
+ - Revisions: serving/revisions/README.md
+ - Traffic splitting and tags: serving/traffic-management.md
+ - Gradual rollouts: serving/rolling-out-latest-revision.md
- Autoscaling:
- - About autoscaling: serving/autoscaling/README.md
- - Supported autoscaler types: serving/autoscaling/autoscaler-types.md
- - Configuring metrics: serving/autoscaling/autoscaling-metrics.md
- - Configuring targets: serving/autoscaling/autoscaling-targets.md
- - Configuring scale to zero: serving/autoscaling/scale-to-zero.md
- - Configuring concurrency: serving/autoscaling/concurrency.md
- - Configuring the requests per second (RPS) target: serving/autoscaling/rps-target.md
- - Configuring scale bounds: serving/autoscaling/scale-bounds.md
- - Additional autoscaling configuration for Knative Pod Autoscaler: serving/autoscaling/kpa-specific.md
- - Autoscale Sample App - Go: serving/autoscaling/autoscale-go/README.md
- # Serving - developer docs
- - Developer Tasks:
- - Services:
- - Knative Services: serving/services/README.md
- - Creating a Service: serving/services/creating-services.md
- - Configuring private Services: serving/services/private-services.md
- - Configuring ingress class: serving/services/ingress-class.md
- - Configuring certificate class: serving/services/certificate-class.md
- - Configuring custom domains: serving/services/custom-domains.md
- - Using a custom TLS certificate for DomainMapping: serving/services/custom-tls-certificate-domain-mapping.md
- # TODO: Add security section to docs?
- - Configure resource requests and limits: serving/services/configure-requests-limits-services.md
- - Configuring probes: serving/services/configure-probing.md
- - Configuring HTTP: serving/services/http-protocol.md
- - Performing Dry Run: serving/dryrun.md
- - Volume Support: serving/services/storage.md
- - Revisions:
- - About Revisions: serving/revisions/README.md
- - Garbage Collection: serving/revisions/revision-developer-config-options.md
- - Traffic management: serving/traffic-management.md
- - Configuring gradual rollout of traffic to Revisions: serving/rolling-out-latest-revision.md
- - Tag resolution: serving/tag-resolution.md
- - Deploying from private registries: serving/deploying-from-private-registry.md
- - Load balancing:
- - 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
- # Serving - observability
+ - Overview: serving/autoscaling/README.md
+ - Autoscaler types: serving/autoscaling/autoscaler-types.md
+ - Metrics: serving/autoscaling/autoscaling-metrics.md
+ - Targets: serving/autoscaling/autoscaling-targets.md
+ - Concurrency: serving/autoscaling/concurrency.md
+ - Requests per second (RPS): serving/autoscaling/rps-target.md
+ - Scale bounds: serving/autoscaling/scale-bounds.md
+ - Scale to zero: serving/autoscaling/scale-to-zero.md
+ - KPA settings: serving/autoscaling/kpa-specific.md
+ - Request buffering: serving/load-balancing/README.md
+ - Autoscale sample app: serving/autoscaling/autoscale-go/README.md
- 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
+ - Metrics reference: serving/observability/metrics/serving-metrics.md
+ - Troubleshooting: serving/troubleshooting/debugging-application-issues.md
+ - Serving API: serving/reference/serving-api.md
+ - Code samples: samples/serving.md
###############################################################################
# Eventing
###############################################################################
- Eventing:
- - Knative Eventing overview: eventing/README.md
- - Concepts:
- - Brokers:
- - About Brokers: eventing/brokers/README.md
- - Broker types:
- - Available Broker types: eventing/brokers/broker-types/README.md
- # add default IMC broker page, page explaining broker types
- - Channel based Broker: eventing/brokers/broker-types/channel-based-broker/README.md
- - Apache Kafka:
- - Knative Broker for Apache Kafka: eventing/brokers/broker-types/kafka-broker/README.md
- - RabbitMQ Broker: eventing/brokers/broker-types/rabbitmq-broker/README.md
- - Creating a Broker: eventing/brokers/create-broker.md
- - Developer configuration options: eventing/brokers/broker-developer-config-options.md
- - Event Mesh: eventing/concepts/event-mesh.md
- - Triggers:
- - Using Triggers: eventing/triggers/README.md
- - Duck types: eventing/concepts/duck-typing.md
- - Event sources:
- - About event sources: eventing/sources/README.md
- - ApiServerSource:
- - About ApiServerSource: eventing/sources/apiserversource/README.md
- - Creating an ApiServerSource object: eventing/sources/apiserversource/getting-started.md
- - ApiServerSource reference: eventing/sources/apiserversource/reference.md
- - Apache Kafka Source: eventing/sources/kafka-source/README.md
- - PingSource:
- - Creating a PingSource object: eventing/sources/ping-source/README.md
- - PingSource reference: eventing/sources/ping-source/reference.md
- - IntegrationSource:
- - About IntegrationSource: eventing/sources/integration-source/README.md
- - AWS DDB Streams: eventing/sources/integration-source/aws_ddbstreams.md
- - AWS S3: eventing/sources/integration-source/aws_s3.md
- - AWS SQS: eventing/sources/integration-source/aws_sqs.md
- - Generic Timer: eventing/sources/integration-source/timer.md
- - RabbitMQSource: eventing/sources/rabbitmq-source/README.md
- - RedisStreamSource:
- - About RedisStreamSource: eventing/sources/redis/README.md
- - Creating a RedisStreamSource object: eventing/sources/redis/getting-started.md
- - Channels:
- - About Channels: eventing/channels/README.md
- - Channel types and defaults: eventing/channels/channel-types-defaults.md
- - Creating a Channel using cluster or namespace defaults: eventing/channels/create-default-channel.md
- - Available Channels: eventing/channels/channels-crds.md
- - Subscriptions: eventing/channels/subscriptions.md
- - Event sinks:
- - About sinks: eventing/sinks/README.md
- - JobSink: eventing/sinks/job-sink.md
- - Apache Kafka Sink: eventing/sinks/kafka-sink.md
- - IntegrationSink:
- - About IntegrationSink: eventing/sinks/integration-sink/README.md
- - AWS S3 Sink: eventing/sinks/integration-sink/aws_s3.md
- - AWS SNS Sink: eventing/sinks/integration-sink/aws_sns.md
- - AWS SQS Sink: eventing/sinks/integration-sink/aws_sqs.md
- - Generic Logger Sink: eventing/sinks/integration-sink/logger.md
- - Flows:
- - About flows: eventing/flows/README.md
- - Parallel: eventing/flows/parallel.md
- - Sequence:
- - About Sequences: eventing/flows/sequence/README.md
- - Displaying Sequence output: eventing/flows/sequence/sequence-reply-to-event-display/README.md
- - Using Sequences in series: eventing/flows/sequence/sequence-reply-to-sequence/README.md
- - Create additional events: eventing/flows/sequence/sequence-terminal/README.md
- - Using with Broker and Trigger: eventing/flows/sequence/sequence-with-broker-trigger/README.md
- - Event Transformations:
- - About Event Transformations: eventing/transforms/README.md
- - Event Transformations for JSON with JSONata: eventing/transforms/event-transform-jsonata.md
- # about triggers docs
- # - Administrator configuration options: eventing/triggers/trigger-admin-config-options.md
- # - Developer configuration options: eventing/triggers/trigger-developer-config-options.md
- # Eventing - developer docs
- - Developer Tasks:
- # BYO event source
- - Custom event sources:
- - Custom event sources overview: eventing/custom-event-source/README.md
- - Create a custom event source:
- - Creating an event source overview: eventing/custom-event-source/custom-event-source/README.md
- - Using the Knative sample repository:
- - Configure the sample: eventing/custom-event-source/custom-event-source/sample-repo.md
- - Create a controller: eventing/custom-event-source/custom-event-source/controller.md
- - Create a receive adapter: eventing/custom-event-source/custom-event-source/receive-adapter.md
- - Publishing an event source to your cluster: eventing/custom-event-source/custom-event-source/publish-event-source.md
- - SinkBinding:
- - About SinkBinding: eventing/custom-event-source/sinkbinding/README.md
- - Create a SinkBinding: eventing/custom-event-source/sinkbinding/create-a-sinkbinding.md
- - SinkBinding reference: eventing/custom-event-source/sinkbinding/reference.md
- - ContainerSource:
- - Create a ContainerSource: eventing/custom-event-source/containersource/README.md
- - ContainerSource Reference: eventing/custom-event-source/containersource/reference.md
- - Handling delivery failure: eventing/event-delivery.md
- - Event registry:
- - Using the Event registry: eventing/event-registry/README.md
+ - Overview: eventing/README.md
+ - Event mesh: eventing/concepts/event-mesh.md
+ - Brokers and routing:
+ - Overview: eventing/brokers/README.md
+ - Create a Broker: eventing/brokers/create-broker.md
+ - Broker types: eventing/brokers/broker-types/README.md
+ - Channel-based Broker: eventing/brokers/broker-types/channel-based-broker/README.md
+ - Kafka Broker: eventing/brokers/broker-types/kafka-broker/README.md
+ - RabbitMQ Broker: eventing/brokers/broker-types/rabbitmq-broker/README.md
+ - Broker options: eventing/brokers/broker-developer-config-options.md
+ - Triggers: eventing/triggers/README.md
+ - Delivery failures: eventing/event-delivery.md
+ - Event registry: eventing/event-registry/README.md
- Sugar controller: eventing/sugar/README.md
- - Debugging: eventing/troubleshooting/README.md
- # Eventing - observability
+ - Sources:
+ - Overview: eventing/sources/README.md
+ - ApiServerSource: eventing/sources/apiserversource/getting-started.md
+ - ApiServerSource reference: eventing/sources/apiserversource/reference.md
+ - PingSource: eventing/sources/ping-source/README.md
+ - PingSource reference: eventing/sources/ping-source/reference.md
+ - Kafka source: eventing/sources/kafka-source/README.md
+ - RabbitMQ source: eventing/sources/rabbitmq-source/README.md
+ - Redis Streams source: eventing/sources/redis/getting-started.md
+ - IntegrationSource: eventing/sources/integration-source/README.md
+ - AWS DynamoDB Streams: eventing/sources/integration-source/aws_ddbstreams.md
+ - AWS S3 source: eventing/sources/integration-source/aws_s3.md
+ - AWS SQS source: eventing/sources/integration-source/aws_sqs.md
+ - Timer source: eventing/sources/integration-source/timer.md
+ - Sinks:
+ - Overview: eventing/sinks/README.md
+ - JobSink: eventing/sinks/job-sink.md
+ - Kafka sink: eventing/sinks/kafka-sink.md
+ - IntegrationSink: eventing/sinks/integration-sink/README.md
+ - AWS S3 sink: eventing/sinks/integration-sink/aws_s3.md
+ - AWS SNS sink: eventing/sinks/integration-sink/aws_sns.md
+ - AWS SQS sink: eventing/sinks/integration-sink/aws_sqs.md
+ - Logger sink: eventing/sinks/integration-sink/logger.md
+ - Channels and flows:
+ - Channels overview: eventing/channels/README.md
+ - Channel types and defaults: eventing/channels/channel-types-defaults.md
+ - Create a Channel: eventing/channels/create-default-channel.md
+ - Available Channels: eventing/channels/channels-crds.md
+ - Subscriptions: eventing/channels/subscriptions.md
+ - Flows overview: eventing/flows/README.md
+ - Parallel: eventing/flows/parallel.md
+ - Sequences: eventing/flows/sequence/README.md
+ - Sequence to event display: eventing/flows/sequence/sequence-reply-to-event-display/README.md
+ - Chained Sequences: eventing/flows/sequence/sequence-reply-to-sequence/README.md
+ - Sequence terminal step: eventing/flows/sequence/sequence-terminal/README.md
+ - Sequence with Broker and Trigger: eventing/flows/sequence/sequence-with-broker-trigger/README.md
+ - Event transformations: eventing/transforms/README.md
+ - JSONata transformations: eventing/transforms/event-transform-jsonata.md
+ - Build a source:
+ - Overview: eventing/custom-event-source/README.md
+ - SinkBinding overview: eventing/custom-event-source/sinkbinding/README.md
+ - Create a SinkBinding: eventing/custom-event-source/sinkbinding/create-a-sinkbinding.md
+ - SinkBinding reference: eventing/custom-event-source/sinkbinding/reference.md
+ - ContainerSource: eventing/custom-event-source/containersource/README.md
+ - ContainerSource reference: eventing/custom-event-source/containersource/reference.md
+ - Custom source overview: eventing/custom-event-source/custom-event-source/README.md
+ - Configure sample repo: eventing/custom-event-source/custom-event-source/sample-repo.md
+ - Create a controller: eventing/custom-event-source/custom-event-source/controller.md
+ - Create a receive adapter: eventing/custom-event-source/custom-event-source/receive-adapter.md
+ - Publish a custom source: eventing/custom-event-source/custom-event-source/publish-event-source.md
- Observability:
- 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
+ - Metrics reference: eventing/observability/metrics/eventing-metrics.md
+ - Troubleshooting: eventing/troubleshooting/README.md
+ - Duck types: eventing/concepts/duck-typing.md
+ - Eventing API: eventing/reference/eventing-api.md
+ - Code samples: samples/eventing.md
###############################################################################
- # CLI
+ # Install and Manage
###############################################################################
- - 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
-###############################################################################
- # 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
@@ -274,6 +207,7 @@ nav:
- Config Revision Garbage Collection: serving/revisions/revision-admin-config-options.md
- Configure the Defaults ConfigMap: serving/configuration/config-defaults.md
- Secure Pod Defaults: serving/configuration/secure-pod-defaults.md
+ - Registry trust and tag resolution: serving/tag-resolution.md
- Serving encryption configuration:
- Overview: serving/encryption/encryption-overview.md
- Configure cert-manager integration: serving/encryption/configure-certmanager-integration.md
@@ -327,11 +261,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/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/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 99%
rename from docs/versioned/bookstore/extra-challenge/README.md
rename to docs/versioned/bookstore/extra-challenge/extra-challenges.md
index 606fe155f6c..1fda6d0d12c 100644
--- a/docs/versioned/bookstore/extra-challenge/README.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 }
diff --git a/docs/versioned/client/README.md b/docs/versioned/client/README.md
index 1c37f3fb51e..28700ce25f9 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
@@ -35,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
@@ -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..a3c282b5a36 100644
--- a/docs/versioned/eventing/README.md
+++ b/docs/versioned/eventing/README.md
@@ -3,31 +3,21 @@ audience: developer
components:
- eventing
function: explanation
+hide_prev: true
+hide_next: true
---
-# Eventing
+# Knative Eventing
--8<-- "about-eventing.md"
-Examples of supported Knative Eventing use cases:
+New to Eventing? Start with [Try Eventing](../getting-started/getting-started-eventing.md) to send a CloudEvent through a Broker and deliver it with a Trigger, or follow the [Bookstore tutorial](../bookstore/page-0/welcome-knative-bookstore-tutorial.md) for a multi-service app.
-- Publish an event without creating a consumer. You can send events to a broker as an HTTP POST, and use binding to decouple the destination configuration from your application that produces events.
+## What do you want to do?
-- Consume an event without creating a publisher. You can use a trigger to consume events from a broker based on event attributes. The application receives events as an HTTP POST.
-
-!!! tip
- Multiple event producers and sinks can be used together to create more advanced [Knative Eventing flows](flows/README.md){target=_blank} to solve complex use cases.
-
-## Eventing examples
-
-:material-file-document: [Creating and responding to Kubernetes API events](../eventing/sources/apiserversource/README.md){target=blank}
-
---8<-- "YouTube_icon.svg"
-[Creating an image processing pipeline](https://www.youtube.com/watch?v=DrmOpjAunlQ){target=blank}
-
---8<-- "YouTube_icon.svg"
-[Facilitating AI workloads at the edge in large-scale, drone-powered sustainable agriculture projects](https://www.youtube.com/watch?v=lVfJ5WEQ5_s){target=blank}
-
-## Next steps
-
-- You can install Knative Eventing by using the methods listed on the [installation page](../install/README.md).
+- **Route events with Brokers and Triggers** — [Create a Broker](brokers/create-broker.md), compare [Broker types](brokers/broker-types/README.md), filter events with [Triggers](triggers/README.md), and configure retries and dead-letter sinks in [Delivery failures](event-delivery.md).
+- **Connect event producers** — Choose a built-in producer in [Event sources](sources/README.md) (Kubernetes API, schedules, Kafka, RabbitMQ, Redis Streams, or Camel integrations), or bind an existing workload with [SinkBinding](custom-event-source/sinkbinding/README.md).
+- **Deliver to destinations** — Send events to Knative Services, Kubernetes Services, [JobSink](sinks/job-sink.md), [Kafka](sinks/kafka-sink.md), or [IntegrationSink](sinks/integration-sink/README.md) in [Event sinks](sinks/README.md).
+- **Compose pipelines and transformations** — Chain steps with [Sequences](flows/sequence/README.md), fan out with [Parallel](flows/parallel.md), reshape payloads with [Event transformations](transforms/README.md), or use [Channels and Subscriptions](channels/README.md) directly.
+- **Observe and debug** — Collect metrics in [Observability](observability/metrics/collecting-metrics.md) or trace lost events in [Troubleshooting](troubleshooting/README.md).
+- **Install or administer Eventing** — See [Install and Manage](../install/README.md) for installation, Broker class defaults, and cluster-wide settings.
diff --git a/docs/versioned/eventing/brokers/broker-developer-config-options.md b/docs/versioned/eventing/brokers/broker-developer-config-options.md
index 41e761cdede..9c3924975cf 100644
--- a/docs/versioned/eventing/brokers/broker-developer-config-options.md
+++ b/docs/versioned/eventing/brokers/broker-developer-config-options.md
@@ -19,14 +19,15 @@ function: reference
- You can specify the number of retry attempts before sending the event to the dead-letter sink using the `retry` configuration.
- `spec.delivery` is used to configure event delivery options. Event delivery options specify what happens to an event that fails to be delivered to an event sink. For more information, see the documentation on [Event delivery](../event-delivery.md).
-### Advanced broker class options
+### Broker class options { #advanced-broker-class-options }
+
When a Broker is created without a specified `eventing.knative.dev/broker.class` annotation, by default the `MTChannelBasedBroker` Broker class is used, as specified in the `config-br-defaults` ConfigMap.
-In case you have multiple Broker classes installed in your cluster and want to use a non-default Broker class for a Broker, you can modify the `eventing.knative.dev/broker.class` annotation and `spec.config` for the Broker object.
+If you have multiple Broker classes installed in your cluster and want to use a non-default Broker class for a **new** Broker, set the `eventing.knative.dev/broker.class` annotation and `spec.config` before applying the Broker:
-1. Set the `eventing.knative.dev/broker.class` annotation. Replace `MTChannelBasedBroker` in the following example with the class type you want to use. Be aware that the Broker class annoation is immutable and thus can't be updated after the Broker got created:
+1. Set the `eventing.knative.dev/broker.class` annotation to the class you want to use (for example, `Kafka` or `RabbitMQBroker`). This annotation is immutable and cannot be changed after the Broker is created; to switch classes for an existing Broker, create a new Broker with the desired class and migrate Triggers to it.
-2. Configure the `spec.config` with the details of the ConfigMap that defines the required configuration for the Broker class (e.g. with some Channel configurations in case of the `MTChannelBasedBroker`):
+1. Configure `spec.config` with the ConfigMap that defines the configuration for that Broker class (for example, Channel configuration for `MTChannelBasedBroker`).
For further information about configuring a default Broker class cluster wide or on a per namespace basis, check the [Administrator configuration options](../configuration/broker-configuration.md#configuring-the-broker-class).
diff --git a/docs/versioned/eventing/brokers/broker-types/kafka-broker/README.md b/docs/versioned/eventing/brokers/broker-types/kafka-broker/README.md
index 0b4cfe6c7d4..11e0683284d 100644
--- a/docs/versioned/eventing/brokers/broker-types/kafka-broker/README.md
+++ b/docs/versioned/eventing/brokers/broker-types/kafka-broker/README.md
@@ -251,7 +251,7 @@ spec:
!!! note
When using an external topic, the Knative Kafka Broker does not own the topic and is not responsible for managing the topic. This includes the topic lifecycle or its general validity. Other restrictions for general access to the topic may apply. See the documentation about using [Access Control Lists (ACLs)](https://kafka.apache.org/documentation/#security_authz).
-## Configuring the order of delivered events
+## Event ordering { #configuring-the-order-of-delivered-events }
When dispatching events, the Kafka broker can be configured to support different delivery ordering guarantees.
@@ -280,7 +280,7 @@ The supported consumer delivery guarantees are:
The `unordered` delivery is the default ordering guarantee.
-## Data plane Isolation vs Shared Data plane
+## Data plane isolation { #data-plane-isolation-vs-shared-data-plane }
Knative Kafka Broker implementation has 2 planes: control plane and data plane. Control plane consists of controllers that talk to Kubernetes API, watch for custom objects and manage the data plane.
diff --git a/docs/versioned/eventing/brokers/broker-types/rabbitmq-broker/README.md b/docs/versioned/eventing/brokers/broker-types/rabbitmq-broker/README.md
index be0f3bfc590..016135127a4 100644
--- a/docs/versioned/eventing/brokers/broker-types/rabbitmq-broker/README.md
+++ b/docs/versioned/eventing/brokers/broker-types/rabbitmq-broker/README.md
@@ -13,9 +13,11 @@ This topic describes how to create a RabbitMQ Broker.
These directions assume your cluster administrator has [installed the Knative RabbitMQ broker](../../../../install/eventing/rabbitmq-install.md).
-## Create a RabbitMQBrokerConfig object
+## Create a RabbitMQBrokerConfig { #create-a-rabbitmqbrokerconfig-object }
-1. Create a YAML file using the following template:
+Choose either an in-cluster RabbitMQ Cluster Operator instance (`name`) or an external RabbitMQ server (`connectionSecret`). Do not set both fields in the same `RabbitmqBrokerConfig`.
+
+=== "In-cluster (RabbitMQ Cluster Operator)"
```yaml
apiVersion: eventing.knative.dev/v1alpha1
kind: RabbitmqBrokerConfig
@@ -23,27 +25,28 @@ These directions assume your cluster administrator has [installed the Knative Ra
name:
spec:
rabbitmqClusterReference:
- # Configure name if a RabbitMQ Cluster Operator is being used.
name:
- # Configure connectionSecret if an external RabbitMQ cluster is being used.
+ queueType: quorum
+ ```
+
+=== "External RabbitMQ server"
+ ```yaml
+ apiVersion: eventing.knative.dev/v1alpha1
+ kind: RabbitmqBrokerConfig
+ metadata:
+ name:
+ spec:
+ rabbitmqClusterReference:
connectionSecret:
name: rabbitmq-secret-credentials
queueType: quorum
```
- Where:
- - is the name you want for your RabbitMQBrokerConfig object.
- - is the name of the RabbitMQ cluster you created earlier.
+Apply the YAML file:
- !!! note
- You cannot set `name` and `connectionSecret` at the same time, since `name` is for a RabbitMQ Cluster Operator instance running in the same cluster as the Broker, and `connectionSecret` is for an external RabbitMQ server.
-
-1. Apply the YAML file by running the command:
-
- ```bash
- kubectl create -f
- ```
- Where `` is the name of the file you created in the previous step.
+```bash
+kubectl apply -f .yaml
+```
## Create a RabbitMQBroker object
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/channels/subscriptions.md b/docs/versioned/eventing/channels/subscriptions.md
index 94276abd61c..63f6083e261 100644
--- a/docs/versioned/eventing/channels/subscriptions.md
+++ b/docs/versioned/eventing/channels/subscriptions.md
@@ -24,48 +24,14 @@ For more information about Subscription objects, see
```bash
kn subscription create \
- --channel : \
- --sink : \
- --sink-reply : \
- --sink-dead-letter :
+ --channel \
+ --sink :
```
- - `--channel` specifies the source for cloud events that should be processed.
- You must provide the Channel name. If you are not using the default Channel that is backed by the
- Channel resource, you must prefix the Channel name with the `` for the
- specified Channel type.
- For example, this is `messaging.knative.dev:v1beta1:KafkaChannel` for a Kafka-backed Channel.
+ Optional flags: `--sink-reply :` (where reply events are sent) and `--sink-dead-letter :` (where failed events are sent).
- - `--sink` specifies the target destination to which the event should be delivered.
- By default, the `` is interpreted as a Knative service of this name, in the same
- namespace as the Subscription.
- You can specify the type of the Sink by using one of the following prefixes:
-
- - `ksvc`: A Knative service.
- - `svc`: A Kubernetes Service.
- - `channel`: A Channel that should be used as the destination. You can only reference default
- Channel types here.
- - `broker`: An Eventing Broker.
- - `--sink-reply` is an optional argument you can use to specify where the Sink reply is sent.
- It uses the same naming conventions for specifying the Sink as the `--sink` flag.
- - `--sink-dead-letter` is an optional argument you can use to specify where to send the
- CloudEvent in case of a failure. It uses the same naming conventions for specifying the Sink
- as the `--sink` flag.
-
- - `ksvc`: A Knative service.
- - `svc`: A Kubernetes Service.
- - `channel`: A Channel that should be used as destination. Only default Channel types can be referenced here.
- - `broker`: An Eventing Broker.
- - `--sink-reply` and `--sink-dead-letter` are optional arguments. They can be used to specify where the Sink reply is sent, and where to send the CloudEvent in case of a failure, respectively. Both use the same naming conventions for specifying the Sink as the `--sink` flag.
-
-
- This example command creates a Subscription named `mysubscription` that routes events from a Channel
- named `mychannel` to a Knative service named `myservice`.
-
-
- !!! note
- The Sink prefix is optional. You can also specify the service for `--sink` as just
- `--sink ` and omit the `ksvc` prefix.
+ - `--channel` specifies the source Channel. If you are not using the default Channel backed by the `Channel` resource, prefix the name with `:` (for example, `messaging.knative.dev:v1beta1:KafkaChannel:mychannel`).
+ - `--sink` specifies the target destination (defaults to a Knative Service in the same namespace if no prefix is given). Supported prefixes: `ksvc` (Knative Service), `svc` (Kubernetes Service), `channel` (default Channel), or `broker` (Eventing Broker).
=== "YAML"
@@ -224,7 +190,7 @@ You can delete a Subscription by using the `kn` or `kubectl` CLI tools.
=== "kubectl"
```bash
- kubectl subscription delete
+ kubectl delete subscription
```
## Next steps
diff --git a/docs/versioned/eventing/custom-event-source/containersource/README.md b/docs/versioned/eventing/custom-event-source/containersource/README.md
index 092d364a3b5..dae03728940 100644
--- a/docs/versioned/eventing/custom-event-source/containersource/README.md
+++ b/docs/versioned/eventing/custom-event-source/containersource/README.md
@@ -20,7 +20,7 @@ container image, and a ContainerSource that uses your image URI.
Before you can create a ContainerSource object, you must have [Knative Eventing](../../../install/yaml-install/eventing/install-eventing-with-yaml.md) installed on your cluster.
-## Develop, build and publish a container image
+## Build and publish an image { #develop-build-and-publish-a-container-image }
You can develop a container image by using any language, and can build and publish your image by using any tools you like. The following are some basic guidelines:
diff --git a/docs/versioned/eventing/custom-event-source/custom-event-source/receive-adapter.md b/docs/versioned/eventing/custom-event-source/custom-event-source/receive-adapter.md
index 279304f1a5e..0e39b798bbc 100644
--- a/docs/versioned/eventing/custom-event-source/custom-event-source/receive-adapter.md
+++ b/docs/versioned/eventing/custom-event-source/custom-event-source/receive-adapter.md
@@ -73,7 +73,7 @@ new adapter with passed variables via the `EnvConfigAccessor`. The created adapt
}
```
-## Managing the Receive Adapter in the Controller
+## Manage the receive adapter { #managing-the-receive-adapter-in-the-controller }
1. Update the `ObservedGeneration` and initialize the `Status` conditions, as defined in the `samplesource_lifecycle.go` and `samplesource_types.go` files:
diff --git a/docs/versioned/eventing/custom-event-source/sinkbinding/README.md b/docs/versioned/eventing/custom-event-source/sinkbinding/README.md
index e7844f7e9d0..13ca8caa22d 100644
--- a/docs/versioned/eventing/custom-event-source/sinkbinding/README.md
+++ b/docs/versioned/eventing/custom-event-source/sinkbinding/README.md
@@ -17,7 +17,7 @@ A _subject_ is a Kubernetes resource that embeds a PodSpec template and produces
A _sink_ is an addressable Kubernetes object that can receive events.
The SinkBinding object injects environment variables into the PodTemplateSpec of the
-sink. Because of this, the application code does not need to interact
+subject. Because of this, the application code does not need to interact
directly with the Kubernetes API to locate the event destination.
These environment variables are as follows:
diff --git a/docs/versioned/eventing/custom-event-source/sinkbinding/create-a-sinkbinding.md b/docs/versioned/eventing/custom-event-source/sinkbinding/create-a-sinkbinding.md
index 31cfc5d367e..cc0236bbd75 100644
--- a/docs/versioned/eventing/custom-event-source/sinkbinding/create-a-sinkbinding.md
+++ b/docs/versioned/eventing/custom-event-source/sinkbinding/create-a-sinkbinding.md
@@ -25,7 +25,7 @@ Before you can create a SinkBinding object:
- You must have Knative Eventing installed on your cluster.
- Optional: If you want to use `kn` commands with SinkBinding, install the `kn` CLI.
-## Optional: Choose SinkBinding namespace selection behavior
+## Namespace selection { #optional-choose-sinkbinding-namespace-selection-behavior }
The SinkBinding object operates in one of two modes: `exclusion` or `inclusion`.
@@ -118,7 +118,7 @@ create a Knative service.
1. Apply the YAML file by running the command:
```bash
- kubectl apply -f .yaml
+ kubectl apply -f .yaml -n
```
Where `` is the name of the file you created in the previous step.
@@ -177,7 +177,7 @@ any extra overrides given by `CE_OVERRIDES`.
1. Apply the YAML file by running the command:
```bash
- kubectl apply -f .yaml
+ kubectl apply -f .yaml -n
```
Where `` is the name of the file you created in the previous step.
@@ -204,7 +204,7 @@ Create a `SinkBinding` object that directs events from your subject to the sink.
- `Job:batch/v1:app=heartbeat-cron` matches all jobs in namespace with label `app=heartbeat-cron`.
- `Deployment:apps/v1:myapp` matches a deployment called `myapp` in the namespace.
- `Service:serving.knative.dev/v1:hello` matches the service called `hello`.
- - `` is the sink to connect. For example `http://event-display.svc.cluster.local`.
+ - `` is the sink to connect (for example `ksvc:event-display`, or a full URI such as `http://event-display..svc.cluster.local`).
- Optional: `` in the form `key=value`.
Cloud Event overrides control the output format and modifications of the event
sent to the sink and are applied before sending the event.
@@ -214,10 +214,10 @@ Create a `SinkBinding` object that directs events from your subject to the sink.
For example:
```bash
- $ kn source binding create bind-heartbeat \
+ kn source binding create bind-heartbeat \
--namespace sinkbinding-example \
--subject "Job:batch/v1:app=heartbeat-cron" \
- --sink http://event-display.svc.cluster.local \
+ --sink ksvc:event-display \
--ce-override "sink=bound"
```
@@ -258,7 +258,7 @@ Create a `SinkBinding` object that directs events from your subject to the sink.
1. Apply the YAML file by running the command:
```bash
- kubectl apply -f .yaml
+ kubectl apply -f .yaml -n
```
Where `` is the name of the file you created in the previous step.
@@ -268,16 +268,12 @@ Create a `SinkBinding` object that directs events from your subject to the sink.
service logs for your sink:
```bash
- kubectl logs -l -c --since=10m
+ kubectl logs -n -l serving.knative.dev/service= -c user-container --since=10m
```
- Where:
-
- - `` is the name of your sink.
- - `` is the name of the container your sink is running in.
For example:
```bash
- $ kubectl logs -l serving.knative.dev/service=event-display -c user-container --since=10m
+ kubectl logs -n sinkbinding-example -l serving.knative.dev/service=event-display -c user-container --since=10m
```
2. From the output, observe the lines showing the request headers and body of the event message,
@@ -304,12 +300,14 @@ sent by the source to the display function. For example:
}
```
-## Delete a SinkBinding
+## Clean up { #delete-a-sinkbinding }
-To delete the SinkBinding object and all of the related resources in the namespace,
-delete the namespace by running:
+To remove the SinkBinding and example resources without affecting other workloads in the namespace:
```bash
-kubectl delete namespace
+kubectl delete sinkbinding -n
+kubectl delete cronjob heartbeat-cron -n
+kubectl delete kservice event-display -n
```
-Where `` is the name of the namespace that contains the SinkBinding object.
+
+If you created a dedicated disposable namespace specifically for this example, you can remove everything at once with `kubectl delete namespace `.
diff --git a/docs/versioned/eventing/event-delivery.md b/docs/versioned/eventing/event-delivery.md
index 14cb9bcc9aa..b98d9f842b2 100644
--- a/docs/versioned/eventing/event-delivery.md
+++ b/docs/versioned/eventing/event-delivery.md
@@ -9,9 +9,18 @@ function: how-to
You can configure event delivery parameters for Knative Eventing components that are applied in cases where an event fails to be delivered
-## Configuring Subscription event delivery
+## Delivery parameters
-You can configure how events are delivered for each Subscription by adding a `delivery` spec to the `Subscription` object, as shown in the following example:
+Delivery parameters can be set on a `Broker` (`spec.delivery`), a `Trigger` (`spec.delivery`, which overrides the Broker's delivery spec for that Trigger), a `Channel` (`spec.delivery`), or a `Subscription` (`spec.delivery`).
+
+- `deadLetterSink`: Destination (any Addressable resource such as a Knative Service, Kubernetes Service, or URI) that receives events after all delivery attempts fail. Make sure the dead-letter sink is ready before enabling it; if delivery to the dead-letter sink also fails, the event is dropped and logged.
+- `retry`: Number of retry attempts after the initial delivery attempt fails (total attempts = `retry + 1`).
+- `backoffPolicy`: Delay strategy between retries — `linear` (increases linearly by `backoffDelay * attempt`) or `exponential` (doubles each attempt: `backoffDelay * 2^attempt`).
+- `backoffDelay`: Base delay in ISO 8601 duration format (for example, `PT1S` for 1 second).
+
+## Subscription delivery { #configuring-subscription-event-delivery }
+
+Add `spec.delivery` to a `Subscription`:
```yaml
apiVersion: messaging.knative.dev/v1
@@ -26,21 +35,14 @@ spec:
apiVersion: serving.knative.dev/v1
kind: Service
name: example-sink
- backoffDelay:
- backoffPolicy:
- retry:
+ backoffDelay: PT1S
+ backoffPolicy: exponential
+ retry: 5
```
-Where
+## Broker delivery { #configuring-broker-event-delivery }
-- The `deadLetterSink` spec contains configuration settings to enable using a dead letter sink. This tells the Subscription what happens to events that cannot be delivered to the subscriber. When this is configured, events that fail to be delivered are sent to the dead letter sink destination. The destination can be a Knative Service or a URI. In the example, the destination is a `Service` object, or Knative Service, named `example-sink`.
-- The `backoffDelay` delivery parameter specifies the time delay before an event delivery retry is attempted after a failure. The duration of the `backoffDelay` parameter is specified using the ISO 8601 format. For example, `PT1S` specifies a 1 second delay.
-- The `backoffPolicy` delivery parameter can be used to specify the retry back off policy. The policy can be specified as either `linear` or `exponential`. When using the `linear` back off policy, the back off delay is the time interval specified between retries. When using the `exponential` back off policy, the back off delay is equal to `backoffDelay*2^`.
-- `retry` specifies the number of times that event delivery is retried before the event is sent to the dead letter sink.
-
-## Configuring Broker event delivery
-
-You can configure how events are delivered for each Broker by adding a `delivery` spec, as shown in the following example:
+Add `spec.delivery` to a `Broker` (or override it per `Trigger`):
```yaml
apiVersion: eventing.knative.dev/v1
@@ -54,17 +56,16 @@ spec:
apiVersion: serving.knative.dev/v1
kind: Service
name: example-sink
- backoffDelay:
- backoffPolicy:
- retry:
+ backoffDelay: PT1S
+ backoffPolicy: exponential
+ retry: 5
```
-Where
+### Verify delivery failure handling
+
+1. Apply the Broker, Trigger, Channel, or Subscription with `spec.delivery` and confirm both the delivery owner and the dead-letter sink report `READY=True` (for example, `kubectl get broker,trigger,channel,subscription,ksvc -n `).
-- The `deadLetterSink` spec contains configuration settings to enable using a dead letter sink. This tells the Subscription what happens to events that cannot be delivered to the subscriber. When this is configured, events that fail to be delivered are sent to the dead letter sink destination. The destination can be any Addressable object that conforms to the Knative Eventing sink contract, such as a Knative Service, a Kubernetes Service, or a URI. In the example, the destination is a `Service` object, or Knative Service, named `example-sink`.
-- The `backoffDelay` delivery parameter specifies the time delay before an event delivery retry is attempted after a failure. The duration of the `backoffDelay` parameter is specified using the ISO 8601 format. For example, `PT1S` specifies a 1 second delay.
-- The `backoffPolicy` delivery parameter can be used to specify the retry back off policy. The policy can be specified as either `linear` or `exponential`. When using the `linear` back off policy, the back off delay is the time interval specified between retries. This is a linearly increasing delay, which means that the back off delay increases by the given interval for each retry. When using the `exponential` back off policy, the back off delay increases by a multiplier of the given interval for each retry.
-- `retry` specifies the number of times that event delivery is retried before the event is sent to the dead letter sink. The initial delivery attempt is not included in the retry count, so the total number of delivery attempts is equal to the `retry` value +1.
+1. Send a CloudEvent with a known `Ce-Id` **through the configured Broker or Channel** to a subscriber that returns HTTP `500`, then check the dead-letter sink logs to confirm the failed event arrived with the same `Ce-Id` (and, where the backing Channel implementation supports them, the error extension attributes `knativeerrordest`, `knativeerrorcode`, and `knativeerrordata`).
### Broker support
@@ -81,10 +82,10 @@ The following table summarizes which delivery parameters are supported for each
`deadLetterSink` must be a GCP Pub/Sub topic URI.
`googlecloud` Broker only supports the `exponential` back off policy.
-## Configuring Channel event delivery
+## Dead-letter error attributes { #configuring-channel-event-delivery }
Failed events may, depending on the specific Channel implementation in use, be
-enhanced with extension attributes prior to forwarding to the`deadLetterSink`.
+enhanced with extension attributes prior to forwarding to the `deadLetterSink`.
These extension attributes are as follows:
- **knativeerrordest**
diff --git a/docs/versioned/eventing/event-registry/README.md b/docs/versioned/eventing/event-registry/README.md
index 63f36a5ded4..5b38f72cde0 100644
--- a/docs/versioned/eventing/event-registry/README.md
+++ b/docs/versioned/eventing/event-registry/README.md
@@ -139,21 +139,22 @@ metadata:
namespace: default
spec:
bootstrapServers:
- - my-cluster-kafka-bootstrap.kafka:9092
+ - my-cluster-kafka-bootstrap.kafka:9092
topics:
- - knative-demo
- - news
+ - knative-demo
+ - news
sink:
- apiVersion: eventing.knative.dev/v1
- kind: Broker
- name: default
+ ref:
+ apiVersion: eventing.knative.dev/v1
+ kind: Broker
+ name: default
```
The `topics` field in the above example is used to generate the EventType `source` field.
-After running `kubectl apply` using the above YAML, the KafkaSource `kafka-source-sample`
+After running `kubectl apply` using the above YAML, the KafkaSource `kafka-sample`
is instantiated, and two EventTypes are added to the registry because there are
-two topics.
+two topics. Note that `EventType` readiness (`Ready=True`) confirms the referenced Broker or Channel exists, not that events have already been emitted.
## Discover events using the registry
diff --git a/docs/versioned/eventing/faq/README.md b/docs/versioned/eventing/faq/README.md
deleted file mode 100644
index d942bd4efa1..00000000000
--- a/docs/versioned/eventing/faq/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-audience: developer
-components:
- - eventing
-function: reference
----
-
-# Eventing FAQs
-
-## What is a Sugar Controller?
-
-The Sugar Controller is an optional controller which will automatically create and clean up brokers based on the creation/deletion of namespaces and triggers.
-For more information on how to enable and configure the sugar controller, read the [sugar controller documentation](../sugar/README.md).
diff --git a/docs/versioned/eventing/features/sender-identity.md b/docs/versioned/eventing/features/sender-identity.md
index 5c21d2e954e..57c74e26e53 100644
--- a/docs/versioned/eventing/features/sender-identity.md
+++ b/docs/versioned/eventing/features/sender-identity.md
@@ -39,7 +39,7 @@ OIDC authentication is currently supported for the following components:
- [InMemoryChannel](../channels/channels-crds.md)
- [KafkaChannel](../channels/channels-crds.md)
- Sources:
- - [ApiServerSource](../sources/apiserversource/README.md)
+ - [ApiServerSource](../sources/apiserversource/getting-started.md)
- [PingSource](../sources/ping-source/README.md)
- [KafkaSource](../sources/kafka-source/README.md)
- [SinkBinding](../custom-event-source/sinkbinding/README.md)
diff --git a/docs/versioned/eventing/sinks/README.md b/docs/versioned/eventing/sinks/README.md
index 31537fa2031..1912f2b92a8 100644
--- a/docs/versioned/eventing/sinks/README.md
+++ b/docs/versioned/eventing/sinks/README.md
@@ -91,7 +91,7 @@ To use a Kubernetes custom resource (CR) as a sink for events, you must:
- watch
```
-## Filtering events sent to sinks by using Triggers
+## Filter events with Triggers { #filtering-events-sent-to-sinks-by-using-triggers }
You can connect a Trigger to a sink, so that events are filtered before they are sent to the sink. A sink that is connected to a Trigger is configured as a `subscriber` in the Trigger resource spec.
@@ -116,7 +116,7 @@ Where;
- `` is the name of the Trigger being connected to the sink.
- `` is the name of a KafkaSink object.
-## Specifying sinks using the kn CLI --sink flag
+## Use the `kn` `--sink` flag { #specifying-sinks-using-the-kn-cli---sink-flag }
When you create an event-producing CR by using the Knative (`kn`) CLI, you can specify a sink where events are sent to from that resource, by using the `--sink` flag.
diff --git a/docs/versioned/eventing/sinks/kafka-sink.md b/docs/versioned/eventing/sinks/kafka-sink.md
index 2d759d2859e..a5ae79de35f 100644
--- a/docs/versioned/eventing/sinks/kafka-sink.md
+++ b/docs/versioned/eventing/sinks/kafka-sink.md
@@ -198,7 +198,7 @@ in particular, [Producer configurations](https://kafka.apache.org/documentation/
-## Enable debug logging for data plane components
+## Debug logging { #enable-debug-logging-for-data-plane-components }
To enable debug logging for data plane components change the logging level to `DEBUG` in the `kafka-config-logging` ConfigMap.
diff --git a/docs/versioned/eventing/sources/README.md b/docs/versioned/eventing/sources/README.md
index 37983fb52f7..10fe4df0718 100644
--- a/docs/versioned/eventing/sources/README.md
+++ b/docs/versioned/eventing/sources/README.md
@@ -39,7 +39,7 @@ All Sources are part of the `sources` category.
| [Amazon DynamoDB](integration-source/aws_ddbstreams.md) | Alpha | Knative | Receive event notifications from an Amazon DynamoDB Streams. |
| [Amazon S3](integration-source/aws_s3.md) | Alpha | Knative | Receive event notifications from an Amazon S3 Bucket. |
| [Amazon SQS](integration-source/aws_sqs.md) | Alpha | Knative | Receive event notifications from an Amazon SQS queue. |
-| [APIServerSource](apiserversource/README.md) | Stable | Knative | Brings Kubernetes API server events into Knative. The APIServerSource fires a new event each time a Kubernetes resource is created, updated or deleted. |
+| [APIServerSource](apiserversource/getting-started.md) | Stable | Knative | Brings Kubernetes API server events into Knative. The APIServerSource fires a new event each time a Kubernetes resource is created, updated or deleted. |
| [Apache Kafka](kafka-source/README.md) | Stable | Knative | Brings [Apache Kafka](https://kafka.apache.org/) messages into Knative. The KafkaSource reads events from an Apache Kafka Cluster, and passes these events to a sink so that they can be consumed. See the [Kafka Source](kafka-source/README.md) example for more details. |
| [CephSource](https://github.com/knative-extensions/eventing-ceph) | Beta | Knative | The Ceph source converts bucket notifications from [Ceph format](https://docs.ceph.com/docs/master/radosgw/notifications/#events) into CloudEvents format, and inject them into Knative. Conversion logic follow the one described for [AWS S3](https://github.com/cloudevents/spec/blob/master/adapters/aws-s3.md) bucket notifications. |
| [ContainerSource](../custom-event-source/containersource/README.md) | Stable | Knative | The ContainerSource instantiates container image(s) that can generate events until the ContainerSource is deleted. This may be used, for example, to poll an FTP server for new files or generate events at a set time interval. Given a `spec.template` with at least a container image specified, the ContainerSource keeps a Pod running with the specified image(s). `K_SINK` (destination address) and `KE_CE_OVERRIDES` (JSON CloudEvents attributes) environment variables are injected into the running image(s). It is used by multiple other Sources as underlying infrastructure. Refer to the [Container Source](../custom-event-source/containersource/README.md) example for more details. |
diff --git a/docs/versioned/eventing/sources/apiserversource/README.md b/docs/versioned/eventing/sources/apiserversource/README.md
deleted file mode 100644
index 1f2e6fd8465..00000000000
--- a/docs/versioned/eventing/sources/apiserversource/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
----
-audience: developer
-components:
- - eventing
-function: explanation
----
-
-# ApiServerSource
-
-
-
-
-The API server source is a Knative Eventing Kubernetes custom resource that listens for events emitted by the
-Kubernetes API server (eg. pod creation, deployment updates, etc...) and forwards them as CloudEvents to a sink.
-
-The API server source is part of the core Knative Eventing component, and is provided by default when Knative Eventing is installed. Multiple instances of an ApiServerSource object can be created by users.
diff --git a/docs/versioned/eventing/sources/apiserversource/getting-started.md b/docs/versioned/eventing/sources/apiserversource/getting-started.md
index 19ed26b93a1..baf836d1864 100644
--- a/docs/versioned/eventing/sources/apiserversource/getting-started.md
+++ b/docs/versioned/eventing/sources/apiserversource/getting-started.md
@@ -5,26 +5,23 @@ components:
function: how to
---
-# Creating an ApiServerSource object
+# ApiServerSource
+

-This topic describes how to create an ApiServerSource object.
+`ApiServerSource` is a core Knative Eventing source that watches Kubernetes API server events (such as pod creation or deployment updates) and forwards them as CloudEvents to a sink.
-## Before you begin
+## Prerequisites { #before-you-begin }
-Before you can create an ApiServerSource object:
+- [Knative Eventing](../../../install/yaml-install/eventing/install-eventing-with-yaml.md) installed on your cluster.
+- Optional: the [`kn` CLI](../../../client/install-kn.md) if you prefer `kn` commands.
-- You must have [Knative Eventing](../../../install/yaml-install/eventing/install-eventing-with-yaml.md)
-installed on your cluster.
-- You must install the [`kubectl` CLI](https://kubernetes.io/docs/tasks/tools/install-kubectl/)
-tool.
-- Optional: If you want to use the `kn` commands, install the [`kn`](../../../client/configure-kn.md) tool.
+## Create an ApiServerSource { #create-an-apiserversource-object }
-## Create an ApiServerSource object
+Use a single namespace (``, for example `apiserversource-example` or `default`) consistently across all steps below.
-1. Optional: Create a namespace for the API server source instance by running the
-command:
+1. Optional: Create a dedicated namespace:
```bash
kubectl create namespace
@@ -193,14 +190,14 @@ command:
--mode "Resource" \
--resource "Event:v1" \
--service-account \
- --sink
+ --sink svc:event-display
```
Where:
- `` is the name of the source that you want to create.
- - `` is the name of the namespace that you created in step 1 earlier.
- - `` is the name of the ServiceAccount that you created in step 2 earlier.
- - `` is the name of your sink, for example, `http://event-display.pingsource-example.svc.cluster.local`.
+ - `` is the namespace you chose in step 1.
+ - `` is the name of the ServiceAccount you created in step 2.
+ - `--sink` uses `svc:event-display` to target the Kubernetes Service created above (or pass a full URI such as `http://event-display..svc.cluster.local`).
For a list of available options, see the [Knative client documentation](https://github.com/knative/client/blob/main/docs/cmd/kn_source_apiserver_create.md#kn-source-apiserver-create).
@@ -323,13 +320,16 @@ command:
}
```
-## Delete the ApiServerSource object
+## Clean up { #delete-the-apiserversource-object }
-To remove the ApiServerSource object and all of the related resources:
+To remove the resources you created:
-- Delete the namespace by running the command:
+```bash
+kubectl delete apiserversource -n
+kubectl delete deployment,service event-display -n
+kubectl delete rolebinding -n
+kubectl delete role -n
+kubectl delete serviceaccount -n
+```
- ```bash
- kubectl delete namespace
- ```
- Where `` is the name of the namespace that you created in step 1 earlier.
+If you created a dedicated disposable namespace specifically for this example, you can remove everything at once with `kubectl delete namespace `.
diff --git a/docs/versioned/eventing/sources/kafka-source/README.md b/docs/versioned/eventing/sources/kafka-source/README.md
index 8a657f14c46..9b4dc816040 100644
--- a/docs/versioned/eventing/sources/kafka-source/README.md
+++ b/docs/versioned/eventing/sources/kafka-source/README.md
@@ -290,7 +290,7 @@ The `KafkaSource` implements the `Delivery` Specificiation, allowing you to conf
The `delivery` API is discussed in the [Handling Delivery Failure](../../event-delivery.md) chapter.
-## Optional: Specify the key deserializer
+## Key deserializer { #optional-specify-the-key-deserializer }
When `KafkaSource` receives a message from Kafka, it dumps the key in the Event extension called
`Key` and dumps Kafka message headers in the extensions starting with `kafkaheader`.
@@ -325,7 +325,7 @@ sink:
name: event-display
```
-## Optional: Specify the initial offset
+## Initial offset { #optional-specify-the-initial-offset }
By default the `KafkaSource` starts consuming from the latest offset in each partition. If you want
to consume from the earliest offset, set the initialOffset field to `earliest`, for example:
@@ -354,7 +354,7 @@ sink:
validation error. This field is honored only if there are no committed offsets for that
consumer group.
-## Connecting to a TLS-enabled Kafka Broker
+## TLS-enabled Kafka Broker { #connecting-to-a-tls-enabled-kafka-broker }
The KafkaSource supports TLS and SASL authentication methods. To enable TLS authentication, you must have the following files:
diff --git a/docs/versioned/eventing/sources/rabbitmq-source/README.md b/docs/versioned/eventing/sources/rabbitmq-source/README.md
index b4a24a4d5e5..97cd82adb7a 100644
--- a/docs/versioned/eventing/sources/rabbitmq-source/README.md
+++ b/docs/versioned/eventing/sources/rabbitmq-source/README.md
@@ -45,10 +45,11 @@ For more information about configuring the `RabbitmqCluster` CRD, see the [Rabbi
{% include "event-display.md" %}
-## Create a RabbitMQSource object
+## Create a RabbitMQSource { #create-a-rabbitmqsource-object }
-1. Create a YAML file using the following template:
+Choose either an in-cluster RabbitMQ Cluster Operator instance (`name`) or an external RabbitMQ server (`connectionSecret`). Do not set both fields in the same `RabbitmqSource`.
+=== "In-cluster (RabbitMQ Cluster Operator)"
```yaml
apiVersion: sources.knative.dev/v1alpha1
kind: RabbitmqSource
@@ -56,9 +57,30 @@ For more information about configuring the `RabbitmqCluster` CRD, see the [Rabbi
name:
spec:
rabbitmqClusterReference:
- # Configure name if a RabbitMQ Cluster Operator is being used.
name:
- # Configure connectionSecret if an external RabbitMQ cluster is being used.
+ rabbitmqResourcesConfig:
+ parallelism: 10
+ exchangeName: "eventing-rabbitmq-source"
+ queueName: "eventing-rabbitmq-source"
+ delivery:
+ retry: 5
+ backoffPolicy: "linear"
+ backoffDelay: "PT1S"
+ sink:
+ ref:
+ apiVersion: serving.knative.dev/v1
+ kind: Service
+ name: event-display
+ ```
+
+=== "External RabbitMQ server"
+ ```yaml
+ apiVersion: sources.knative.dev/v1alpha1
+ kind: RabbitmqSource
+ metadata:
+ name:
+ spec:
+ rabbitmqClusterReference:
connectionSecret:
name: rabbitmq-secret-credentials
rabbitmqResourcesConfig:
@@ -75,6 +97,12 @@ For more information about configuring the `RabbitmqCluster` CRD, see the [Rabbi
kind: Service
name: event-display
```
+
+Apply the YAML file:
+
+```bash
+kubectl apply -f .yaml
+```
Where:
- `` is the name you want for your RabbitMQSource object.
diff --git a/docs/versioned/eventing/sources/redis/README.md b/docs/versioned/eventing/sources/redis/README.md
deleted file mode 100644
index f306bc1dc68..00000000000
--- a/docs/versioned/eventing/sources/redis/README.md
+++ /dev/null
@@ -1,13 +0,0 @@
----
-audience: developer
-components:
- - eventing
-function: explanation
----
-
-# RedisStreamSource
-
-
-
-
-The RedisStreamSource reads messages from [Redis Streams](https://redis.io/docs/data-types/streams/) and sends them as CloudEvents to the referenced Sink.
diff --git a/docs/versioned/eventing/sources/redis/getting-started.md b/docs/versioned/eventing/sources/redis/getting-started.md
index a065726d56c..bd3d98c5ec6 100644
--- a/docs/versioned/eventing/sources/redis/getting-started.md
+++ b/docs/versioned/eventing/sources/redis/getting-started.md
@@ -5,13 +5,15 @@ components:
function: how-to
---
+
+
# Creating a RedisStreamSource

This topic describes how to create a `RedisStreamSource` object.
-## Install the RedisStreamSource add-on
+## Install the add-on { #install-the-redisstreamsource-add-on }
`RedisStreamSource` is a Knative Eventing add-on.
@@ -69,7 +71,7 @@ Where:
Where `` is the name of the file you created in the previous step.
-## Verify the RedisStreamSource object
+## Verify { #verify-the-redisstreamsource-object }
1. View the logs for the `event-display` event consumer by running the command:
@@ -98,7 +100,7 @@ Where:
]
```
-## Delete the RedisStreamSource object
+## Delete { #delete-the-redisstreamsource-object }
* Delete the `RedisStreamSource` object:
diff --git a/docs/versioned/eventing/sugar/README.md b/docs/versioned/eventing/sugar/README.md
index 8ceb34e212c..0fd32095c6b 100644
--- a/docs/versioned/eventing/sugar/README.md
+++ b/docs/versioned/eventing/sugar/README.md
@@ -5,6 +5,8 @@ components:
function: how-to
---
+
+
# Knative Eventing Sugar Controller
Knative Eventing Sugar Controller will react to configured labels
@@ -13,65 +15,40 @@ cluster operators and developers to focus on creating fewer resources, and the
underlying eventing infrastructure is created on-demand, and cleaned up when no
longer needed.
-## Installing
-
-The Sugar Controller is `disabled` by default and can be enabled by configuring `config-sugar` ConfigMap.
-See below for a simple example and [Configure Sugar Controller](../configuration/sugar-configuration.md) for more details.
-
-## Automatic Broker Creation
+## Prerequisites { #installing }
-One way to create a Broker is to manually apply a resource to a cluster using
-the default settings:
+The Sugar Controller is `disabled` by default. A cluster administrator must enable it by configuring the `config-sugar` ConfigMap in `knative-eventing`. See [Configure Sugar Controller](../configuration/sugar-configuration.md) for administrator setup.
-1. Copy the following YAML into a file:
-
- ```yaml
- apiVersion: eventing.knative.dev/v1
- kind: Broker
- metadata:
- name: default
- namespace: default
- ```
-
-1. Apply the YAML file by running the command:
-
- ```bash
- kubectl apply -f .yaml
- ```
- Where `` is the name of the file you created in the previous step.
-
-There might be cases where automated Broker creation is desirable, such as on
-namespace creation, or on Trigger creation. The Sugar controller enables those
-use-cases. The following sample configuration of the `sugar-config` ConfigMap
-enables Sugar Controller for select Namespaces & all Triggers.
+Example `config-sugar` ConfigMap enabling automatic Broker creation for labeled namespaces and all Triggers:
```yaml
apiVersion: v1
kind: ConfigMap
metadata:
-name: config-sugar
-namespace: knative-eventing
-labels:
+ name: config-sugar
+ namespace: knative-eventing
+ labels:
eventing.knative.dev/release: devel
data:
- # Specify a label selector to selectively apply sugaring to certain namespaces
+ # Selectively apply sugaring to namespaces matching this selector
namespace-selector: |
matchExpressions:
- key: "my.custom.injection.key"
operator: "In"
values: ["enabled"]
- # Use an empty object to enable for all triggers
+ # Use an empty object to enable for all Triggers
trigger-selector: |
{}
```
-- When a Namespace is created with label `my.custom.injection.key: enabled` , the Sugar controller will create a Broker named "default" in that
- namespace.
-- When a Trigger is created, the Sugar controller will create a Broker named "default" in the
- Trigger's namespace.
+## Automatic Broker creation { #automatic-broker-creation }
-When a Broker is deleted and but the referenced label selectors are in use, the
-Sugar Controller will automatically recreate a default Broker.
+Once a cluster administrator has enabled the Sugar Controller with the selectors above:
+
+- Labeling a Namespace with `my.custom.injection.key: enabled` creates a Broker named `default` in that namespace.
+- Creating a Trigger referencing `default` creates a Broker named `default` in the Trigger's namespace.
+
+If the `default` Broker is deleted while the matching selector still applies, the Sugar Controller recreates it. If a `default` Broker already exists, the Sugar Controller leaves it untouched and does not take ownership of it.
### Namespace Examples
@@ -106,7 +83,7 @@ Controller will do nothing.
### Trigger Example
-Create a "default" Broker in the Trigger's Namespace when creating a Trigger:
+Assuming the `hello` namespace and an `event-display` Service already exist, create a Trigger to automatically provision a `default` Broker in `hello`:
```bash
kubectl apply -f - << EOF
@@ -125,6 +102,10 @@ spec:
EOF
```
-This will make a Broker called "default" in the Namespace "hello", and attempt to send events to the "event-display" service.
+Verify that both the automatically created `default` Broker and the Trigger report `READY=True`:
+
+```bash
+kubectl get broker,trigger -n hello
+```
If the Broker named "default" already exists in the Namespace, the Sugar Controller will do nothing and the Trigger will not own the existing Broker.
diff --git a/docs/versioned/eventing/transforms/event-transform-jsonata.md b/docs/versioned/eventing/transforms/event-transform-jsonata.md
index 1e02e2c8e9b..43675805ecd 100644
--- a/docs/versioned/eventing/transforms/event-transform-jsonata.md
+++ b/docs/versioned/eventing/transforms/event-transform-jsonata.md
@@ -41,13 +41,14 @@ spec:
## CloudEvent Structure
-The input to the JSONata expression is the entire CloudEvent, including all its attributes and data. Your expression must produce a valid CloudEvent with at least these required fields:
+The input to the JSONata expression is the entire CloudEvent, including all its attributes and `data` (if present). Your expression must produce a valid CloudEvent with these required fields:
-- `specversion`: Should be set to "1.0"
+- `specversion`: Set to `"1.0"`
- `id`: A unique identifier for the event
- `type`: The event type
- `source`: The event source
-- `data`: The event payload
+
+`data` is optional in the CloudEvents specification and holds the event payload when present.
## Common Transformation Patterns
@@ -80,15 +81,15 @@ To extract fields from the data and promote them to CloudEvent attributes:
"time": time,
"userid": data.user.id,
"region": data.region,
- "data": $
+ "data": data
}
```
-The `$` symbol in JSONata represents the entire input object, so `data: $` preserves the entire original event data.
+Use `"data": data` to preserve the original event payload, or `"data": $` if you intentionally want to embed the entire input CloudEvent envelope inside the new event's `data` field.
### Restructuring Event Data
-To completely reshape the event data:
+The following standalone JSONata illustration assumes a bare JSON `order` input (for an actual CloudEvent input, reference `data.order.*`):
```jsonata
{
@@ -299,7 +300,7 @@ spec:
name: processor-service
jsonata:
expression: |
- # Request transformation
+ /* Request transformation */
{
"specversion": "1.0",
"id": id,
@@ -311,7 +312,7 @@ spec:
reply:
jsonata:
expression: |
- # Reply transformation
+ /* Reply transformation */
{
"specversion": "1.0",
"id": id,
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/eventing/troubleshooting/README.md b/docs/versioned/eventing/troubleshooting/README.md
index 0442606f8d7..480efb91a0e 100644
--- a/docs/versioned/eventing/troubleshooting/README.md
+++ b/docs/versioned/eventing/troubleshooting/README.md
@@ -7,28 +7,28 @@ function: how-to
# Debugging Knative Eventing
-This is an evolving document on how to debug a non-working Knative Eventing
-setup.
+Use this guide to trace missing events in your own Knative Eventing setup or walk through the optional self-contained debugging example below.
-## Audience
+## Quick checklist { #quick-checklist-for-your-own-resources }
-This document is intended for people that are familiar with the object model of
-[Knative Eventing](../README.md). You don't need to be an expert, but do need to
-know roughly how things fit together.
+Start from the consumer and work backward toward the producer in your namespace (``):
-## Prerequisites
+1. Check readiness and addresses across the event path:
-1. Setup [Knative Eventing and an Eventing-contrib resource](../README.md).
+ ```bash
+ kubectl get broker,trigger,channel,subscription,apiserversource,pingsource,ksvc -n
+ ```
-## Example
+ Confirm every resource reports `READY=True` and that Brokers/Channels have a populated `URL` (`status.address.url`).
-This guide uses an example consisting of an event source that sends events to a
-function.
+1. Inspect any resource with `READY=False` using `kubectl describe -n ` and read the `Conditions` messages.
+1. Check event delivery logs on the subscriber pod and on the Broker ingress/filter or Channel dispatcher pods in `knative-eventing`.
-
+## Optional lab example { #example }
+
+If you want a self-contained setup to practice the commands below, apply [example.yaml](example.yaml), which creates an `ApiServerSource` -> `Channel` -> `Subscription` -> `Service` -> `Deployment` pipeline in the `knative-debug` namespace:
-See [example.yaml](example.yaml) for the entire YAML. For any commands in this
-guide to work, you must apply [example.yaml](example.yaml):
+
```bash
kubectl apply --filename example.yaml
@@ -137,7 +137,7 @@ This should return a single Pod, which if you inspect is the one generated by
#### `chan`
`chan` uses the
-[`in-memory-channel`](https://github.com/knative/eventing/tree/{{ branch }}/config/channels/in-memory-channel).
+[`in-memory-channel`](https://github.com/knative/eventing/tree/main/config/channels/in-memory-channel).
This is a very basic channel and has few
failure modes that will be exhibited in `chan`'s `status`.
@@ -157,32 +157,28 @@ If `status` is completely missing, it implies that something is wrong with the
Next verify that `chan` is addressable:
```bash
-kubectl --namespace knative-debug get channel.messaging.knative.dev chan -o jsonpath='{.status.address.hostname}'
+kubectl --namespace knative-debug get channel.messaging.knative.dev chan -o jsonpath='{.status.address.url}'
```
-This should return a URI, likely ending in '.cluster.local'. If it doesn't, then
-it implies that something went wrong during reconciliation. See
-[Channel Controller](#channel-controller).
+This should return a cluster-local URL (typically ending in `.svc.cluster.local`). If it doesn't,
+something went wrong during reconciliation. See [Channel Controller](#channel-controller).
-We will verify that the two resources that the `chan` creates exist and are
-`Ready`.
+We will verify that the Kubernetes `Service` created for `chan` exists:
#### `Service`
-`chan` creates a K8s `Service`.
+`chan` creates a Kubernetes `Service` backed by the `in-memory-channel` dispatcher:
```bash
kubectl --namespace knative-debug get service -l messaging.knative.dev/role=in-memory-channel
```
-It's spec is completely unimportant, as Istio will ignore it. It just needs to
-exist so that `src` can send events to it. If it doesn't exist, it implies that
-something went wrong during `chan` reconciliation. See
+If it doesn't exist, something went wrong during `chan` reconciliation. See
[Channel Controller](#channel-controller).
#### `src`
-`src` is a [`ApiServerSource`](../../eventing/sources/apiserversource/README.md).
+`src` is an [`ApiServerSource`](../../eventing/sources/apiserversource/getting-started.md).
First we will verify that `src` is writing to `chan`.
diff --git a/docs/versioned/functions/README.md b/docs/versioned/functions/README.md
index dd869dba76b..7bdb8d08fa5 100644
--- a/docs/versioned/functions/README.md
+++ b/docs/versioned/functions/README.md
@@ -3,21 +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
-
-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}.
+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 75076b249fa..f6caf1138a7 100644
--- a/docs/versioned/functions/building-functions.md
+++ b/docs/versioned/functions/building-functions.md
@@ -3,50 +3,67 @@ audience: developer
components:
- functions
function: how-to
+hide_prev: true
+hide_next: true
---
-# Building functions
+# Build an image
---8<-- "build-func-intro.md"
+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
-You can build a container image for your function locally without deploying it to a cluster, by using the `build` command.
+- 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.
-### Prerequisites
+
-- You have a Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.
+## Build
-### Procedure
+Pass an explicit local image name so the build does not prompt for a registry:
---8<-- "proc-building-function.md"
+=== "func"
-## On-cluster Builds
+ ```bash
+ func build --builder pack \
+ --image localhost/my-function:latest
+ ```
-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.
+=== "kn func"
-!!! 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=""`
+ ```bash
+ kn func build --builder pack \
+ --image localhost/my-function:latest
+ ```
-### Prerequisites
+`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`.
-- 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.
+## Verify the image
-### Procedure
+Confirm the image exists in Docker:
-When running the command for the first time, you must specify the Git URL for the function:
+```bash
+docker image ls localhost/my-function:latest
+```
-=== "func"
+A row with tag `latest` and an image ID confirms the build succeeded. This does
+not push or start the container.
- ```{ .console }
- func deploy --remote --registry --git-url -p hello
- ```
-
-=== "kn func"
+
- ```{ .console }
- kn func deploy --remote --registry --git-url -p hello
- ```
+## Other builders
-After you have specified the Git URL for your function once, you can omit it in subsequent commands.
+`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/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/deploying-functions.md b/docs/versioned/functions/deploying-functions.md
index cb11900a3ef..587caa08dde 100644
--- a/docs/versioned/functions/deploying-functions.md
+++ b/docs/versioned/functions/deploying-functions.md
@@ -3,18 +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 Docker daemon on your local machine. This is already provided if you have used the Quickstart installation.
+- 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 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.
+## Deploy from your machine
-## Procedure
+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:
---8<-- "proc-deploying-function.md"
+=== "func"
+
+ ```bash
+ func deploy --registry
+ ```
+
+=== "kn func"
+
+ ```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/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/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}
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/about-knative-functions.md b/docs/versioned/getting-started/about-knative-functions.md
index 26dd4e18ca0..7a5b3debe7d 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 [Develop locally — Prepare](../functions/running-functions.md#prepare).
+
+
+
+## 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/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-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/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/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/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/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).
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/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/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/docs/versioned/serving/README.md b/docs/versioned/serving/README.md
index a4e30ebfd47..879e41c038d 100644
--- a/docs/versioned/serving/README.md
+++ b/docs/versioned/serving/README.md
@@ -3,55 +3,44 @@ audience: developer
components:
- serving
function: explanation
+hide_prev: true
+hide_next: true
---
# Knative Serving
--8<-- "about-serving.md"
-## Common use cases
-
-Examples of supported Knative Serving use cases:
-
-- Rapid deployment of serverless containers.
-- Autoscaling, including scaling pods down to zero.
-- Support for multiple networking layers, such as Contour, Kourier, and Istio, for integration into existing environments.
-
-Knative Serving supports both HTTP and [HTTPS](encryption/encryption-overview.md) networking protocols.
-
-## Installation
-
-You can install Knative Serving via the methods listed on the [installation page](../install/README.md).
-
-## 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.
-
-With the `Service` resource, a deployed service will automatically have a
-matching route and configuration created. Each time the `Service` is updated, a
-new revision is created.
-
-## More samples and demos
-
-- [Knative Serving code samples](../samples/serving.md)
-
-## Debugging Knative Serving issues
-
-- [Debugging application issues](troubleshooting/debugging-application-issues.md)
-
-## Configuration and Networking
-
-- [Configuring cluster local routes](services/private-services.md)
-- [Using a custom domain](using-a-custom-domain.md)
-- [Traffic management](traffic-management.md)
-
-## Observability
-
-- [Serving Metrics API](observability/metrics/serving-metrics.md)
-
-## Known Issues
-
-See the [Knative Serving Issues](https://github.com/knative/serving/issues) page
-for a full list of known issues.
+## Start here
+
+New to Knative Serving? Follow [Try Serving](../getting-started/first-service.md)
+to deploy a container, watch it scale to zero, and split traffic between
+Revisions on a local cluster.
+
+## Choose a task
+
+- **Deploy and configure:** [create a Service](services/creating-services.md),
+ [convert a Kubernetes Deployment](convert-deployment-to-knative-service.md),
+ [deploy from a private registry](deploying-from-private-registry.md), or
+ configure [resource limits](services/configure-requests-limits-services.md),
+ [health probes](services/configure-probing.md), and [volumes](services/storage.md).
+- **Networking:** configure [private Services](services/private-services.md),
+ [custom domains](services/custom-domains.md),
+ [custom TLS certificates](services/custom-tls-certificate-domain-mapping.md),
+ or [HTTP protocols](services/http-protocol.md).
+- **Revisions and traffic:** manage [Revisions](revisions/README.md),
+ [split traffic and assign tags](traffic-management.md), or configure
+ [gradual rollouts](rolling-out-latest-revision.md).
+- **Autoscaling:** tune [autoscaling](autoscaling/README.md) defaults,
+ [concurrency](autoscaling/concurrency.md), [scale bounds](autoscaling/scale-bounds.md),
+ [scale to zero](autoscaling/scale-to-zero.md), and [request buffering](load-balancing/README.md).
+- **Observe and troubleshoot:** [collect metrics](observability/metrics/collecting-metrics.md),
+ browse the [metrics reference](observability/metrics/serving-metrics.md), or
+ [troubleshoot application issues](troubleshooting/debugging-application-issues.md).
+
+## Architecture and reference
+
+- [Architecture](architecture.md) and [Request flow](request-flow.md)
+- [Serving API reference](reference/serving-api.md)
+- [Serving code samples](../samples/serving.md)
+- [Install Knative Serving](../install/README.md)
diff --git a/docs/versioned/serving/app-security/secure-pod-defaults.md b/docs/versioned/serving/app-security/secure-pod-defaults.md
deleted file mode 100644
index 4dfdf1ec353..00000000000
--- a/docs/versioned/serving/app-security/secure-pod-defaults.md
+++ /dev/null
@@ -1,12 +0,0 @@
----
-audience: developer
-components:
- - serving
-function: how-to
----
-
-Knative Serving provides a `secure-pod-defaults` configuration option that allows operators to default Service configuration to run in the Kubernetes [restricted](https://kubernetes.io/docs/concepts/security/pod-security-standards/#restricted) Pod Security Standard profile without requiring application developers to explicitly set security properties.
-
-These settings are controlled by operators so please refer to the [administration documentation](../configuration/secure-pod-defaults.md).
-
-
diff --git a/docs/versioned/serving/autoscaling/README.md b/docs/versioned/serving/autoscaling/README.md
index 962225636c6..7a11a15b091 100644
--- a/docs/versioned/serving/autoscaling/README.md
+++ b/docs/versioned/serving/autoscaling/README.md
@@ -7,18 +7,61 @@ function: explanation
# Autoscaling
-Knative Serving provides automatic scaling, or _autoscaling_, for applications to match incoming demand. This is provided by default, by using the Knative Pod Autoscaler (KPA).
+Knative Serving automatically scales application pods to match incoming demand,
+including scaling down to zero when idle. Autoscaling works out of the box with
+the default **Knative Pod Autoscaler (KPA)** — you do not need to configure
+concurrency or scale bounds unless you want to override the defaults.
-For example, if an application is receiving no traffic and scale to zero is enabled, Knative Serving scales the application down to zero replicas. If scaling to zero is disabled, the application is scaled down to the minimum number of replicas specified for applications on the cluster. Replicas are scaled up to meet demand if traffic to the application increases.
+## Choose a tuning goal
-You can enable and disable scale to zero functionality for your cluster if you have cluster administrator permissions. See [Configuring scale to zero](scale-to-zero.md).
-
-To use autoscaling for your application if it is enabled on your cluster, you must configure [concurrency](concurrency.md) and [scale bounds](scale-bounds.md).
-
+- **Cap concurrent requests per pod (protect a database or single-threaded app):**
+ set a soft or hard [concurrency](concurrency.md) limit.
+- **Avoid cold starts or cap maximum cost:** set `min-scale` and `max-scale` in
+ [Scale bounds](scale-bounds.md).
+- **Keep the last pod warm longer before scaling to zero:** adjust
+ [Scale to zero](scale-to-zero.md) retention settings.
+- **Scale on requests per second (RPS) or CPU/memory:** choose a
+ [metric](autoscaling-metrics.md) and [target](autoscaling-targets.md), or
+ switch to the Kubernetes HPA in [Autoscaler types](autoscaler-types.md).
+- **Buffer traffic bursts through the Activator:** tune
+ [Request buffering](../load-balancing/README.md).
+
+## Tune a Service
+
+Most autoscaling settings can be applied per Revision on `spec.template.metadata.annotations`
+(cluster administrators can also set global defaults in `config-autoscaler`).
+For example, to keep at least 1 replica warm, cap scale at 5, and target 50
+concurrent requests per pod:
+
+```yaml
+apiVersion: serving.knative.dev/v1
+kind: Service
+metadata:
+ name: my-service
+spec:
+ template:
+ metadata:
+ annotations:
+ autoscaling.knative.dev/min-scale: "1"
+ autoscaling.knative.dev/max-scale: "5"
+ autoscaling.knative.dev/target: "50"
+ spec:
+ containers:
+ - image: ghcr.io/knative/helloworld-go:latest
+```
+
+Apply the manifest and verify the updated Revision is ready and has the
+expected pods:
+
+```bash
+kubectl apply -f service.yaml
+kubectl wait kservice/my-service --for=condition=Ready --timeout=120s
+kubectl get pods -l serving.knative.dev/service=my-service
+```
## Additional resources
-
-* Try out the [Go Autoscale Sample App](autoscale-go/README.md).
-* Configure your Knative deployment to use the Kubernetes Horizontal Pod Autoscaler (HPA) instead of the default KPA. For how to install HPA, see [Install optional Serving extensions](../../install/yaml-install/serving/install-serving-with-yaml.md#install-optional-serving-extensions).
-* Configure the [types of metrics](autoscaling-metrics.md) that the Autoscaler consumes.
+- Try the [Autoscale sample app](autoscale-go/README.md) to watch KPA scale
+ under load.
+- Install the optional HPA autoscaler via
+ [Install optional Serving extensions](../../install/yaml-install/serving/install-serving-with-yaml.md#install-optional-serving-extensions).
diff --git a/docs/versioned/serving/autoscaling/autoscale-go/README.md b/docs/versioned/serving/autoscaling/autoscale-go/README.md
index c0c1caaf00c..c2dc450acf5 100644
--- a/docs/versioned/serving/autoscaling/autoscale-go/README.md
+++ b/docs/versioned/serving/autoscaling/autoscale-go/README.md
@@ -11,13 +11,13 @@ A demonstration of the autoscaling capabilities of a Knative Serving Revision.
## Prerequisites
-1. A Kubernetes cluster with [Knative Serving](../../../install/yaml-install/serving/install-serving-with-yaml.md))
+1. A Kubernetes cluster with [Knative Serving](../../../install/yaml-install/serving/install-serving-with-yaml.md)
installed.
1. The `hey` load generator installed (`go install github.com/rakyll/hey@latest`).
1. Clone this repository, and move into the sample directory:
```bash
- git clone -b "{{ branch }}" https://github.com/knative/docs knative-docs
+ git clone https://github.com/knative/docs knative-docs
cd knative-docs
```
@@ -31,10 +31,10 @@ A demonstration of the autoscaling capabilities of a Knative Serving Revision.
1. Obtain the URL of the service (once `Ready`):
- ```{ .bash .no-copy }
- $ kubectl get ksvc autoscale-go
- NAME URL LATESTCREATED LATESTREADY READY REASON
- autoscale-go http://autoscale-go.default.1.2.3.4.sslip.io autoscale-go-96dtk autoscale-go-96dtk True
+ ```bash
+ kubectl wait kservice/autoscale-go --for=condition=Ready --timeout=120s
+ SERVICE_URL=$(kubectl get kservice autoscale-go -o jsonpath='{.status.url}')
+ echo "$SERVICE_URL"
```
## Load the Service
@@ -42,7 +42,7 @@ A demonstration of the autoscaling capabilities of a Knative Serving Revision.
1. Make a request to the autoscale app to see it consume some resources.
```bash
- curl "http://autoscale-go.default.1.2.3.4.sslip.io?sleep=100&prime=10000&bloat=5"
+ curl "${SERVICE_URL}?sleep=100&prime=10000&bloat=5"
```
```{ .bash .no-copy }
@@ -55,8 +55,8 @@ A demonstration of the autoscaling capabilities of a Knative Serving Revision.
```bash
hey -z 30s -c 50 \
- "http://autoscale-go.default.1.2.3.4.sslip.io?sleep=100&prime=10000&bloat=5" \
- && kubectl get pods
+ "${SERVICE_URL}?sleep=100&prime=10000&bloat=5" \
+ && kubectl get pods -l serving.knative.dev/service=autoscale-go
```
```{ .bash .no-copy }
@@ -219,21 +219,21 @@ customization (32 minutes).
```bash
hey -z 60s -c 100 \
- "http://autoscale-go.default.1.2.3.4.sslip.io?sleep=100&prime=10000&bloat=5"
+ "${SERVICE_URL}?sleep=100&prime=10000&bloat=5"
```
1. Send 60 seconds of traffic maintaining 100 qps with short requests (10 ms).
```bash
hey -z 60s -q 100 \
- "http://autoscale-go.default.1.2.3.4.sslip.io?sleep=10"
+ "${SERVICE_URL}?sleep=10"
```
1. Send 60 seconds of traffic maintaining 100 qps with long requests (1 sec).
```bash
hey -z 60s -q 100 \
- "http://autoscale-go.default.1.2.3.4.sslip.io?sleep=1000"
+ "${SERVICE_URL}?sleep=1000"
```
1. Send 60 seconds of traffic with heavy CPU usage (~1 cpu/sec/request, total
@@ -241,7 +241,7 @@ customization (32 minutes).
```bash
hey -z 60s -q 100 \
- "http://autoscale-go.default.1.2.3.4.sslip.io?prime=40000000"
+ "${SERVICE_URL}?prime=40000000"
```
1. Send 60 seconds of traffic with heavy memory usage (1 gb/request, total 5
@@ -249,7 +249,7 @@ customization (32 minutes).
```bash
hey -z 60s -c 5 \
- "http://autoscale-go.default.1.2.3.4.sslip.io?bloat=1000"
+ "${SERVICE_URL}?bloat=1000"
```
## Cleanup
diff --git a/docs/versioned/serving/autoscaling/autoscaler-types.md b/docs/versioned/serving/autoscaling/autoscaler-types.md
index 735de924dbb..81dc0555d9f 100644
--- a/docs/versioned/serving/autoscaling/autoscaler-types.md
+++ b/docs/versioned/serving/autoscaling/autoscaler-types.md
@@ -19,13 +19,13 @@ For how to install HPA, see [Install optional Serving extensions](../../install/
* Supports scale to zero functionality.
* Does not support CPU-based autoscaling.
-## Horizontal Pod Autoscaler (HPA)
+## Horizontal Pod Autoscaler { #horizontal-pod-autoscaler-hpa }
* Not part of the Knative Serving core, and you must install Knative Serving first.
* Does not support scale to zero functionality.
* Supports CPU-based autoscaling.
-## Configuring the Autoscaler implementation
+## Choose an autoscaler { #configuring-the-autoscaler-implementation }
The type of Autoscaler implementation (KPA or HPA) can be configured by using the `class` annotation.
diff --git a/docs/versioned/serving/autoscaling/concurrency.md b/docs/versioned/serving/autoscaling/concurrency.md
index 469925c247a..189680317e7 100644
--- a/docs/versioned/serving/autoscaling/concurrency.md
+++ b/docs/versioned/serving/autoscaling/concurrency.md
@@ -13,7 +13,7 @@ For per-revision concurrency, you must configure both `autoscaling.knative.dev/m
For global concurrency, you can set the `container-concurrency-target-default` value.
-## Soft versus hard concurrency limits
+## Concurrency limits { #soft-versus-hard-concurrency-limits }
It is possible to set either a _soft_ or _hard_ concurrency limit.
diff --git a/docs/versioned/serving/autoscaling/scale-to-zero.md b/docs/versioned/serving/autoscaling/scale-to-zero.md
index ddb6f7c7cac..51460900e27 100644
--- a/docs/versioned/serving/autoscaling/scale-to-zero.md
+++ b/docs/versioned/serving/autoscaling/scale-to-zero.md
@@ -93,11 +93,11 @@ This setting does not adjust how long the last replica will be kept after traffi
-## Scale to zero last pod retention period
+## Last pod retention { #scale-to-zero-last-pod-retention-period }
The `scale-to-zero-pod-retention-period` flag determines the minimum amount of time that the last pod will remain active after the Autoscaler decides to scale pods to zero.
-This contrasts with the `scale-to-zero-grace-period` flag, which determines the maximum amount of time that the last pod will remain active after the Autoscaler decides to scale pods to zero.
+By contrast, `scale-to-zero-grace-period` (above) is an upper-bound timeout for internal network programming before removing the last pod, not a pod-retention timer.
* **Global key:** `scale-to-zero-pod-retention-period`
* **Per-revision annotation key:** `autoscaling.knative.dev/scale-to-zero-pod-retention-period`
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/configuration/secure-pod-defaults.md b/docs/versioned/serving/configuration/secure-pod-defaults.md
index 10964b3c873..370bb061c91 100644
--- a/docs/versioned/serving/configuration/secure-pod-defaults.md
+++ b/docs/versioned/serving/configuration/secure-pod-defaults.md
@@ -5,6 +5,8 @@ components:
function: how-to
---
+# Secure Pod Defaults
+
!!! important
The default setting of `disabled` will be changed in the upcoming release of Knative 1.21 to be more secure.
diff --git a/docs/versioned/serving/convert-deployment-to-knative-service.md b/docs/versioned/serving/convert-deployment-to-knative-service.md
index 5f022a500fe..16097f644aa 100644
--- a/docs/versioned/serving/convert-deployment-to-knative-service.md
+++ b/docs/versioned/serving/convert-deployment-to-knative-service.md
@@ -16,15 +16,16 @@ Converting to a Knative Service has the following benefits:
- Reduces the footprint of the service instance because the instance scales to 0 when it becomes idle.
- Improves performance due to built-in autoscaling for the Knative Service.
-## Determine if your workload is a good fit for Knative
+## Workload fit { #determine-if-your-workload-is-a-good-fit-for-knative }
In general, if your Kubernetes workload is a good fit for Knative, you can remove a lot of your manifest to create a Knative Service.
There are three aspects you need to consider:
-- All work done is triggered by HTTP.
-- The container is stateless. All state is stored elsewhere or can be re-created.
-- Your workload uses only Secret and ConfigMap volumes.
+- All work is triggered by HTTP (or gRPC/WebSockets over HTTP).
+- The container is stateless — persistent state lives outside the pod, or uses
+ a [supported volume type](services/storage.md) (such as ConfigMaps, Secrets,
+ EmptyDir, or enabled PersistentVolumeClaims).
## Example conversion
@@ -70,11 +71,16 @@ spec:
### Knative Service
+To migrate safely without disturbing the existing Deployment, deploy the
+Knative Service under a distinct name first (for example `my-nginx-knative`),
+verify it responds as expected, and cut traffic over before deleting the old
+Deployment and Service:
+
```yaml
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
- name: my-nginx
+ name: my-nginx-knative
spec:
template:
spec:
@@ -83,3 +89,11 @@ spec:
ports:
- containerPort: 80
```
+
+Apply and verify:
+
+```bash
+kubectl apply -f my-nginx-knative.yaml
+kubectl wait kservice/my-nginx-knative --for=condition=Ready --timeout=120s
+curl "$(kubectl get kservice my-nginx-knative -o jsonpath='{.status.url}')"
+```
diff --git a/docs/versioned/serving/deploying-from-private-registry.md b/docs/versioned/serving/deploying-from-private-registry.md
index fbd4e0f9ba6..a53a5ab7d24 100644
--- a/docs/versioned/serving/deploying-from-private-registry.md
+++ b/docs/versioned/serving/deploying-from-private-registry.md
@@ -16,77 +16,53 @@ You can configure your Knative cluster to deploy images from a private registry
## Procedure
-1. Create a `imagePullSecrets` object that contains your credentials as a list of secrets:
+1. Create a `docker-registry` Secret in your target namespace. If your local `$HOME/.docker/config.json` stores direct registry credentials (rather than a host `credsStore` helper), you can create the Secret from that file:
```bash
- kubectl create secret docker-registry \
- --docker-server= \
- --docker-email= \
- --docker-username= \
- --docker-password=
+ kubectl create secret generic \
+ --namespace \
+ --from-file=.dockerconfigjson="$HOME/.docker/config.json" \
+ --type=kubernetes.io/dockerconfigjson
```
- Where:
+ If your Docker configuration uses a credential helper (`credsStore`), follow [Pull an Image from a Private Registry](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) in the Kubernetes documentation to create a `docker-registry` Secret instead.
- - `` is the name that you want to use for your secrets (the `imagePullSecrets` object). For example, `container-registry`.
+1. Choose one of the following to attach the Secret:
- - `` is the URL of the private registry where your container images are stored. Examples include [Google Container Registry](https://gcr.io/) or [DockerHub](https://docker.io/).
+ - **Single Service (recommended):** reference `imagePullSecrets` on the Service's Revision template (replace `/:` with your private image):
- * `` is the email address that is associated with
- the private registry.
-
- * `` is the username that you use to access the
- private container registry.
-
- * `` is the password that you use to access
- the private container registry.
-
- Example:
-
- ```bash
- kubectl create secret docker-registry container-registry \
- --docker-server=https://gcr.io/ \
- --docker-email=my-account-email@address.com \
- --docker-username=my-grc-username \
- --docker-password=my-gcr-password
- ```
-
-1. Optional. After you have created the `imagePullSecrets` object, you can view the secrets by running:
-
- ```bash
- kubectl get secret -o=yaml
- ```
-
-1. Optional. Add the `imagePullSecrets` object to the `default` service account in the `default` namespace.
-
- !!! note
- By default, the `default` service account in each of the [namespaces](https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/) of your Knative cluster are used by your Revisions, unless the [`serviceAccountName`](https://github.com/knative/specs/blob/main/specs/serving/knative-api-specification-1.0.md#revision-2) is specified.
-
- For example, if have you named your secrets `container-registry`, you can run the following command to modify the `default` service account:
+ ```yaml
+ apiVersion: serving.knative.dev/v1
+ kind: Service
+ metadata:
+ name: private-app
+ namespace:
+ spec:
+ template:
+ spec:
+ imagePullSecrets:
+ - name:
+ containers:
+ - image: /:
+ ports:
+ - containerPort: 8080
+ ```
+
+ - **All Services in a namespace:** patch the `default` ServiceAccount in that namespace so every Revision uses the Secret unless `serviceAccountName` is overridden:
+
+ ```bash
+ kubectl patch serviceaccount default \
+ --namespace \
+ -p '{"imagePullSecrets": [{"name": ""}]}'
+ ```
+
+1. Apply the Service and verify it becomes ready and resolves the image digest on its latest Revision:
```bash
- kubectl patch serviceaccount default -p "{\"imagePullSecrets\": [{\"name\": \"container-registry\"}]}"
+ kubectl apply -f private-app.yaml
+ kubectl wait kservice/private-app --namespace --for=condition=Ready --timeout=120s
+ REVISION=$(kubectl get kservice private-app --namespace -o jsonpath='{.status.latestReadyRevisionName}')
+ kubectl get revision "$REVISION" --namespace -o jsonpath='{.status.containerStatuses[0].imageDigest}'; echo
```
- New pods that are created in the `default` namespace now include your credentials and have access to your container images in the private registry.
-
-1. Optional. Add the `imagePullSecrets` object to a Service:
-
- ```yaml
- apiVersion: serving.knative.dev/v1
- kind: Service
- metadata:
- name: hello
- spec:
- template:
- spec:
- imagePullSecrets:
- - name:
- containers:
- - image: ghcr.io/knative/helloworld-go:latest
- ports:
- - containerPort: 8080
- env:
- - name: TARGET
- value: "World"
- ```
+If your private registry uses a custom CA certificate or sits behind a corporate proxy, your cluster administrator must also configure [Registry trust and tag resolution](tag-resolution.md).
diff --git a/docs/versioned/serving/istio-authorization.md b/docs/versioned/serving/istio-authorization.md
index a7e3a093739..274ac5ed6f7 100644
--- a/docs/versioned/serving/istio-authorization.md
+++ b/docs/versioned/serving/istio-authorization.md
@@ -57,7 +57,7 @@ If the activator isn't injected:
- In STRICT mode, requests will simply be rejected.
-To understand when requests are forwarded through the activator, see the [target burst capacity](load-balancing/target-burst-capacity.md) documentation.
+To understand when requests are forwarded through the activator, see the [target burst capacity](load-balancing/README.md#target-burst-capacity) documentation.
This also means that many Istio AuthorizationPolicies won't work as expected. For example, if you set up a rule allowing requests from a particular source into a Knative service, you will see requests being rejected if they are forwarded by the activator.
diff --git a/docs/versioned/serving/load-balancing/README.md b/docs/versioned/serving/load-balancing/README.md
index 0459b44eb02..607bcd83983 100644
--- a/docs/versioned/serving/load-balancing/README.md
+++ b/docs/versioned/serving/load-balancing/README.md
@@ -5,31 +5,113 @@ components:
function: explanation
---
-# Load balancing
+# Request buffering and Activator capacity
-You can turn on Knative load balancing, by placing the _Activator service_ in the request path to act as a load balancer. To do this, you must first ensure that individual pod addressability is enabled.
+Knative Serving uses the **Activator** to receive and buffer requests when a
+Revision is scaled to zero, or when incoming traffic bursts exceed what the
+Revision's pods can handle directly.
## Activator pod selection
-Activator pods are scaled horizontally, so there may be multiple Activators in a deployment. In general, the system will perform best if the number of revision pods is larger than the number of Activator pods, and those numbers divide equally.
-
+Activator pods scale horizontally. Knative assigns a subset of Activators to
+each Revision depending on its size — more Revision pods receive a larger
+subset of Activators.
-Knative assigns a subset of Activators for each revision, depending on the revision size. More revision pods will mean a greater number of Activators for that revision.
+When the Activator is in the request path, it distributes requests to Revision
+pods using:
-The Activator load balancing algorithm works as follows:
+- **Better of two random choices** when concurrency is unlimited.
+- **First pod with available capacity** when `containerConcurrency` is 3 or
+ less; otherwise **round-robin** respecting container concurrency.
-- If concurrency is unlimited, the request is sent to the better of two random choices.
-- If concurrency is set to a value less or equal than 3, the Activator will send the request to the first pod that has capacity. Otherwise, requests will be balanced in a round robin fashion, with respect to container concurrency.
+See [Concurrency](../autoscaling/concurrency.md) for concurrency settings.
-For more information, see the documentation on [concurrency](../autoscaling/concurrency.md).
+
-## Configuring target burst capacity
+## Target burst capacity
-Target burst capacity is mainly responsible for determining whether the Activator is in the request path outside of scale-from-zero scenarios.
+_Target burst capacity_ determines how large a traffic burst a Revision can
+absorb without putting the Activator in the request path.
-Target burst capacity can be configured using a combination of the following parameters:
+- **`0`** — Activator is only in the path while scaling from zero.
+- **`-1`** — Activator is always in the path, regardless of Revision scale.
+- **Positive integer** (default **`200`**) — Activator stays in the path
+ whenever spare capacity across ready pods is smaller than this threshold.
-- Setting the targeted concurrency limits for the revision. See [concurrency](../autoscaling/concurrency.md).
-- Setting the target utilization parameters. See [target utilization](../autoscaling/concurrency.md#target-utilization).
-- Setting the target burst capacity. You can configure target burst capacity using the `target-burst-capacity` key in the `config-autoscaler` ConfigMap. See [Setting the target burst capacity](target-burst-capacity.md#setting-the-target-burst-capacity).
-- Setting the Activator capacity by using the `config-autoscaler` ConfigMap. See [Setting the Activator capacity](activator-capacity.md#setting-the-activator-capacity).
+
+
+- **Global key:** `target-burst-capacity` (in `config-autoscaler`)
+- **Per-revision annotation:** `autoscaling.knative.dev/target-burst-capacity`
+- **Possible values:** float (`-1`, `0`, or positive)
+- **Default:** `200`
+
+=== "Per Revision"
+ ```yaml
+ apiVersion: serving.knative.dev/v1
+ kind: Service
+ metadata:
+ name:
+ spec:
+ template:
+ metadata:
+ annotations:
+ autoscaling.knative.dev/target-burst-capacity: "200"
+ ```
+
+=== "Global (ConfigMap)"
+ ```yaml
+ apiVersion: v1
+ kind: ConfigMap
+ metadata:
+ name: config-autoscaler
+ namespace: knative-serving
+ data:
+ target-burst-capacity: "200"
+ ```
+
+=== "Global (Operator)"
+ ```yaml
+ apiVersion: operator.knative.dev/v1alpha1
+ kind: KnativeServing
+ metadata:
+ name: knative-serving
+ spec:
+ config:
+ autoscaler:
+ target-burst-capacity: "200"
+ ```
+
+
+
+## Activator capacity
+
+When multiple Activators run in the cluster, Knative places enough Activators
+in the request path to handle `(replicas * target + target-burst-capacity) / activator-capacity`.
+
+- **Global key:** `activator-capacity` (in `config-autoscaler`)
+- **Per-revision annotation:** none (cluster-wide administrator setting)
+- **Possible values:** integer (at least `1`)
+- **Default:** `100`
+
+=== "Global (ConfigMap)"
+ ```yaml
+ apiVersion: v1
+ kind: ConfigMap
+ metadata:
+ name: config-autoscaler
+ namespace: knative-serving
+ data:
+ activator-capacity: "200"
+ ```
+
+=== "Global (Operator)"
+ ```yaml
+ apiVersion: operator.knative.dev/v1alpha1
+ kind: KnativeServing
+ metadata:
+ name: knative-serving
+ spec:
+ config:
+ autoscaler:
+ activator-capacity: "200"
+ ```
diff --git a/docs/versioned/serving/load-balancing/activator-capacity.md b/docs/versioned/serving/load-balancing/activator-capacity.md
deleted file mode 100644
index e4753578e8a..00000000000
--- a/docs/versioned/serving/load-balancing/activator-capacity.md
+++ /dev/null
@@ -1,43 +0,0 @@
----
-audience: administrator
-components:
- - serving
-function: how-to
----
-
-# Configuring Activator capacity
-
-If there is more than one Activator in the system, Knative puts as many Activators on the request path as required to handle the current request load plus the target burst capacity. If the target burst capacity is 0, Knative only puts the Activator into the request path if the Revision is scaled to zero.
-
-Knative uses at least two Activators to enable high availability if possible. The actual number of Activators is calculated taking the _Activator capacity_ into account, by using the formula `(replicas * target + target-burst-capacity)/activator-capacity`. This means that there are enough Activators in the routing path to handle the theoretical capacity of the existing application, including any additional target burst capacity.
-
-## Setting the Activator capacity
-
-- **Global key:** `activator-capacity`
-- **Possible values:** int (at least 1)
-- **Default:** `100`
-
-**Example:**
-
-=== "Global (ConfigMap)"
- ```yaml
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-autoscaler
- namespace: knative-serving
- data:
- activator-capacity: "200"
- ```
-
-=== "Global (Operator)"
- ```yaml
- apiVersion: operator.knative.dev/v1alpha1
- kind: KnativeServing
- metadata:
- name: knative-serving
- spec:
- config:
- autoscaler:
- activator-capacity: "200"
- ```
diff --git a/docs/versioned/serving/load-balancing/target-burst-capacity.md b/docs/versioned/serving/load-balancing/target-burst-capacity.md
deleted file mode 100644
index ea5d35d33e8..00000000000
--- a/docs/versioned/serving/load-balancing/target-burst-capacity.md
+++ /dev/null
@@ -1,78 +0,0 @@
----
-audience: developer
-components:
- - serving
-function: explanation
----
-
-# Configuring target burst capacity
-
-_Target burst capacity_ is a [global and per-revision](../autoscaling/autoscaler-types.md#global-versus-per-revision-settings) integer setting that determines the size of traffic burst a Knative application can handle without buffering.
-If a traffic burst is too large for the application to handle, the _Activator_ service will be placed in the request path to protect the revision and optimize request load balancing.
-
-The Activator service is responsible for receiving and buffering requests for inactive revisions, or for revisions where a traffic burst is larger than the limits of what can be handled without buffering for that revision. It can also quickly spin up additional pods for capacity, and throttle how quickly requests are sent to pods.
-
-Target burst capacity can be configured using a combination of the following parameters:
-
-- Setting the targeted concurrency limits for the revision. See [concurrency](../autoscaling/concurrency.md).
-- Setting the target utilization parameters. See [target utilization](../autoscaling/concurrency.md#target-utilization).
-- Setting the target burst capacity. You can configure target burst capacity using the `target-burst-capacity` annotation key in the `config-autoscaler` ConfigMap. See [Setting the target burst capacity](#setting-the-target-burst-capacity).
-
-## Setting the target burst capacity
-
-- **Global key:** `target-burst-capacity`
-- **Per-revision annotation key:** `autoscaling.knative.dev/target-burst-capacity`
-- **Possible values:** float (`0` means the Activator is only in path when scaled to 0, `-1` means the Activator is always in path)
-- **Default:** `200`
-
-**Example:**
-
-=== "Per Revision"
- ```yaml
- apiVersion: serving.knative.dev/v1
- kind: Service
- metadata:
- annotations:
- name:
- namespace: default
- spec:
- template:
- metadata:
- annotations:
- autoscaling.knative.dev/target-burst-capacity: "200"
- ```
-
-=== "Global (ConfigMap)"
- ```yaml
- apiVersion: v1
- kind: ConfigMap
- metadata:
- name: config-autoscaler
- namespace: knative-serving
- data:
- target-burst-capacity: "200"
- ```
-
-=== "Global (Operator)"
- ```yaml
- apiVersion: operator.knative.dev/v1alpha1
- kind: KnativeServing
- metadata:
- name: knative-serving
- spec:
- config:
- autoscaler:
- target-burst-capacity: "200"
- ```
-
-!!! note
-
- Ingress gateway load balancing requires additional configuration. For more information about load balancing using an ingress
- gateway, see the [Serving API](../../serving/reference/serving-api.md) documentation.
-
-
-- If `autoscaling.knative.dev/target-burst-capacity` is set to `0`, the Activator is only added to the request path during scale from zero scenarios, and ingress load balancing will be applied.
-
-- If `autoscaling.knative.dev/target-burst-capacity` is set to `-1`, the Activator is always in the request path, regardless of the revision size.
-
-- If `autoscaling.knative.dev/target-burst-capacity` is set to another integer, the Activator may be in the path, depending on the revision scale and load.
diff --git a/docs/versioned/serving/request-flow.md b/docs/versioned/serving/request-flow.md
index 80b59c62860..f256835cda5 100644
--- a/docs/versioned/serving/request-flow.md
+++ b/docs/versioned/serving/request-flow.md
@@ -27,7 +27,7 @@ pluggable ingress layer), and are recorded on the request in an internal header.
Once a request has been assigned to a Revision, the subsequent routing depends
on the measured traffic flow; at low or zero traffic, incoming requests are
routed to the activator, while at high traffic levels ([spare capacity greater
-than `target-burst-capacity`](./load-balancing/target-burst-capacity.md))
+than `target-burst-capacity`](./load-balancing/README.md#target-burst-capacity))
traffic is routed directly to the application pods.
## Scale From Zero
@@ -50,7 +50,7 @@ started to handle a request, this is called a _cold-start_.
## High scale
When a Revision has a high amount of traffic ([the spare capacity is greater
-than `target-burst-capacity`](./load-balancing/target-burst-capacity.md)), the
+than `target-burst-capacity`](./load-balancing/README.md#target-burst-capacity)), the
ingress router is programmed directly with the pod adresses of the Revision, and
the activator is removed from the traffic flow. This reduces latency and
increases efficiency when the additional buffering of the activator is not
diff --git a/docs/versioned/serving/revisions/README.md b/docs/versioned/serving/revisions/README.md
index 5e002b2bada..f51c3fefdd2 100644
--- a/docs/versioned/serving/revisions/README.md
+++ b/docs/versioned/serving/revisions/README.md
@@ -9,33 +9,43 @@ function: explanation
--8<-- "about-revisions.md"
-## Related concepts
+Revisions are immutable snapshots of your application code and configuration:
+updating a Service's `spec.template` creates a new Revision rather than
+modifying the existing Revision's `spec`. You can still update mutable metadata
+(such as the `no-gc` annotation below) on an existing Revision.
-### Autoscaling
+## Garbage collection
-Revisions can be automatically scaled up and down according to incoming traffic. For more information, see [Autoscaling](../../serving/autoscaling/README.md){target=_blank}.
-
-### Gradual rollout of traffic to Revisions
+--8<-- "about-revisions-garbage-collection.md"
-Revisions enable progressive roll-out and roll-back of application changes. For more information, see [Configuring gradual rollout of traffic to Revisions](../../serving/rolling-out-latest-revision.md){target=_blank}.
+### Disabling garbage collection for a Revision
-### Garbage collection
+To prevent a specific Revision from being garbage collected, add the
+`serving.knative.dev/no-gc: "true"` annotation to its metadata:
---8<-- "about-revisions-garbage-collection.md"
+```bash
+kubectl annotate revision serving.knative.dev/no-gc="true"
+```
-For more information, see [Configuration options for Revisions](#configuration-options-for-revisions).
+Or in the Revision metadata:
-## Configuration options for Revisions
+```yaml
+apiVersion: serving.knative.dev/v1
+kind: Revision
+metadata:
+ name:
+ annotations:
+ serving.knative.dev/no-gc: "true"
+```
-- [Cluster administrator (global, cluster-wide) configuration options](../../serving/revisions/revision-admin-config-options.md)
-- [Developer (per Revision) configuration options](../../serving/revisions/revision-developer-config-options.md)
+For cluster-wide garbage collection thresholds, see
+[Configuring Revision garbage collection](revision-admin-config-options.md).
-## Additional resources
+## Related tasks
+- [Split traffic and tag Revisions](../traffic-management.md)
+- [Configure gradual rollouts](../rolling-out-latest-revision.md)
+- [Configure autoscaling](../autoscaling/README.md)
+- [Check Revision status](../troubleshooting/debugging-application-issues.md#check-revision-status)
+- [Manage Revisions with `kn revision`](https://github.com/knative/client/blob/main/docs/cmd/kn_revision.md){target=_blank}
- [Revision API specification](https://github.com/knative/specs/blob/main/specs/serving/knative-api-specification-1.0.md#revision){target=_blank}
-
-## Next steps
-
-- [Delete, describe, and list Revisions by using the Knative (`kn`) CLI](https://github.com/knative/client/blob/main/docs/cmd/kn_revision.md){target=_blank}
-- [Check the status of a Revision](../../serving/troubleshooting/debugging-application-issues.md#check-revision-status){target=_blank}
-- [Routing traffic between Revisions of a Service](../../serving/traffic-management.md#traffic-routing-examples){target=_blank}
diff --git a/docs/versioned/serving/revisions/revision-developer-config-options.md b/docs/versioned/serving/revisions/revision-developer-config-options.md
deleted file mode 100644
index 9c64c0d7df7..00000000000
--- a/docs/versioned/serving/revisions/revision-developer-config-options.md
+++ /dev/null
@@ -1,27 +0,0 @@
----
-audience: developer
-components:
- - serving
-function: reference
----
-
-# Developer configuration options
-
-While Revisions cannot be created manually without modifying the Configuration of a Knative Service, you can modify the spec of an existing Revision to change its behavior.
-
-## Garbage collection
-
---8<-- "about-revisions-garbage-collection.md"
-
-### Disabling garbage collection for a Revision
-
-You can configure a Revision so that it is never garbage collected by adding the `serving.knative.dev/no-gc: "true"` annotation:
-
-```yaml
-apiVersion: serving.knative.dev/v1
-kind: Revision
-metadata:
- annotations:
- serving.knative.dev/no-gc: "true"
-...
-```
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/certificate-class.md b/docs/versioned/serving/services/certificate-class.md
index a39e5552d9f..4ff8c6bc4aa 100644
--- a/docs/versioned/serving/services/certificate-class.md
+++ b/docs/versioned/serving/services/certificate-class.md
@@ -9,7 +9,7 @@ function: how-to
When `external-domain-tls` is enabled and Knative Services are created, a certificate class (`certificate-class`) is automatically chosen based on the value in the `config-network` ConfigMap located inside the `knative-serving` namespace. This ConfigMap is part of Knative Serving installation. If the certificate class is not specified, this defaults to `cert-manager.certificate.networking.knative.dev`. After `certificate-class` is configured, it is used for all Knative Services unless it is overridden with a `certificate-class` annotation.
-## Using the certificate class annotation
+## Certificate class annotation { #using-the-certificate-class-annotation }
Generally it is recommended for Knative Services to use the default `certificate-class`. However, in scenarios where there are multiple certificate providers, you might want to specify different certificate class annotations for each Service.
diff --git a/docs/versioned/serving/services/configure-probing.md b/docs/versioned/serving/services/configure-probing.md
index 788a968df11..1786b4b38a8 100644
--- a/docs/versioned/serving/services/configure-probing.md
+++ b/docs/versioned/serving/services/configure-probing.md
@@ -7,7 +7,7 @@ function: how-to
# Configuring Probing
-## General understanding of Knative Probing
+## How Knative probing works { #general-understanding-of-knative-probing }
It is important to note that Knative probing is different from Kubernetes probing.
One reason for this is that Knative tries to minimize cold-start time and thus is probing
@@ -90,12 +90,12 @@ Supported probe types are:
!!! note
- Be aware that Knative also does some defaulting (checking readiness on the traffic port using an HTTP check) and additional validation to make aggressive probing work.
+ Be aware that Knative sets a default TCP readiness probe on the traffic port when none is specified, and applies additional validation so aggressive probing works.
!!! warning
As the Queue-Proxy container does not rewrite or check defined Liveness probes, it is important to know that Kubernetes can and will restart specific containers once a Liveness probe fails. Make sure to also include the same check that you define as a Liveness probe as a Readiness probe to make sure Knative is aware of the failing container in the Pod. Otherwise, you may see, it is possible that you see connection errors during the restart of a container caused by the Liveness probe failure.
-## Progress Deadline and Startup Probes
+## Progress deadline { #progress-deadline-and-startup-probes }
It is important to know that Knative has a deadline until a Knative Service should initially start up (or rollout). This is called [progress deadline](../configuration/deployment.md#configuring-progress-deadlines). When using Startup probes, the user has to ensure that the progress deadline is set to a value that is higher than the maximum time the Startup probe can take. Consider your configuration of `initialDelaySeconds`, `success/failureThreshold`, `periodSeconds` and `timeoutSeconds` for this. Otherwise, the Startup probe might never pass before the progress deadline is reached, and the Service will never successfully start up. The Knative Service will then mark this in the status of the Service object:
diff --git a/docs/versioned/serving/services/configure-requests-limits-services.md b/docs/versioned/serving/services/configure-requests-limits-services.md
index 1f82a995d95..766d05aa67b 100644
--- a/docs/versioned/serving/services/configure-requests-limits-services.md
+++ b/docs/versioned/serving/services/configure-requests-limits-services.md
@@ -30,7 +30,7 @@ spec:
cpu: 1
```
-## Configure Queue Proxy resources
+## Queue-Proxy resources { #configure-queue-proxy-resources }
In order to set the Queue Proxy resource requests and limits you can either
set them globally in the [deployment config map](../configuration/deployment.md) or you can set them at the service level using the corresponding annotations targeting cpu, memory and ephemeral-storage resource types. The above example becomes:
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..cc554ecca05 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 { #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/services/http-protocol.md b/docs/versioned/serving/services/http-protocol.md
index acab1b7d649..be350bca6be 100644
--- a/docs/versioned/serving/services/http-protocol.md
+++ b/docs/versioned/serving/services/http-protocol.md
@@ -61,7 +61,7 @@ You can override the default behavior for each Service or global configuration.
http-protocol: "redirected"
```
-## HTTP/1 Full Duplex support per workload
+## HTTP/1 full duplex { #http1-full-duplex-support-per-workload }
Knative services can turn on the support for [HTTP/1 full duplex](https://pkg.go.dev/net/http#ResponseController.EnableFullDuplex) end-to-end on the data path.
This should be used in scenarios where the [related Golang issue](https://github.com/golang/go/issues/40747) is hit eg. the application server writes back to QP's reverse proxy before the latter has consumed the whole request.
diff --git a/docs/versioned/serving/services/ingress-class.md b/docs/versioned/serving/services/ingress-class.md
index 1f23928f80b..f0eff1ed87a 100644
--- a/docs/versioned/serving/services/ingress-class.md
+++ b/docs/versioned/serving/services/ingress-class.md
@@ -12,7 +12,7 @@ When a Knative Service is created an ingress class (`ingress-class`) is automati
!!! warning
Changing the ingress class in `config-network` ConfigMap will only affect newly created Services
-## Using the ingress class annotation
+## Ingress class annotation { #using-the-ingress-class-annotation }
Generally it is recommended for Knative Services to use the default `ingress-class`. However, in scenarios where there are multiple networking implementations, you might want to specify different ingress class annotations for each Service.
diff --git a/docs/versioned/serving/services/private-services.md b/docs/versioned/serving/services/private-services.md
index 8f1c0297cbb..e067139ce6e 100644
--- a/docs/versioned/serving/services/private-services.md
+++ b/docs/versioned/serving/services/private-services.md
@@ -15,7 +15,7 @@ In order to make Knative Services public (with a public IP address and public UR
This can be done for a single Service or for all Services on a cluster.
-## Making individual services private
+## Per-service privacy { #making-individual-services-private }
To make an individual Service private, the Service or Route can be labelled with
`networking.knative.dev/visibility=cluster-local` so that it is not published to the external gateway.
diff --git a/docs/versioned/serving/tag-resolution.md b/docs/versioned/serving/tag-resolution.md
index 59ddd671956..9348372c2d5 100644
--- a/docs/versioned/serving/tag-resolution.md
+++ b/docs/versioned/serving/tag-resolution.md
@@ -19,7 +19,14 @@ If you are using a registry that has a self-signed certificate, you must configu
### Procedure
-1. If you are using a `custom-certs` secret that contains your CA certificates, add the following spec to the default Knative Serving `controller` Deployment:
+1. Create a secret in the `knative-serving` namespace containing your root CA certificate:
+
+ ```bash
+ kubectl -n knative-serving create secret generic custom-certs \
+ --from-file=ca.crt=/path/to/ca.crt
+ ```
+
+1. Mount that `custom-certs` secret into the `controller` Deployment in `knative-serving` and set `SSL_CERT_DIR` (Knative Serving accepts [`SSL_CERT_FILE` and `SSL_CERT_DIR`](https://pkg.go.dev/crypto/x509#SystemCertPool)):
```yaml
apiVersion: apps/v1
@@ -34,26 +41,21 @@ If you are using a registry that has a self-signed certificate, you must configu
- name: controller
volumeMounts:
- name: custom-certs
- mountPath: /path/to/custom/certs
+ mountPath: /etc/ssl/custom-certs
+ readOnly: true
env:
- name: SSL_CERT_DIR
- value: /path/to/custom/certs
+ value: /etc/ssl/custom-certs
volumes:
- name: custom-certs
secret:
secretName: custom-certs
```
- Knative Serving accepts the [`SSL_CERT_FILE` and `SSL_CERT_DIR`](https://pkg.go.dev/crypto/x509#SystemCertPool) environment variables.
-
-1. Create a secret in the `knative-serving` namespace that points to your root CA certificate, and then save the current Knative Serving `controller` Deployment:
-
- ```bash
- kubectl -n knative-serving create secret generic customca --from-file=ca.crt=/root/ca.crt
- ```
+1. Apply the updated Deployment and wait for the controller rollout to complete:
```bash
- kubectl -n knative-serving get deploy/controller -o yaml > knative-serving-controller.yaml
+ kubectl -n knative-serving rollout status deployment/controller
```
## Corporate proxy
diff --git a/docs/versioned/serving/traffic-management.md b/docs/versioned/serving/traffic-management.md
index 5d6252854b5..7b5803cad57 100644
--- a/docs/versioned/serving/traffic-management.md
+++ b/docs/versioned/serving/traffic-management.md
@@ -11,7 +11,7 @@ You can manage traffic routing to different Revisions of a Knative Service by mo
When you create a Knative Service, it does not have any default `traffic` spec settings. By setting the `traffic` spec, you can split traffic over any number of fixed Revisions, or send traffic to the latest Revision by setting `latestRevision: true` in the spec for a Service.
-## Using tags to create target URLs
+## Tags and target URLs { #using-tags-to-create-target-urls }
In the following example, the spec defines an attribute called `tag`:
@@ -102,7 +102,7 @@ spec:
percent: 0
```
-## Routing and managing traffic by using the Knative CLI
+## Traffic routing with `kn` { #routing-and-managing-traffic-by-using-the-knative-cli }
You can use the following `kn` CLI command to split traffic between revisions:
@@ -134,7 +134,7 @@ The `@latest` tag means that `blue` resolves to the latest Revision of the Servi
kn service update example-service --traffic @latest=80 --traffic v1=20
```
-## Routing and managing traffic with blue/green deployment
+## Blue/green deployment { #routing-and-managing-traffic-with-bluegreen-deployment }
You can safely reroute traffic from a live version of an application to a new version by using a [blue/green deployment strategy](https://en.wikipedia.org/wiki/Blue-green_deployment).
@@ -212,9 +212,9 @@ You can safely reroute traffic from a live version of an application to a new ve
Once you redeploy this Route by reapplying the YAML resource, the second Revision of the app is now staged.
- No traffic is routed to the second Revision at the main URL, and Knative creates a new Route named `v2` for testing the newly deployed Revision.
+ No traffic is routed to the second Revision at the standalone Route's main URL (note that the original Knative Service keeps its own separate URL), and Knative exposes a tagged URL prefixed with `v2-` on this Route for testing the newly deployed Revision.
-1. Get the URL of the new Route for the second Revision, by running the command:
+1. Get the tagged URL for the second Revision, by running the command:
```bash
kubectl get route --output jsonpath="{.status.traffic[*].url}"
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
diff --git a/docs/versioned/serving/using-a-custom-domain.md b/docs/versioned/serving/using-a-custom-domain.md
index 5f698f2b704..46127396cac 100644
--- a/docs/versioned/serving/using-a-custom-domain.md
+++ b/docs/versioned/serving/using-a-custom-domain.md
@@ -9,11 +9,11 @@ function: how-to
You can customize the domain of an individual Knative Service, or set a global default domain for all Services created on a cluster. The fully qualified domain name for a route by default is `{route}.{namespace}.svc.cluster.local`.
-## Configuring a domain for a single Knative Service
+## Single-service domain { #configuring-a-domain-for-a-single-knative-service }
If you want to customize the domain of an individual Service, see the documentation about [`DomainMapping`](services/custom-domains.md).
-## Configuring the default domain for all Knative Services on a cluster
+## Default cluster domain { #configuring-the-default-domain-for-all-knative-services-on-a-cluster }
You can change the default domain for all Knative Services on a cluster by modifying the [`config-domain` ConfigMap](https://github.com/knative/serving/blob/main/config/core/configmaps/domain.yaml).
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/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 @@