How to define a target which belongs to many upstream

Hi, Kong folks.

I am using DB-less mode to define Kong API gateway’s resources. I have M upstreams (for each service), and behind each of them are N targets (In our architecture, Kong and App are deployed on different K8s cluster, so N is presented to number of worker nodes on App cluster).

If I defined resources, as normally I need to declare M upstreams and then M x N targets. It’s hard to maintain these resource in DB-less mode with Helm chart’s values.

So my question is about how to define efficiently a target that can belong to multiple upstreams or something that relate to tag or label to simplify my Helm chart’s values.

Hope somebody give me advice about that.