Skip to content

[Feature Request] Ability to configure ovn.kubernetes.io/routes per namespace #5062

Closed

Description

@kvaps

Description

Hello, it would be nice to configure common routes for all pods in namespace, by adding global annotation in namespace object:

    ovn.kubernetes.io/routes: |
      [{
        "gw": "10.244.6.136"
      }]

Activity

  1. oilbeater commented on Mar 10, 2025

    @oilbeater
    Member

    @kvaps, it might be more effective to move this functionality to a different controller or a webhook, as it appears to be needed for a specific use case rather than a common one.

  2. kvaps commented on Mar 10, 2025

    @kvaps
    ContributorAuthor

    Got it, I'm going to prepare webhook, and I will let you know.
    Maybe you'll be interested to get it as optional component to upstream.

  3. kvaps commented on Mar 13, 2025

    @kvaps
    ContributorAuthor

    So we have implemented a webhook for kube-ovn, which just copies annotations port_security and routes annotations from the namespace to all pods created in it.

    Source code is available here:
    https://github.com/cozystack/cozystack/tree/main/packages/system/kubeovn-webhook

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew network feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions