We’ve been using Kong 1.2 with a PostgreSQL database and the Kong Ingress Controller for a while now and it’s working great.
However we want to upgrade it now (so we can get route metrics with Prometheus plugin) and looking at the docs it seems that DBless mode it’s the way to go.
Until now we’ve been creating the routes and services on Kubernetes through Kong CRDs and annotations while plugins, consumers, credentials were applied/created through Kong API.
I’d like to know which is the recommended way to configure Kong in DBless mode with Kong Ingress Controller:
- Using only declarative configuration with kong.yml
- Using only k8s CRDs
- Mixing declarative configuration with k8s CRDs (if possible)
I tried option 3 but it looks like the yaml config gets overridden with the k8s CRDs.
Then I tried option 1 but I don’t know how to reference my k8s services.
Could you provide an example hello world of declarative configuration when using Kong Ingress Controller?