The kafka-consume plugin no longer supports scoping to a Service.
If you try to scope this plugin to a Service on a fresh Kong Gateway instance, a schema violation error will be returned.
In traditional mode, Kong Gateway will log an error-level message at startup if a kafka-consume plugin scoped to a Service is detected. The plugin configuration must be updated after startup. Until the configuration is updated, requests to the previous plugin URL will continue to be forwarded to the upstream Service, and responses will be returned to the downstream client as before.
In DB-less mode, if the declarative configuration file contains a kafka-consume plugin scoped to a Service, Kong Gateway will fail to start. In this case, proceed as follows:
- Update the declarative configuration 1. Restart Kong Gateway.
In hybrid mode, if a kafka-consume plugin scoped to a Service exists in PostgreSQL, upgrading and restarting the control plane will succeed. Then, to avoid validation errors on sync, follow these steps:
- Update the plugin configuration.
- Update and restart the data plane.