Skip to content

containerTemplate for all Pod Containers #3093

@syepes

Description

@syepes

Summary

There should be a single way of establishing a global containerTemplate that will be applied on all the deployed Pod's and all its underlining Containers. These global containerTemplates would also be possible to overwrite by specifying the specific settings, just in case we need to change the debug level or other settings on a single vertice.

Today the containerTemplate are not applyed to all container:

if containers[i].Name == CtrMain || containers[i].Name == CtrInit || containers[i].Name == CtrInitSideInputs {

It could also be possible to add a setting like containerTemplateApplyTo, to not change the current behavior an let the user overwrite the default list of numa, int and init-side-inputs

apiVersion: numaflow.numaproj.io/v1alpha1
kind: Pipeline
metadata:
  name: processor
  namespace: numaflow
spec:
  templates:
    vertex:
      containerTemplateApplyTo: ["numa","transformer"..]
      containerTemplate:
        env:
          - name: NUMAFLOW_DEBUG
            value: "false"
          - name: RUST_LOG
            value: "warn"

Use Cases

This should facilitate the deployment and large scale management by simplefying the number is specific settings.

Related

#3090

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions