This page contains an overview of the client libraries for using the Kubernetes API 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 to authenticate if the API client is running inside the Kubernetes cluster, or can understand the kubeconfig file format to read the credentials and the API Server address.
The following client libraries are officially maintained by Kubernetes SIG API Machinery.
Language | Client Library | Sample Programs |
---|---|---|
dotnet | github.com/kubernetes-client/csharp | browse |
Go | github.com/kubernetes/client-go/ | browse |
Haskell | github.com/kubernetes-client/haskell | browse |
Java | github.com/kubernetes-client/java | browse |
JavaScript | github.com/kubernetes-client/javascript | browse |
Python | github.com/kubernetes-client/python/ | browse |
The following Kubernetes API client libraries are provided and maintained by their authors, not the Kubernetes team.
© 2022 The Kubernetes Authors
Documentation Distributed under CC BY 4.0.
https://kubernetes.io/docs/reference/using-api/client-libraries/