A Kubernetes API client library for Rust
Status
Experimental.
- Get, put, list, and watch are implemented, using tokio futures/streams.
- Client obeys
~/.kube/config
(or$KUBECONFIG
) by default, as per golang client. TLS is supported. Client certificates are the only currently supported method of client authentication. - API objects are currently manually defined and incomplete. Additional 3rd-party object types can be defined via traits.
- API resources do not yet have a representation in Rust.
- API error handling is very naive.
Example of listing all the pods in kube-system
namespace.
Results are streamed, limited to 20 results per page.
extern crate kubernetes;
extern crate tokio_core;
use Default;
use Core;
use api;
use ;
use ;