You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/03/30 12:35:47 UTC
[GitHub] [apisix-helm-chart] riskgod opened a new issue #50: Can't visit other pod in one Node
riskgod opened a new issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50
hey, I deploy a new grpc service in local k8s and this service can visit in my local, but when I use apisix's upstearm to visit it, it failed.



--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod closed issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod closed issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] gxthrj commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
gxthrj commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-811646790
I don’t know much about the working mechanism of GRPC in APISIX, and I’m not sure if It will use local DNS resolution.
cc @spacewander
BTW, You can try to use pod IP instead of internal domain name configuration to upstream. @riskgod
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] tokers commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810711728
> 
>
> It should be:
>
> * `grpc-node.default`
> * `grpc-node.default.svc`
> * `grpc-node.default.svc.cluster.local`
By the way, which k8s distribution are you using?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] tokers commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810968771
@riskgod A little embarrassed, I misunderstood the output of `nslookup` , actually the `grpc-node` service was resolved correctly (target IP address: `10.99.252.250`).
So have you try to access grpc-node through APISIX? if so and it's abnormal, please paste some error log of APISIX.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod removed a comment on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod removed a comment on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-811587119

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-811587119

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] tokers commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810707696
Interesting problem, I'm working on it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-812468055
> @riskgod The above problem is not related to DNS. The problem `404 Route Not Found` means you don't configure a Route correctly, or you have configured one but you don't use correct URI, Host when you send a request to APISIX.
>
> Also, please paste your Route configuration.
hey the 404 err from pod not in apisix, will close this issue, this is a net err.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810717180
> * grpc-node.default.svc.cluster.local

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810716701
> @riskgod Could you paste the contents of `/etc/resolv.conf` in the APISIX container?

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-811669506
> I don’t know much about the working mechanism of GRPC in APISIX, and I’m not sure if It will use local DNS resolution.
> cc @spacewander
>
> BTW, You can try to use pod IP instead of internal domain name configuration to upstream. @riskgod
the Pod IP still not works
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod edited a comment on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod edited a comment on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-811583964
> @riskgod A little embarrassed, I misunderstood the output of `nslookup` , actually the `grpc-node` service was resolved correctly (target IP address: `10.99.252.250`).
>
> So have you try to access grpc-node through APISIX? if so and it's abnormal, please paste some error log of APISIX.
```
curl -i http://127.0.0.1:30128/grpctest?name=world
```
<img width="1028" alt="Screen Shot 2021-04-01 at 10 03 58" src="https://user-images.githubusercontent.com/3436287/113233336-95901500-92d1-11eb-85a9-cf2d0817322d.png">
This is works in my local apisix but failed in k8s.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-811583964
> @riskgod A little embarrassed, I misunderstood the output of `nslookup` , actually the `grpc-node` service was resolved correctly (target IP address: `10.99.252.250`).
>
> So have you try to access grpc-node through APISIX? if so and it's abnormal, please paste some error log of APISIX.
```
curl -i http://127.0.0.1:30128/grpctest?name=world
```
<img width="1028" alt="Screen Shot 2021-04-01 at 10 03 58" src="https://user-images.githubusercontent.com/3436287/113233336-95901500-92d1-11eb-85a9-cf2d0817322d.png">
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] moonming commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
moonming commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810230214
@gxthrj @tokers please take a look
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810719821
> > 
> > It should be:
> >
> > * `grpc-node.default`
> > * `grpc-node.default.svc`
> > * `grpc-node.default.svc.cluster.local`
>
> By the way, which k8s distribution are you using?
Ok, you means the k8s in docker and in my local macOS?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] tokers commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810710622
@riskgod Could you paste the contents of `/etc/resolv.conf` in the APISIX container?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] tokers commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810710776
The `search` configuration in your `/etc/resolv.conf` seems wrong.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810715992
> > 
> > It should be:
> >
> > * `grpc-node.default`
> > * `grpc-node.default.svc`
> > * `grpc-node.default.svc.cluster.local`
>
> By the way, which k8s distribution are you using?
hey, I'm use the default helm charts.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] tokers commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-810711266

It should be:
* `grpc-node.default`
* `grpc-node.default.svc`
* `grpc-node.default.svc.cluster.local`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] riskgod commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
riskgod commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-811615357
<img width="402" alt="Screen Shot 2021-04-01 at 11 41 17" src="https://user-images.githubusercontent.com/3436287/113240378-2e795d00-92df-11eb-84f7-8b954bcf511b.png">
in grpc-node curl apisix not works too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [apisix-helm-chart] tokers commented on issue #50: Can't visit other pod in one Node
Posted by GitBox <gi...@apache.org>.
tokers commented on issue #50:
URL: https://github.com/apache/apisix-helm-chart/issues/50#issuecomment-811862591
@riskgod The above problem is not related to DNS. The problem `404 Route Not Found` means you don't configure a Route correctly, or you have configured one but you don't use correct URI, Host when you send a request to APISIX.
Also, please paste your Route configuration.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org