Skip to content

Ability to define multiple kubernetes client #919

@anuragagarwal561994

Description

@anuragagarwal561994

Feature description

Currently we can define a Singleton kubernetes client, however we have a use-case where we need to define and use multiple.

We have 4 GCP regions and this is a job which calls every pod in every region and do something. For now we have defined different application context to achieve this, but this is not efficient as it will create different netty event loops.

Although the app is small and doesn't really care for it, but I was still thinking to establish a better approach which doesn't involve hacking the system.

Having @EachBean should be able to solve the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions