New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow user to define proxy service name #233
Comments
You can look up the
Apparently we do not provide the |
Since the service name is inferred by the Gateway name, how is the service name difficult to predict? there is always a 1:1 relationship between the Gateway and the service, hence the random suffix should not be a problem in figuring out which service belongs to which Gateway 🤔 Is there anything I'm missing, @liyangau? |
How do I make sure my ci/cd process is idempotent if the service name is randomly generated? By saying it is randomly generated, I am referring to The same set up, applying it twice on the same cluster. We got two different proxy service names. ➜ kubectl get svc -n kong -o name
service/dataplane-ingress-kong-gw-demo-cljpp-p5h8k ➜ kubectl get svc -n kong -o name
service/dataplane-ingress-kong-gw-demo-8nrt9-s5jct Imagine all my Zone Mesh Policies selects the Gateway Dataplanes using this service name and it changes every time I need to reapply it. (Let's say in a DR or migration situation) |
@liyangau Are you selecting For the latter you can use pod labels:
(that can also be embedded in
For the latter we don't have a solution right now but we could definitely provide one: add custom labels to Names are problematic because they can cause conflicts which then have to be handled and communicated to the user (prefferably through object status). |
It's reasonable to have the ability to specify the name of that service for an even simpler use case. Consider a situation when Kong Gateway is used to route traffic inside the cluster for some services, so the name of the |
Problem Statement
KGO generates proxy service name as
dataplane-ingress-<Gateway_Name>-s2vb6-lhz28
which is difficult to predict the real service name to use.Proposed Solution
Add support for
nameOverride
or something similar to allow user define their proxy service name so they have a predictable name to send requests to. It can be as simple asdataplane-ingress-<Gateway_Name>_<user_defined_name>
Additional Information
This feature is also valuable for Kong mesh users to select their gateway dataplanes.
The text was updated successfully, but these errors were encountered: