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

有cce-sdk中集成k8s接口的计划吗? #7

Open
Suchel opened this issue Jan 11, 2021 · 3 comments
Open

有cce-sdk中集成k8s接口的计划吗? #7

Suchel opened this issue Jan 11, 2021 · 3 comments

Comments

@Suchel
Copy link

Suchel commented Jan 11, 2021

目前cce的sdk提供的功能太少了,连列出所有命名空间都不具备,还需要单独调用k8s接口去获取namespace和pod,并且还不能通过sdk直接认证,要自己构造请求,体验上很差。
请问有计划将k8s的接口集成到cce中吗?

@akillcool
Copy link

Kubernetes的SDK可以参考 https://kubernetes.io/zh/docs/reference/using-api/client-libraries/ 使用,无需自己构造请求。

@Suchel
Copy link
Author

Suchel commented Jan 12, 2021

首先,感谢您的回复。可能是我表达的不够清楚,对于我们使用华为云cce服务的使用者来说,其实并不纠结与是使用api或是sdk,相较于本地原生k8s,难点在于如何结合华为云的验证和k8s的sdk。
因为本地我们通常可以构建client去调用k8s的接口,但华为云我看是通过{cluster_id}.endpoint/api_uri去请求的,我的想法是如果能集成华为云sdk去认证就好了,会省略很大功夫去做华为云接口的认证。

@JeffreyDin
Copy link

其实,我在今年3,4月份 ,自建 ServiceAccount,ClusterRole,ClusterRoleBinding,生成 api_token,然后拿原生 kubernetes client 调CCE,没有任何问题。当然,针对消费的相关接口不能拿原生kubernetes client去调。

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

No branches or pull requests

3 participants