-
Notifications
You must be signed in to change notification settings - Fork 405
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 kube-proxy use yurthub #358
Comments
@MIBc Thank you for filing issue.
and we plan to solve this challenge in OpenYurt v0.5.0 without configure kube-proxy daemonset by instructing Yurthub endpoint info into pods automatically. if you want to contribute this feature, Please let me know it. and we also discuss this feature in issue #351 . |
It's a great plan. I'm great to contribute. |
Thank you for your response. how about apply for the OpenYurt Member? and you can set me as sponsor. |
same issue here. anywhere can I find a full solution doc or discussion? @rambohe-ch kube-proxy or other addons may run in daemonset, we shall only redirect traffic to yurt-hub on edge-node. |
@adamzhoul You can set |
@adamzhoul And if you are not using the docker images building from the latest source code, you may need to add rbac for group |
thanks @DrmagicE have a quick look at the latest code. So, I am still wondering how it affects kube-proxy, if the kube-proxy never visits yurtHub in the first place.
Is there any else code I am missing? |
@adamzhoul Oh, I miss something. The kube-proxy should be configured to use in-cluster config which will be mutated by the kubelet. So:
|
hi @DrmagicE as far as I know, using in-cluster config requires rabc config, so kube-proxy can visit the apiServer without certification file.
If I remove the kubeconfig setting in the configmap , kube-proxy in cloud-node will be affected too.
Sorry, I don't know much about What will kubelet do to make kube-proxy visit 127.0.0.1. |
|
thanks @rambohe-ch after some dig into kubelet code, supply some detail.
|
@DrmagicE @adamzhoul How about configure the default value of |
@rambohe-ch I agree. |
@rambohe-ch I agree too.
|
Make sure kube-proxy use InClusterConfig to access kube-apiserver, and kube-proxy will access kube-apiserver through yurthub without configuration. this feature is supported in OpenYurt v0.5.0. the detail info, you can reference the link here: https://openyurt.io/zh/blog/How-run-business-pod-in-edge-scenarios |
If remove the kubeconfig setting in the configmap , kube-proxy on cloud-node can not dial to kube-apiserver after reboot machine. So it is not a good idea ! |
it is not work on edge but cloud
|
@hhstu In OpenYurt v0.6.0 version, kube-proxy be able to use the same command parameter on the cloud side or the edge side. but you need to make sure that kube-proxy uses InClusterConfig to access kube-apiserver. the detail info you can reference link here: https://openyurt.io/zh/blog/How-run-business-pod-in-edge-scenarios/ |
/kind question
Can kube-proxy get resources throuth yurthub instead of apiserver? How does yurthub work for kube-proxy ?
The text was updated successfully, but these errors were encountered: