Popularity
4.6
Growing
Activity
0.0
Stable
242
11
23

Programming language: Rust
License: Apache License 2.0
Tags: Web Programming     Client     Kubernetes    

kubernetes-rust alternatives and similar packages

Based on the "Web programming" category.
Alternatively, view kubernetes-rust alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of kubernetes-rust or a related project?

Add another 'Web programming' Package

README

kubernetes-rust

Build Status Client Capabilities Client Support Level

Rust client for Kubernetes API.

Example

List all Pods on kube-system:

extern crate failure;
extern crate k8s_openapi;
extern crate kubernetes;

use k8s_openapi::api::core::v1 as api;
use kubernetes::client::APIClient;
use kubernetes::config;

fn main() {
    let kubeconfig = config::load_kube_config().expect("failed to load kubeconfig");
    let kubeclient = APIClient::new(kubeconfig);
    let (req, _) = api::Pod::list_namespaced_pod("kube-system", Default::default())
        .expect("failed to create a request");
    let list_pod = kubeclient
        .request::<api::PodList>(req)
        .expect("failed to list up pods");
    println!("{:?}", list_pod);
}