mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
38 lines
1.9 KiB
Plaintext
38 lines
1.9 KiB
Plaintext
:_content-type: ASSEMBLY
|
|
[id="serverless-apiserversource"]
|
|
= Using the API server source
|
|
include::modules/common-attributes.adoc[]
|
|
include::modules/serverless-document-attributes.adoc[]
|
|
:context: serverless-apiserversource
|
|
|
|
toc::[]
|
|
|
|
The API server source is an event source that can be used to connect an event sink, such as a Knative service, to the Kubernetes API server. The API server source watches for Kubernetes events and forwards them to the Knative Eventing broker.
|
|
|
|
[id="prerequisites_serverless-apiserversource"]
|
|
== Prerequisites
|
|
|
|
* You must have a current installation of xref:../../serverless/install/install-serverless-operator.adoc#serverless-install-web-console_install-serverless-operator[{ServerlessProductName}], including Knative Serving and Eventing, in your {product-title} cluster. This can be installed by a cluster administrator.
|
|
* Event sources need a service to use as an event _sink_. The sink is the service or application that events are sent to from the event source.
|
|
* You must create or update a service account, role and role binding for the event source.
|
|
|
|
[NOTE]
|
|
====
|
|
Some of the following procedures require you to create YAML files.
|
|
|
|
If you change the names of the YAML files from those used in the examples, you must ensure that you also update the corresponding CLI commands.
|
|
====
|
|
|
|
// service account
|
|
include::modules/serverless-service-ac-event-sources.adoc[leveloffset=+1]
|
|
// dev console
|
|
include::modules/odc-creating-apiserversource.adoc[leveloffset=+1]
|
|
include::modules/odc-deleting-apiserversource.adoc[leveloffset=+1]
|
|
// kn commands
|
|
include::modules/apiserversource-kn.adoc[leveloffset=+1]
|
|
include::modules/specifying-sink-flag-kn.adoc[leveloffset=+2]
|
|
include::modules/apiserversource-kn-delete.adoc[leveloffset=+1]
|
|
// YAML
|
|
include::modules/apiserversource-yaml.adoc[leveloffset=+1]
|
|
include::modules/apiserversource-yaml-delete.adoc[leveloffset=+1]
|