Change the format of the section of installing eventing sources (#4462)

Co-authored-by: Vincent Hou <shou@us.ibm.com>
This commit is contained in:
Knative Prow Robot 2021-11-09 11:22:44 -08:00 committed by GitHub
parent 071d678af0
commit ccfba2b97c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 125 additions and 127 deletions

View File

@ -533,119 +533,117 @@ NAME VERSION READY REASON
knative-eventing <version number> True knative-eventing <version number> True
``` ```
### Installing with different eventing sources ### Installing the Knative Eventing component with different eventing sources
??? "Installing the Knative Eventing component with different eventing sources" Knative Operator can configure Knative Eventing component with different eventing sources. Click on each of the following tabs to
see how you can configure Knative Eventing with different eventing sources:
Knative Operator can configure Knative Eventing component with different eventing sources. Click on each of the following tabs to === "Ceph"
see how you can configure Knative Eventing with different eventing sources:
=== "Ceph" To configure Knative Eventing to install Ceph as the eventing source, apply the content of the Eventing CR as follows:
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
ceph:
enabled: true
EOF
```
To configure Knative Eventing to install Ceph as the eventing source, apply the content of the Eventing CR as follows: === "Apache CouchDB"
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
ceph:
enabled: true
EOF
```
=== "Apache CouchDB" To configure Knative Eventing to install Apache CouchDB as the eventing source, apply the content of the Eventing CR as follows:
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
couchdb:
enabled: true
EOF
```
To configure Knative Eventing to install Apache CouchDB as the eventing source, apply the content of the Eventing CR as follows: === "GitHub"
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
couchdb:
enabled: true
EOF
```
=== "GitHub" To configure Knative Eventing to install GitHub as the eventing source, apply the content of the Eventing CR as follows:
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
github:
enabled: true
EOF
```
To configure Knative Eventing to install GitHub as the eventing source, apply the content of the Eventing CR as follows: === "GitLab"
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
github:
enabled: true
EOF
```
=== "GitLab" To configure Knative Eventing to install GitLab as the eventing source, apply the content of the Eventing CR as follows:
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
gitlab:
enabled: true
EOF
```
To configure Knative Eventing to install GitLab as the eventing source, apply the content of the Eventing CR as follows: === "Apache Kafka"
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
gitlab:
enabled: true
EOF
```
=== "Apache Kafka" To configure Knative Eventing to install Kafka as the eventing source, apply the content of the Eventing CR as follows:
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
kafka:
enabled: true
EOF
```
To configure Knative Eventing to install Kafka as the eventing source, apply the content of the Eventing CR as follows: === "NATS Streaming"
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
kafka:
enabled: true
EOF
```
=== "NATS Streaming" To configure Knative Eventing to install NATS Streaming as the eventing source, apply the content of the Eventing CR as follows:
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
natss:
enabled: true
EOF
```
To configure Knative Eventing to install NATS Streaming as the eventing source, apply the content of the Eventing CR as follows: === "Prometheus"
```bash
cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec:
source:
natss:
enabled: true
EOF
```
=== "Prometheus" To configure Knative Eventing to install Prometheus as the eventing source, apply the content of the Eventing CR as follows:
```bash
To configure Knative Eventing to install Prometheus as the eventing source, apply the content of the Eventing CR as follows:
```bash
cat <<-EOF | kubectl apply -f - cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1 apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing kind: KnativeEventing
@ -659,39 +657,39 @@ knative-eventing <version number> True
EOF EOF
``` ```
=== "RabbitMQ" === "RabbitMQ"
To configure Knative Eventing to install RabbitMQ as the eventing source, apply the content of the Eventing CR as follows: To configure Knative Eventing to install RabbitMQ as the eventing source, apply the content of the Eventing CR as follows:
```bash ```bash
cat <<-EOF | kubectl apply -f - cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1 apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing kind: KnativeEventing
metadata: metadata:
name: knative-eventing name: knative-eventing
namespace: knative-eventing namespace: knative-eventing
spec: spec:
source: source:
rabbitmq: rabbitmq:
enabled: true enabled: true
EOF EOF
``` ```
=== "Redis" === "Redis"
To configure Knative Eventing to install Redis as the eventing source, apply the content of the Eventing CR as follows: To configure Knative Eventing to install Redis as the eventing source, apply the content of the Eventing CR as follows:
```bash ```bash
cat <<-EOF | kubectl apply -f - cat <<-EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1 apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing kind: KnativeEventing
metadata: metadata:
name: knative-eventing name: knative-eventing
namespace: knative-eventing namespace: knative-eventing
spec: spec:
source: source:
redis: redis:
enabled: true enabled: true
EOF EOF
``` ```
## Uninstall Knative ## Uninstall Knative