karmada icon indicating copy to clipboard operation
karmada copied to clipboard

We want to get resource(pod)details from karmada-control-plane by using apiserver

Open wuyingjun-lucky opened this issue 2 years ago • 16 comments

Please provide an in-depth description of the question you have:

Requirement: 1 We have one k8s cluster for running our deployments|sts|.... and the number of deployments|sts|.... is increasing. The k8s cluster is under pressure. 2 We plan to use karmada to dispatch the deployments to member clusters. But our application (web client) need to get pods or other resource details from apiserver and do not want to get this from member that will bring costs of coding.

What do you think about this question?:

image Is there some way or plane to resolve this ?

Environment:

  • Karmada version:
  • Kubernetes version:
  • Others:

wuyingjun-lucky avatar Jun 02 '22 08:06 wuyingjun-lucky

You can get pods or other resource details from karmada-apiserver through karmada-aggregated-apiserver or karmada-search.

XiShanYongYe-Chang avatar Jun 02 '22 08:06 XiShanYongYe-Chang

Some confused , our application want to ignore resource location. It seems we can not ignore member clusters by using aa

wuyingjun-lucky avatar Jun 02 '22 08:06 wuyingjun-lucky

Some confused , our application want to ignore resource location. It seems we can not ignore member clusters by using aa

Aye, we need to assign a cluster when using aa. Karmada-search will get resources from all config clusters through cache, it migths fit your need.

XiShanYongYe-Chang avatar Jun 02 '22 08:06 XiShanYongYe-Chang

clusters

OK I will test karmada-search. By the way,does the result data structure of karmada-search keep pace with origin result from api-server ?

wuyingjun-lucky avatar Jun 02 '22 08:06 wuyingjun-lucky

By the way,does the result data structure of karmada-search keep pace with origin result from api-server ?

Yes. Refer to #1891

XiShanYongYe-Chang avatar Jun 02 '22 09:06 XiShanYongYe-Chang

#1891

Thanks a lot. We may be the first real users of karmada-search

wuyingjun-lucky avatar Jun 02 '22 09:06 wuyingjun-lucky

We also store the resource into OpenSearch, refer to #1897

XiShanYongYe-Chang avatar Jun 02 '22 09:06 XiShanYongYe-Chang

We also store the resource into OpenSearch, refer to #1897

OK,GOT it

wuyingjun-lucky avatar Jun 02 '22 09:06 wuyingjun-lucky

some questions, optional components can not be installed by karmadactl init

wuyingjun-lucky avatar Jun 05 '22 01:06 wuyingjun-lucky

We also store the resource into OpenSearch, refer to #1897

It seems we can only get the rest by rest api. But our app code is written by client-go , do you have some ideas for the capable of adapting @XiShanYongYe-Chang

wuyingjun-lucky avatar Jun 08 '22 06:06 wuyingjun-lucky

@wuyingjun-lucky At the community meeting yesterday, @ikaven1024 proposed an idea that might properly fit your needs. Hold on for a while, @ikaven1024 will send a feature proposal.

RainbowMango avatar Jun 08 '22 06:06 RainbowMango

Yeah , I have participated in the meeting

wuyingjun-lucky avatar Jun 08 '22 06:06 wuyingjun-lucky

@wuyingjun-lucky #2058

ikaven1024 avatar Jun 27 '22 04:06 ikaven1024

@wuyingjun-lucky #2058

OK, Thanks

wuyingjun-lucky avatar Jun 27 '22 04:06 wuyingjun-lucky

Hi @wuyingjun-lucky proxy feature has released in v1.3.0. You can try it. Looking forward your feedback.

ikaven1024 avatar Sep 01 '22 08:09 ikaven1024

Hi @wuyingjun-lucky proxy feature has released in v1.3.0. You can try it. Looking forward your feedback.

OK We will try it as soon as possible.

wuyingjun-lucky avatar Sep 01 '22 08:09 wuyingjun-lucky

It seems that the issue has been fixed, close it first, and you can always reopen it if there is a problem. /close

XiShanYongYe-Chang avatar Apr 24 '23 07:04 XiShanYongYe-Chang

@XiShanYongYe-Chang: Closing this issue.

In response to this:

It seems that the issue has been fixed, close it first, and you can always reopen it if there is a problem. /close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

karmada-bot avatar Apr 24 '23 07:04 karmada-bot