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
k8singress doesn't recognise named serviceport #23052
Comments
@howardjohn I would like to work on this issue. I figured out the k8s ingress to gateway conversion happens in pilot k8s config
Looks like If backend route does not have port number, it skips creating route destination. |
We need to lookup the pod I think which we do not currently read in the
ingress controller
…On Thu, Jun 11, 2020 at 1:01 PM Ronak Jain ***@***.***> wrote:
@howardjohn <https://github.com/howardjohn> I would like to work on this
issue.
I figured out the k8s ingress to gateway conversion happens in pilot k8s
config
https://github.com/istio/istio/blob/56120f8ccee49591245c95dd6f92025ab9bdc746/pilot/pkg/config/kube/ingress/conversion.go#L249
// Port names are not allowed in destination rules.
Looks like If backend route does not have port number, it skips creating
route destination.
How can we resolve named-ports to it's port number?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#23052 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEYGXJ4CLSQI5TWEB7WIT3RWEZYBANCNFSM4MLNZO5Q>
.
|
You are right, I looked up further and flow would look like this: We would have to pass k8s client to this function.But we won't have k8s client when it's called from the istioctl to covert ingress into gateway & virtual service, how do we handle this case? |
Bug description
When deploying Istio with k8singress=true and using a name port for
servicePort
in an Ingress resource I get a 404 when trying to access the app. Changing theservicePort
to an identical numeric port of the service works well.Expected behavior
Being able to access my app using a name
servicePort
Steps to reproduce the bug
Deployed a service and an ingress:
Using
8080
instead ofhttp
in the ingress works.Version (include the output of
istioctl version --remote
andkubectl version
andhelm version
if you used Helm)How was Istio installed?
Environment where bug was observed (cloud vendor, OS, etc)
AWS EKS 1.15
The text was updated successfully, but these errors were encountered: