Replies: 2 comments 4 replies
-
You can access karmada-apiserver from a pod like this way using client-go:
if you need to access any member cluster, add host kindly:
|
Beta Was this translation helpful? Give feedback.
-
First, you should create your ServiceAccount in the Karmada control-plane no matter which way you use. It's not a problem, I think. Second, kindly refer to the second item above, you can directly refer to this function
you can get them from
otherwise you should create token by TokenRequest API. Finally, you should change your rest-config's
|
Beta Was this translation helpful? Give feedback.
-
Like k8s, Karmada can set the proxy to allow external access to the API.
Does Karmada have a similar client-side way to access the API?
Refer to https://kubernetes.io/zh-cn/docs/tasks/run-application/access-api-from-pod/
https://kubernetes.io/zh-cn/docs/tasks/run-application/access-api-from-pod/
Beta Was this translation helpful? Give feedback.
All reactions