We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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接口去获取namespace和pod,并且还不能通过sdk直接认证,要自己构造请求,体验上很差。 请问有计划将k8s的接口集成到cce中吗?
The text was updated successfully, but these errors were encountered:
Kubernetes的SDK可以参考 https://kubernetes.io/zh/docs/reference/using-api/client-libraries/ 使用,无需自己构造请求。
Sorry, something went wrong.
首先,感谢您的回复。可能是我表达的不够清楚,对于我们使用华为云cce服务的使用者来说,其实并不纠结与是使用api或是sdk,相较于本地原生k8s,难点在于如何结合华为云的验证和k8s的sdk。 因为本地我们通常可以构建client去调用k8s的接口,但华为云我看是通过{cluster_id}.endpoint/api_uri去请求的,我的想法是如果能集成华为云sdk去认证就好了,会省略很大功夫去做华为云接口的认证。
其实,我在今年3,4月份 ,自建 ServiceAccount,ClusterRole,ClusterRoleBinding,生成 api_token,然后拿原生 kubernetes client 调CCE,没有任何问题。当然,针对消费的相关接口不能拿原生kubernetes client去调。
No branches or pull requests
目前cce的sdk提供的功能太少了,连列出所有命名空间都不具备,还需要单独调用k8s接口去获取namespace和pod,并且还不能通过sdk直接认证,要自己构造请求,体验上很差。
请问有计划将k8s的接口集成到cce中吗?
The text was updated successfully, but these errors were encountered: