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 2022/06/07 13:59:39 UTC

[GitHub] [apisix-ingress-controller] haohello opened a new issue, #1074: request help: How to route the public traffic to the actual service via apisix ingress

haohello opened a new issue, #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074

   ### Issue description
   
   Sorry, this may sound silly to ask such kind of questions here. I'm just starting out to learn how to use apisix and kubernetes.
   As per the example on this [page](https://apisix.apache.org/docs/ingress-controller/practices/proxy-the-httpbin-service) , once you create a route, you'll be able to proxy this route through apisix, obviously there is no clue here on how to route the public traffic to the actual service.
   
   ### Environment
   
   - your apisix-ingress-controller version (the latest version): latest
   - your Kubernetes cluster version (output of kubectl version): v1.23.6+k3s1
   - if you run apisix-ingress-controller in Bare-metal environment, also show your OS version (uname -a):
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1149408923

   So you are using klipper-lb (k3s servicelb) instead of public cloud LoadBalancer, right?
   
   I would recommend you to try MetalLB.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148923665

   Can you check APISIX's logs?
   Or first check if your IP is correctly forwarded to 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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 closed issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 closed issue #1074: request help: How to route the public traffic to the actual service via apisix ingress
URL: https://github.com/apache/apisix-ingress-controller/issues/1074


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148909486

   I'm using the LoadBalancer IP address of the `apisix-gateway` service.  As you can see from the screenshot, it still shows the error of '404 Route Not Found'.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1149477561

   Now it turned out that the command `curl http://5.1xx.xx.108/headers -H 'Host: local.httpbin.org'` can't return correct result only on my local machine.
   When I tried this command on the Hetzner Cloud servers and also on the website `https://reqbin.com/curl` , all return with the expected result.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1149474644

   I'm afraid that I couldn't be able to use MetalLB since it is not possible for me to get a layer 2 ip address. 
   All of the servers are on the Hetzner Cloud, they only allow the users to bind the ip to a specific server.
   
   After too many trials and errors, I finally get it working correctly after reinstall everything from scratch again.   I guess it might be a network firewall issue.
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1149692990

   OK, I will close this issue, if you have any questions, feel free to open a new issue.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1149029193

   As was mentioned [here](https://github.com/k3s-io/k3s/issues/1710#issuecomment-621341719),   klipper-lb (k3s servicelb) does not interact with things at the HTTP layer; it exposes things at the TCP layer using iptables. It would be up to traefik, nginx, or another ingress service to set the headers. 
   
   APISIX is the only ingress I've installed.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148794556

   ![image](https://user-images.githubusercontent.com/134774/172413894-f563b16f-f832-4800-ab50-c4d090cb0ced.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1149680854

   Yes, thank you very much for helping resolve this issue.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1149317145

   @tao12345666333 There is [also another issue in the k3s project issue list](https://github.com/k3s-io/k3s/issues/1652), looks like that might be the similar issue I encountered.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148935923

   May I ask how I could check apisix' logs? Plz bear with me, I have no idea how to work this out.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148966504

   ![image](https://user-images.githubusercontent.com/134774/172445657-0fced551-dd77-48ac-9627-7b382c474acf.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1149525780

   > After too many trials and errors, I finally get it working correctly after reinstall everything from scratch again.
   :+1: 
   
   
   
   > When I tried this command on the Hetzner Cloud servers and also on the website `https://reqbin.com/curl` , all return with the expected result.
   
   In this case, can we consider this issue to be resolved?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148948665

   just run `kubectl logs <APISIX's pod name>


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148973515

   It's obvious from the logs that your host hader is not being passed. 
   You can check the configuration of your load balancer


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148864199

   If I understand correctly, you are asking how to access the actual service through APISIX outside the Kubernetes cluster.
   
   First you need to get APISIX to route the proxy correctly, which is obviously already done in your screenshot.
   
   Then, outside the Kubernetes cluster, you should access the address exposed by APISIX. 
   You can check the address of the `apisix-gateway` service. It may be exposed through NodePort or LoadBalancer.
   
   Then you can correctly route to your service by accessing the address and port.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] haohello commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
haohello commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148921664

   ![image](https://user-images.githubusercontent.com/134774/172438357-9aafcb49-9699-4e1d-aaeb-a40a0653527d.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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [apisix-ingress-controller] tao12345666333 commented on issue #1074: request help: How to route the public traffic to the actual service via apisix ingress

Posted by GitBox <gi...@apache.org>.
tao12345666333 commented on issue #1074:
URL: https://github.com/apache/apisix-ingress-controller/issues/1074#issuecomment-1148918430

   Maybe you need to remove the `/` at the end of the url.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org