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

[feature request] Support InClusterConfig for pods to access kube-apiserver through yurt-hub on edge nodes #372

Closed
rambohe-ch opened this issue Jul 1, 2021 · 2 comments
Labels
kind/feature kind/feature

Comments

@rambohe-ch
Copy link
Member

What would you like to be added:

  1. Many users in OpenYurt community have requested that support InClusterConfig for pods to access kube-apiserver through yurt-hub on edge nodes. so pods on cloud can move to edge cluster smoothly.
  2. And based on InClusterConfig, pods will use address https://${KUBERNETES_SERVICE_HOST}:${KUBERNETES_SERVICE_PORT} to access kube-apiserver.

so we need to add the following sub features.

  • sub feature1: yurthub supports https serve.
  • sub feature2: envKUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORTshould be the address that yurt-hub listening, like169.254.2.1:10261`

Why is this needed:

  1. In native kubernetes cluster, Pods usually use InClusterConfig setting to access kube-apiserver.

  2. If InClusterConfig for pods is supported in OpenYurt, pods in native kubernetes cluster can be moved into OpenYurt cluster smoothly and no modification.

others

  1. sub feature1 is handled by @luckymrwang in this pull request: #368
@rambohe-ch
Copy link
Member Author

added comments:
sub feature2 have fixed by #394

@rambohe-ch
Copy link
Member Author

this feature is released in OpenYurt v0.5.0, and this issue can be close.

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

No branches or pull requests

1 participant