$ kube-core
v3.0.0MAJOR UPDATEKube shared types, traits and client-less behavior
Latest Update Summary
Crate
Name: kube-core New version: 3.0.0 Release date: 2026-01-12T08:52:23.101715Z
Crate readme
Short description A Rust client for Kubernetes in the style of a more generic client-go.
Long description Kube-rs is a Rust client for Kubernetes that provides a runtime abstraction inspired by controller-runtime and includes a derive macro for Custom Resource Definitions (CRDs). It allows Rust developers to easily interact with Kubernetes resources using abstractions that reinterpret reflectors, controllers, and custom resource interfaces. The crate is compatible with various Kubernetes API versions and focuses on enabling generic abstractions through the Kubernetes API machinery.
Features • runtime • derive • k8s-openapi support • no_std compatibility • TLS options with rustls and openssl
Code Examples Add to Cargo.toml
[dependencies]
kube = { version = "3.0.0", features = ["runtime", "derive"] }
k8s-openapi = { version = "0.27.0", features = ["latest", "schemars"] }
schemars = { version = "1" }
Using the Api type
use k8s_openapi::api::core::v1::Pod;
let pods: Api<Pod> = Api::default_namespaced(client);
let pod = pods.get("blog").await?;
Custom Resource Definitions Example
#[derive(CustomResource, Debug, Serialize, Deserialize, Default, Clone, JsonSchema)]
#[kube(group = "kube.rs", version = "v1", kind = "Document", namespaced)]
pub struct DocumentSpec {
title: String,
content: String,
};
Links • https://crates.io/crates/kube • https://kube.rs • https://docs.rs/kube/ • https://github.com/kube-rs/kube/releases • https://kube.rs/changelog/
https://api.github.com/repos/kube-rs/kube/releases/246871033
Release info
Release version:
Release description
Code Examples
Major update: 2.0.1 → 3.0.0
$ DOWNLOADS TREND
$ VERSION HISTORY
$ LINKS
$ INSTALL
cargo add kube-coreOr add to Cargo.toml: kube-core = "3.0.0"