Skip to content

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

Closed
@rambohe-ch

Description

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

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions