forked from numaproj/numaflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: running on istio (numaproj#1056)
Signed-off-by: Derek Wang <[email protected]> Signed-off-by: Sidhant Kohli <[email protected]>
- Loading branch information
Showing
6 changed files
with
67 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Running on Istio | ||
|
||
If you want to get pipeline vertices running on Istio, so that they are able to talk to other services with Istio enabled, one approach is to whitelist the ports that Numaflow uses. | ||
|
||
To whitelist the ports, add `traffic.sidecar.istio.io/excludeInboundPorts` and `traffic.sidecar.istio.io/excludeOutboundPorts` annotations to your vertex configuration: | ||
|
||
```yaml | ||
apiVersion: numaflow.numaproj.io/v1alpha1 | ||
kind: Pipeline | ||
metadata: | ||
name: my-pipeline | ||
spec: | ||
vertices: | ||
- name: my-vertex | ||
metadata: | ||
annotations: | ||
sidecar.istio.io/inject: "true" | ||
traffic.sidecar.istio.io/excludeOutboundPorts: "4222" # Nats JetStream port | ||
traffic.sidecar.istio.io/excludeInboundPorts: "2469" # Numaflow vertex metrics port | ||
udf: | ||
container: | ||
image: my-udf-image:latest | ||
... | ||
``` | ||
|
||
If you want to apply same configuration to all the vertices, use [Vertex Template](./pipeline-customization.md#vertices): | ||
|
||
```yaml | ||
apiVersion: numaflow.numaproj.io/v1alpha1 | ||
kind: Pipeline | ||
metadata: | ||
name: my-pipeline | ||
spec: | ||
templates: | ||
vertex: | ||
metadata: | ||
annotations: | ||
sidecar.istio.io/inject: "true" | ||
traffic.sidecar.istio.io/excludeOutboundPorts: "4222" # Nats JetStream port | ||
traffic.sidecar.istio.io/excludeInboundPorts: "2469" # Numaflow vertex metrics port | ||
vertices: | ||
- name: my-vertex-1 | ||
udf: | ||
container: | ||
image: my-udf-1-image:latest | ||
- name: my-vertex-2 | ||
udf: | ||
container: | ||
image: my-udf-2-image:latest | ||
... | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters