- Client Libraries
- Officially-supported Kubernetes client libraries
- Community-maintained client libraries
- Feedback
Client Libraries
This page contains an overview of the client libraries for using the KubernetesAPI from various programming languages.
To write applications using the Kubernetes REST API,you do not need to implement the API calls and request/response types yourself.You can use a client library for the programming language you are using.
Client libraries often handle common tasks such as authentication for you.Most client libraries can discover and use the Kubernetes Service Account toauthenticate if the API client is running inside the Kubernetes cluster, or canunderstand the kubeconfig fileformat to read the credentials and the API Server address.
Officially-supported Kubernetes client libraries
The following client libraries are officially maintained by Kubernetes SIG APIMachinery.
Language | Client Library | Sample Programs |
---|---|---|
Go | github.com/kubernetes/client-go/ | browse |
Python | github.com/kubernetes-client/python/ | browse |
Java | github.com/kubernetes-client/java | browse |
dotnet | github.com/kubernetes-client/csharp | browse |
JavaScript | github.com/kubernetes-client/javascript | browse |
Haskell | github.com/kubernetes-client/haskell | browse |
Community-maintained client libraries
The following Kubernetes API client libraries are provided and maintained bytheir authors, not the Kubernetes team.
Language | Client Library |
---|---|
Clojure | github.com/yanatan16/clj-kubernetes-api |
Go | github.com/ericchiang/k8s |
Java (OSGi) | bitbucket.org/amdatulabs/amdatu-kubernetes |
Java (Fabric8, OSGi) | github.com/fabric8io/kubernetes-client |
Lisp | github.com/brendandburns/cl-k8s |
Lisp | github.com/xh4/cube |
Node.js (TypeScript) | github.com/Goyoo/node-k8s-client |
Node.js | github.com/tenxcloud/node-kubernetes-client |
Node.js | github.com/godaddy/kubernetes-client |
Node.js | github.com/ajpauwels/easy-k8s |
Perl | metacpan.org/pod/Net::Kubernetes |
PHP | github.com/maclof/kubernetes-client |
PHP | github.com/allansun/kubernetes-php-client |
PHP | github.com/travisghansen/kubernetes-client-php |
Python | github.com/eldarion-gondor/pykube |
Python | github.com/mnubo/kubernetes-py |
Python | github.com/tomplus/kubernetes_asyncio |
Ruby | github.com/Ch00k/kuber |
Ruby | github.com/abonas/kubeclient |
Ruby | github.com/kontena/k8s-client |
Rust | github.com/clux/kube-rs |
Rust | github.com/ynqa/kubernetes-rust |
Scala | github.com/doriordan/skuber |
dotNet | github.com/tonnyeremin/kubernetes_gen |
DotNet (RestSharp) | github.com/masroorhasan/Kubernetes.DotNet |
Elixir | github.com/obmarg/kazan |
Haskell | github.com/soundcloud/haskell-kubernetes |
Feedback
Was this page helpful?
Thanks for the feedback. If you have a specific, answerable question about how to use Kubernetes, ask it onStack Overflow.Open an issue in the GitHub repo if you want toreport a problemorsuggest an improvement.