-
Notifications
You must be signed in to change notification settings - Fork 113
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
31 changed files
with
14,259 additions
and
6,549 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
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
1,270 changes: 1,270 additions & 0 deletions
1,270
config/base/crds/full/numaflow.numaproj.io_pipelines.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
1,218 changes: 1,218 additions & 0 deletions
1,218
config/base/crds/full/numaflow.numaproj.io_vertices.yaml
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Init Containers | ||
|
||
[Init Containers](https://kubernetes.io/docs/concepts/workloads/pods/init-containers/) can be provided for all the types of vertices. | ||
|
||
The following example shows how to add an init-container to a `udf` vertex. | ||
|
||
```yaml | ||
apiVersion: numaflow.numaproj.io/v1alpha1 | ||
kind: Pipeline | ||
metadata: | ||
name: my-pipeline | ||
spec: | ||
vertices: | ||
- name: my-udf | ||
initContainers: | ||
- name: my-init | ||
image: busybox:latest | ||
command: ["/bin/sh", "-c", "echo \"my-init is running!\" && sleep 60"] | ||
udf: | ||
container: | ||
image: my-function:latest | ||
``` | ||
The following example shows how to use init-containers and [`volumes`](./volumes.md) together to provide a `udf` container files on startup. | ||
```yaml | ||
apiVersion: numaflow.numaproj.io/v1alpha1 | ||
kind: Pipeline | ||
metadata: | ||
name: my-pipeline | ||
spec: | ||
vertices: | ||
- name: my-udf | ||
volumes: | ||
- name: my-udf-data | ||
emptyDir: {} | ||
initContainers: | ||
- name: my-init | ||
image: amazon/aws-cli:latest | ||
command: ["/bin/sh", "-c", "aws s3 sync s3://path/to/my-s3-data /path/to/my-init-data"] | ||
volumeMounts: | ||
- mountPath: /path/to/my-init-data | ||
name: my-udf-data | ||
udf: | ||
container: | ||
image: my-function:latest | ||
volumeMounts: | ||
- mountPath: /path/to/my-data | ||
name: my-udf-data | ||
``` |
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
Oops, something went wrong.