Skip to content

Commit

Permalink
docs: missing docs for container resources (#1747)
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Wang <whynowy@gmail.com>
  • Loading branch information
whynowy committed May 30, 2024
1 parent 52d839d commit 51586cd
Showing 1 changed file with 49 additions and 1 deletion.
50 changes: 49 additions & 1 deletion docs/user-guide/reference/configuration/container-resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,54 @@ spec:
memory: 4Gi
```

## UDSource Container

To specify `resources` for `udsource` container of a source vertex pods:

```yaml
apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
name: my-pipeline
spec:
vertices:
- name: my-vertex
source:
udsource:
container:
resources:
limits:
cpu: "3"
memory: 6Gi
requests:
cpu: "1"
memory: 4Gi
```

## Source Transformer Container

To specify `resources` for `transformer` container of a source vertex pods:

```yaml
apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
name: my-pipeline
spec:
vertices:
- name: my-vertex
source:
transformer:
container:
resources:
limits:
cpu: "3"
memory: 6Gi
requests:
cpu: "1"
memory: 4Gi
```

## UDSink Container

To specify `resources` for `udsink` container of vertex pods:
Expand Down Expand Up @@ -95,4 +143,4 @@ spec:
memory: 4Gi
```

Container resources for [user init-containers](init-containers.md) are instead specified at `.spec.vertices[*].initContainers[*].resources`.
Container resources for [user init-containers](init-containers.md) are instead specified at `.spec.vertices[*].initContainers[*].resources`.

0 comments on commit 51586cd

Please sign in to comment.