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

feat: Provide proxy APIs for users to access member cluster resources #309

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhy76
Copy link

@zhy76 zhy76 commented Jan 14, 2024

What would you like to be added?

Provide proxy API for users to access member cluster resources

Why is this needed?

Users may need to check the distribution of application resources in each member cluster. And Users do not want to log in to each cloud provider’s website or switch the kubeconfig context. It will greatly improve the convenience for users to use kubeAdmiral if we provide the proxy APIs to access member cluster resources.

Fixes: #261

A new aggregated apiserver component is introduced to implement the capabilities of proxy API for users to access member cluster resources.

Usage

You can use make local-up to try it.

  1. Run the following command (replace {clustername} with your actual clustername) :
kubectl get --kubeconfig $HOME/.kube/kubeadmiral/kubeadmiral.config --context kubeadmiral-host --raw /apis/aggregated.kubeadmiral.io/v1alpha1/aggregations/{clustername}/proxy/api/v1/nodes(pods, services etc.)

example:

kubectl get --kubeconfig $HOME/.kube/kubeadmiral/kubeadmiral.config --context kubeadmiral-host --raw /apis/aggregated.kubeadmiral.io/v1alpha1/aggregations/kubeadmiral-member-1/proxy/api/v1/nodes
  1. You will get resources in member cluster.
image

cc @mrlihanbo

@zhy76 zhy76 changed the title [WIP]Provide proxy APIs for users to access member cluster resources Provide proxy APIs for users to access member cluster resources Jan 18, 2024
@zhy76 zhy76 changed the title Provide proxy APIs for users to access member cluster resources feat: Provide proxy APIs for users to access member cluster resources Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide proxy APIs for users to access member cluster resources
1 participant