Kong controller failed to create upstream for k8s service

Hi Team,
I set up kong through this helm chart. I created gateway and httproute. I then created a custom plugin to set upstream based on cookies which is created like this in lua code - kong.service.set_upstream(config.target_upstream) and config is like below

  target_upstream: httpbin

But I am seeing error in controller pod - 2024/01/30 03:48:05 [error] 1280#0: *351 [kong] handler.lua:17 could not find an Upstream named 'httpbin'.

It seems no upstream created for k8s service. I expecte kong upstream would be automatially created along with k8s service creation. I can provide more information if needed. What am I missing?

1 Like