Hi,
I am running Kong version 1.3.0rc1 databaseless with the kubernetes ingress controller 0.5.0. I ran into an issue where Kong appears to be unable to register plugins on routes. When looking in the Kong pods’ error logs I see this message repeated:
2019/08/06 17:43:54 [error] 35#0: *19056 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/kong/runloop/balancer.lua:249: attempt to index local 'healthchecker' (a nil value)
stack traceback:
coroutine 0:
/usr/local/share/lua/5.1/kong/runloop/balancer.lua: in function 'callback'
/usr/local/share/lua/5.1/resty/dns/balancer/base.lua:1270: in function </usr/local/share/lua/5.1/resty/dns/balancer/base.lua:1269>, context: ngx.timer
2019/08/06 17:43:54 [error] 39#0: *18914 [lua] balancer.lua:609: on_target_event(): target create: balancer not found for service.namespace.svc, context: ngx.timer
In the Kubernetes logs I see this in the Ingress Controller:
E0806 17:44:16.035853 1 controller.go:125] unexpected failure updating Kong configuration:
posting new config to /config: 400 Bad Request {"fields":{"services":[null,{"routes":[{"plugins":[null,null,null,null,{"config":{"add":"expected a record"}}]}]}]},"name":"invalid declarative configuration","code":14,"message":"declarative config is invalid: {services={[2]={routes={{plugins={[5]={config={add=\"expected a record\"}}}}}}}}"}
W0806 17:44:16.035876 1 queue.go:113] requeuing namespace/service.plugin, err posting new config to /config: 400 Bad Request {"fields":{"services":[null,{"routes":[{"plugins":[null,null,null,null,{"config":{"add":"expected a record"}}]}]}]},"name":"invalid declarative
Any help with understanding these errors, would be much appreciated.
Thanks,
Arnav