Set proper host
and port
in generated Kong services
#4470
Labels
area/feature
New feature or request
area/kong
Issue with Kong proxy behavior, rather than the controller
Is there an existing issue for this?
Problem Statement
Currently KIC sets
host
of generated Kong service to<service-name>.<service-namespace>.<port>.svc
, and does not setport
field (thusport
will be set to the deafult value 80). Although the real backends are specified byupstreams
of the service, and thehost
andport
does not affect real traffic, it will bring much confusion when it displays to users, and may bring additional issues to plugins.Now we need to set the
host
andport
to make less difference as using Kong without KIC, to bring less confusion to the visibility layer (like displaying on Konnect or Kong manager) and plugins.Proposed Solution
set
host
to the real (resolvable) host of the backend service if possiblebackendRefs
in gateway API*Route
?set
port
to be same as the real backend service port if possibleAdditional information
No response
Acceptance Criteria
host
of generated Kong service is set to a resolvable host of the backend service if possibleport
of generated Kong service is set to the real port number of backend service if possibleThe text was updated successfully, but these errors were encountered: