Skip to content
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

[Question] How to proxy requests from cloud to pod (not hostNetwork) on edge? #522

Closed
tiezhuoyu opened this issue Oct 14, 2021 · 10 comments
Closed
Assignees
Labels
kind/question kind/question

Comments

@tiezhuoyu
Copy link

tiezhuoyu commented Oct 14, 2021

What happened:
Hi, i want to know if it is possible to proxy requests from cloud to pods (not hostNetwork mod) on edge? I found issue issue#138, but it works on hostNetwork mod.

Thanks!

What you expected to happen:
For example, pod1(192.168.0.5) on cloud node, and pod2(192.168.4.5) on edge node.
If it is possible pod1 send reqeust like 'GET http://192.168.4.5:80' ?

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • OpenYurt version: v0.5.0
  • Kubernetes version (use kubectl version): v1.18.2
  • OS (e.g: cat /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools: yurtctl init & yurtctl join
  • Others:

others
/kind question

@tiezhuoyu tiezhuoyu added the kind/question kind/question label Oct 14, 2021
@DrmagicE
Copy link
Member

@tiezhuoyu Thank you for raising the issue.
Proxying to not hostNetwork pod is not supported at present, but in some cases, we do need proxy requests from cloud to edge service. For instance, the prometheus server in the cloud-side may expect to request the metric endpoint of the edge components through their service endpoint. How about implementing this feature to YurtTunnel? @rambohe-ch

@rambohe-ch
Copy link
Member

@tiezhuoyu Thank you for raising this issue.
Proxy request from cloud to edge pods(not hostnetwork) is not supported at present as @DrmagicE has replied. and Would you be able to describe the detail scenario about this requirement?

@rambohe-ch
Copy link
Member

@tiezhuoyu Thank you for raising the issue. Proxying to not hostNetwork pod is not supported at present, but in some cases, we do need proxy requests from cloud to edge service. For instance, the prometheus server in the cloud-side may expect to request the metric endpoint of the edge components through their service endpoint. How about implementing this feature to YurtTunnel? @rambohe-ch

@DrmagicE I think it's more general to use service to access pods in kubernetes. so if proxy requests from cloud to edge service, i'd like to sure that the problem in the issue is also solved. @DrmagicE @tiezhuoyu Do you have interest to take over and solve this feature?

@DrmagicE
Copy link
Member

@rambohe-ch Yes, I'll try it.

@rambohe-ch
Copy link
Member

/assign @DrmagicE

@lujinda
Copy link

lujinda commented Nov 25, 2021

We are designing a solution that connects the edge and the edge, and the edge and the cloud network. The general idea is to use IPSec (or other) to connect to each data center, and then use IPSec to send the traffic of the Pod in one data center to other data centers. Plan to integrate with openyurt. The plan hopes that the intrusion to the Pod is small enough.

@stale
Copy link

stale bot commented Feb 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Feb 23, 2022
@rambohe-ch
Copy link
Member

/pinned

@stale stale bot removed the wontfix label Feb 24, 2022
@rambohe-ch
Copy link
Member

@tiezhuoyu Pods(not hostNetwork) connection across public network will be solved by raven, also you can dive into the proposal: https://github.com/openyurtio/openyurt/blob/master/docs/proposals/20211123-enhancement-of-cluster-networking.md

and we will close this issue, and you reopen or create a new issue if you have any other questions.

@tiezhuoyu
Copy link
Author

@rambohe-ch that's a greate work 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question kind/question
Projects
None yet
Development

No branches or pull requests

4 participants