Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit ddf7fa1

Browse files
authored
Merge pull request #231 from mattray/tanzu
Add installing Tanzu Community Edition prerequisites
2 parents f3f50e5 + b0b66c1 commit ddf7fa1

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

docs/guides/installation-tce.md

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# TriggerMesh Installation for Tanzu Community Edition
2+
3+
[Tanzu Community Edition](https://tanzucommunityedition.io/) is a free and open source Kubernetes platform provided by VMware.
4+
5+
!!! Info "Tanzu Community Edition package repository versions"
6+
The `knative-serving` version currently in the Tanzu Community Edition package repository is `0.22`, which does not meet TriggerMesh's minimum requirements. Additionally, at the time of writing, a `knative-eventing` package is not available in the repository. Follow the instructions below for installing a supported version of Knative.
7+
8+
## Installation
9+
10+
1. Follow the [Getting Started with Tanzu Community Edition](https://tanzucommunityedition.io/docs/latest/getting-started-standalone/) installation instructions and create your Tanzu cluster on your platform of choice.
11+
1. Ensure you are in the context of your Tanzu cluster
12+
```
13+
kubectl config use-context <STANDALONE-CLUSTER-NAME>-admin@<STANDALONE-CLUSTER-NAME>
14+
```
15+
16+
1. Install Knative Serving following the [Installing Knative Serving using YAML files](https://knative.dev/docs/admin/install/serving/install-serving-with-yaml/) instructions.
17+
```
18+
kubectl apply -f https://github.com/knative/serving/releases/download/v0.26.0/serving-crds.yam
19+
kubectl apply -f https://github.com/knative/serving/releases/download/v0.26.0/serving-core.yaml
20+
```
21+
22+
1. Wait until the pods have started before proceeding.
23+
```
24+
kubectl get pods -n knative-serving
25+
```
26+
27+
1. The version of Contour provided with the Tanzu Community Edition package repository is older than the version of `knative-serving` we have installed, so install it from YAML as well.
28+
```
29+
kubectl apply -f https://github.com/knative/net-contour/releases/download/v0.26.0/contour.yaml
30+
kubectl apply -f https://github.com/knative/net-contour/releases/download/v0.26.0/net-contour.yaml
31+
```
32+
33+
1. Verify the pods have started before proceeding.
34+
```
35+
kubectl get pods -n contour-external
36+
kubectl get pods -n contour-internal
37+
```
38+
39+
1. Configure Knative Serving to use Contour by default by running the command:
40+
```
41+
kubectl patch configmap/config-network \
42+
--namespace knative-serving \
43+
--type merge \
44+
--patch '{"data":{"ingress.class":"contour.ingress.networking.knative.dev"}}'
45+
```
46+
47+
1. Get the External IP address or CNAME by running the command:
48+
```
49+
kubectl --namespace contour-external get service envoy
50+
```
51+
52+
1. You will need to configure DNS following the [Knative Serving DNS instructions](https://knative.dev/docs/admin/install/serving/install-serving-with-yaml/#configure-dns) for your requirements.
53+
1. Install Knative Eventing following the [Installing Knative Eventing using YAML files](https://knative.dev/docs/admin/install/eventing/install-eventing-with-yaml/) instructions.
54+
```
55+
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.26.0/eventing-crds.yaml
56+
kubectl apply -f https://github.com/knative/eventing/releases/download/v0.26.0/eventing-core.yaml
57+
```
58+
59+
1. Verify your installation.
60+
```
61+
kubectl get pods -n knative-eventing
62+
```
63+
64+
At this point you have the TriggerMesh prerequisites installed and can continue with the [standard installation instructions](/guides/installation/#install-the-crds).

docs/guides/installation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ The Knative project is a dependency of TriggerMesh, install it using the instruc
2121
* A Kubernetes cluster version `v1.20+`
2222
* Knative `v0.26+`
2323

24+
If you are using VMware's [Tanzu Community Edition](https://tanzucommunityedition.io/), please refer to the [Installation for Tanzu Community Edition](installation-tce.md).
25+
2426
## Install the CRDs
2527

2628
All TriggerMersh APIs are implemented as Kubernetes CRDs, which we need to create before deploying the controller. The following `kubectl apply` command will create all of the CRDs.

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ nav:
5353
- '': guides/installation.md
5454
- Using an AWS AMI: guides/installation-ami.md
5555
- Using Helm: guides/installation-helm.md
56+
- Tanzu Community Edition: guides/installation-tce.md
5657
- Integration Language:
5758
- '': til/Introduction.md
5859
- CLI: til/Commands.md

0 commit comments

Comments
 (0)