|
| 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). |
0 commit comments