Skip to content

配置订阅支持自定义LocalIP #872

@zmz789

Description

@zmz789

Use case(s) - what problem will this feature solve?

配置订阅场景下,订阅者的 IP 被设置为 LocalIP,其获取逻辑是顺序遍历满足条件的第一个网络接口;在容器中使用时,第一个网络接口往往是 cilium_host IP,无法区分订阅者 Pod 的 IP。
尝试在 K8S 中设置网络空间与宿主机共享,但依然会在第一个网络接口绑定虚拟网卡。

Proposed Solution

配置订阅支持自定义 LocalIP

  • 默认情况下,订阅者 IP 使用当前的逻辑获取
  • 客户端自定义 LocalIP 时,使用自定义值

Alternatives Considered

获取 LocalIP 时跳过 cilium_host,但不排除某些业务场景需要使用 cilium_host IP。

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions