When i restart pod which is the leader in db mode (postgres). A new leader is elected as expected, but recreates all the following resources: plugins, routes, uptreams, services, consumers.
This also deletes the oauth2 tokens present in the database.
Expected Behavior
A leader is elected without delete everything in db
Steps To Reproduce
Start kong, add consumers and create oauth2 tokens.
Kill the leader and check:
> select * from oauth2_tokens;
Kong Ingress Controller version
kong version: 3.2.2
kong ingress controller version: 2.9.1
Is there an existing issue for this?
Current Behavior
When i restart pod which is the leader in db mode (postgres). A new leader is elected as expected, but recreates all the following resources:
plugins, routes, uptreams, services, consumers
.This also deletes the oauth2 tokens present in the database.
Expected Behavior
A leader is elected without delete everything in db
Steps To Reproduce
Kong Ingress Controller version
Kubernetes version
Anything else?
Link to kong issue: https://github.com/Kong/kong/issues/11351