Sync-Catalog across kubernetes clusters to same external Consul server with upsert strategy #3260
Labels
type/question
Question about product, ideally should be pointed to discuss.hashicorp.com
Question
Two Kubernetes clusters that represent a hybrid environment, writing concurrently to the same consul external server. What happens is that each kubernetes cluster then invalidates the existing services from the other cluster, concurrently updatign the catalog with only the services they see on their own cluster.
What we need is a way to upsert services from the two clusters and not have the two sync catalog agents rewrite each other. Similar to how externalDNS works for DNS records.
Is there a way to define the merge or update strategy of the consul -sync catalog agent?
Or do we always have to run multiple consul servers and federate them to have a proper catalog for the same environment (hybrid)?
Helm Configuration
Current understanding and Expected behavior
Each of the Sync-catalog agents only sees its services, it will invalidate the services the other agent has written and this will happens concurrently.
Expected behavior is that services are only deregistered if they are unhealthy. So the merge strategy should be upsert, similar to how externalDNS can be configured.
The text was updated successfully, but these errors were encountered: