Crates.io | k8-client |
lib.rs | k8-client |
version | 13.1.0 |
source | src |
created_at | 2020-02-05 05:56:07.722008 |
updated_at | 2024-07-23 12:56:12.952487 |
description | Core Kubernetes metadata traits |
homepage | |
repository | https://github.com/infinyon/k8-api |
max_upload_size | |
id | 205087 |
size | 107,279 |
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);
}
}
This project is licensed under the Apache license.
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.