karmada-io / karmada

Open, Multi-Cloud, Multi-Cluster Kubernetes Orchestration
https://karmada.io
Apache License 2.0
4.12k stars 807 forks source link

Is there any way to watch the resource of member cluster(eg. Pods) through the karmada control plane using client api #4808

Open fizos opened 3 weeks ago

fizos commented 3 weeks ago

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

What do you think about this question?: I need to watch the pods in the member cluster through karmada. I know I can use the --watch in the karmadactl get cmd, But how to get the watch feature through client api? Environment:

XiShanYongYe-Chang commented 3 weeks ago

Hi @fizos You can try to use the Cluster proxy capability: https://karmada.io/docs/next/userguide/globalview/aggregated-api-endpoint

The karmadactl invokes the API capability internally.

XiShanYongYe-Chang commented 3 weeks ago

Hi @fizos did my answer help you in any way?