|
| 1 | +# Eventing integration with Istio service mesh |
| 2 | + |
| 3 | +**Flag name**: `istio` |
| 4 | + |
| 5 | +**Stage**: Beta, disabled by default |
| 6 | + |
| 7 | +**Tracking issue**: [#6596](https://github.com/knative/eventing/issues/6596) |
| 8 | + |
| 9 | +## Overview |
| 10 | + |
| 11 | +Administrators can use Istio with Eventing to encrypt, authenticate and authorize requests to |
| 12 | +Eventing components. |
| 13 | + |
| 14 | +## Prerequisites |
| 15 | + |
| 16 | +- In order to enable the istio integration, you will need to install Istio by |
| 17 | + following [the Istio installation guides](https://istio.io/latest/docs/setup/install/). |
| 18 | + |
| 19 | +## Installation |
| 20 | + |
| 21 | +Some Eventing components use services of type `ExternalName` and with such services, Istio need to |
| 22 | +be manually configured to connect to such services using mutual TLS. |
| 23 | + |
| 24 | +Eventing releases a controller that automatically configures Istio so that any pod that is part of |
| 25 | +an Istio mesh can communicate with Eventing components that are also part of the same Istio mesh. |
| 26 | + |
| 27 | +1. Create the Eventing namespace and enable Istio injection: |
| 28 | + ```shell |
| 29 | + kubectl create namespace knative-eventing --dry-run=client -oyaml | kubectl apply -f - |
| 30 | + kubectl label namespace knative-eventing istio-injection=enabled |
| 31 | + ``` |
| 32 | +2. [Follow Eventing installation](./../../install) |
| 33 | + |
| 34 | +3. Install `eventing-istio-controller`: |
| 35 | + ```shell |
| 36 | + kubectl apply -f {{ artifact(org="knative-extensions", repo="eventing-istio",file="eventing-istio.yaml")}} |
| 37 | + ``` |
| 38 | +4. Verify `eventing-istio-controller` is ready: |
| 39 | + ```shell |
| 40 | + kubectl get deployment -n knative-eventing |
| 41 | + ``` |
| 42 | + Example output: |
| 43 | + ```shell |
| 44 | + NAME ... READY |
| 45 | + eventing-istio-controller ... True |
| 46 | + # other deployments omitted ... |
| 47 | + ``` |
| 48 | + |
| 49 | +## Enable istio integration |
| 50 | + |
| 51 | +The `istio` feature flag is an enum configuration that configures the `eventing-istio-controller` to |
| 52 | +create Istio resources for Eventing resources. |
| 53 | + |
| 54 | +The possible values for `istio` are: |
| 55 | + |
| 56 | +- `disabled` |
| 57 | + - Disable Eventing integration with Istio |
| 58 | +- `enabled` |
| 59 | + - Enabled Eventing integration with Istio |
| 60 | + |
| 61 | +For example, to enable `istio` integration, the `config-features` ConfigMap will look like |
| 62 | +the following: |
| 63 | + |
| 64 | +```yaml |
| 65 | +apiVersion: v1 |
| 66 | +kind: ConfigMap |
| 67 | +metadata: |
| 68 | + name: config-features |
| 69 | + namespace: knative-eventing |
| 70 | +data: |
| 71 | + istio: "enabled" |
| 72 | +``` |
| 73 | + |
0 commit comments