Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.
This repository was archived by the owner on May 14, 2025. It is now read-only.

Support to add fieldRef fieldPath for environment variable for stream apps #5849

Open
@dineshkumarsarangapani

Description

@dineshkumarsarangapani

Problem description:
The current system does not support passing the status.hostIP as an environment variable to the pods in stream apps. This limitation restricts our ability to configure and manage environment variables dynamically based on the host IP, which is critical for certain operational scenarios and integrations.

Solution description:
The solution involves adding support for fieldRef and fieldPath for environment variables specifically for stream applications. This would allow us to set the status.hostIP as an environment variable within the pod specifications. In edge cases where the status.hostIP is not available or accessible, the system should log an appropriate error message and possibly fall back to a default IP or handle the absence gracefully without crashing the application.

Description of alternatives:
Alternatives considered include:

Manually injecting the status.hostIP via init containers or sidecar containers, which adds complexity and overhead.
Using a custom script to fetch and set the status.hostIP as an environment variable at runtime, which is less efficient and prone to errors.
Configuring the status.hostIP via a ConfigMap or Secret, which is not dynamic and requires frequent updates and maintenance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions