Overview
There has been a change in the way how Eureka manages routes in Kong.
The goal of the change is to reduce number of routes in Kong. This is achieved by making routes non-tenant-specific - thus avoiding duplication of same routes per tenant.
Since routes are now not tenant-specific, they can be created/deleted immediately when module discovery information is added/deleted - which is why the logic for managing Kong routes is now in mgr-applications microservice.
Previously routes were created/deleted in Kong on entitling/unentitling application for a specific tenant - and that is why logic for managing Kong routes was in mgr-tenant-entitlements microservice.
Relevant Jira issues:
Transition process
Prerequisites
Deploy mgr-applications version 2.0.0 or later.
Enable feature toggle in mgr-applications by setting configuration property routemanagement.enable to true, e.g. via environment variable ROUTEMANAGEMENT_ENABLE = true
Disable feature toggle in mgr-tenant-entitlements by setting configuration property application.kong.enabled to false, e.g. via environment variable APPLICATION_KONG_ENABLED = false
Steps
Disable Kong routes management in mgr-tenant-entitlements via env variable APPLICATION_KONG_ENABLED = false
Enable Kong routes management in mgr-applications via env variable ROUTEMANAGEMENT_ENABLE = true
Get all module IDs from discovery information: GET <mgr-applications>/modules/discovery?limit=5000
Delete discovery information per module: DELETE <mgr-applications>/modules/<module-id>/discovery
Re-create discovery information: POST <mgr-applications>/modules/discovery