k8-client

Crates.iok8-client
lib.rsk8-client
version12.0.0
sourcesrc
created_at2020-02-05 05:56:07.722008
updated_at2023-09-20 21:30:39.450938
descriptionCore Kubernetes metadata traits
homepage
repositoryhttps://github.com/infinyon/k8-api
max_upload_size
id205087
size105,480
k8-publisher (github:infinyon:k8-publisher)

documentation

README

Kubernetes Rust Client

This is similar to Kubernetes Go Client: https://github.com/kubernetes/client-go

Example of using the client:

use k8_client::K8Client;
use k8_obj_core::pod::{PodSpec,PodStatus};

async fn main() {

    let client = K8Client::default().expect("cluster not initialized");

    let pod_items = client.retrieve_items::<PodSpec,_>("default").await.expect("pods should exist");

    for pod in pod_items.items {
        println!("pod: {:#?}",pod);
    }
}

License

This project is licensed under the Apache license.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in Fluvio by you, shall be licensed as Apache, without any additional terms or conditions.

Commit count: 132

cargo fmt