客户端库
在使用 Kubernetes REST API 编写应用程序时, 您并不需要自己实现 API 调用和 “请求/响应” 类型。 您可以根据自己的编程语言需要选择使用合适的客户端库。
客户端库通常为您处理诸如身份验证之类的常见任务。 如果 API 客户端在 Kubernetes 集群中运行,大多数客户端库可以发现并使用 Kubernetes 服务帐户进行身份验证, 或者能够理解 格式来读取凭据和 API 服务器地址。
社区维护的客户端库
Note: This section links to third party projects that provide functionality required by Kubernetes. The Kubernetes project authors aren’t responsible for these projects, which are listed alphabetically. To add a project to this list, read the before submitting a change. More information.
以下 Kubernetes API 客户端库是由社区,而非 Kubernetes 团队支持、维护的。
语言 | 客户端库 |
---|---|
Clojure | |
DotNet | github.com/tonnyeremin/kubernetes_gen |
DotNet (RestSharp) | |
Elixir | github.com/obmarg/kazan |
Elixir | |
Go | github.com/ericchiang/k8s |
Java (OSGi) | |
Java (Fabric8, OSGi) | github.com/fabric8io/kubernetes-client |
Java | |
Lisp | github.com/brendandburns/cl-k8s |
Lisp | |
Node.js (TypeScript) | github.com/Goyoo/node-k8s-client |
Node.js | |
Node.js | github.com/godaddy/kubernetes-client |
Node.js | |
Perl | metacpan.org/pod/Net::Kubernetes |
PHP | |
PHP | github.com/maclof/kubernetes-client |
PHP | |
PHP | github.com/renoki-co/php-k8s |
Python | |
Python | github.com/gtsystem/lightkube |
Python | |
Python | github.com/tomplus/kubernetes_asyncio |
Python | |
Ruby | github.com/abonas/kubeclient |
Ruby | |
Ruby | github.com/kontena/k8s-client |
Rust | |
Rust | github.com/ynqa/kubernetes-rust |
Scala | |
Scala | github.com/joan38/kubernetes-client |
Swift |
You should read the content guide before proposing a change that adds an extra third-party link.
最后修改 February 19, 2022 at 2:30 PM PST: