Menu

1 / 7

The Kubernetes Python Client Roadmap Moves Toward OpenAPI Generator v7 and Native asyncio

DEV Community: kubernetes·Taha Echakiri·about 8 hours ago
#5cim2yn7
#devtokubernetes#devto#dev#client#python
Reading 0:00
15s threshold

TL;DR

The Kubernetes Python client is the official library that lets Python code talk to a Kubernetes cluster's API server, and Google Cloud engineers are working with open source contributors to modernize it for AI workloads.

The client is being migrated from OpenAPI Generator v4.3.0, a generator deprecated in 2020 and removed from upstream in May 2022, toward OpenAPI Generator v7.20.0 and continuous tracking of later releases.

Native asyncio support is being introduced inside the client so that an async orchestrator or a FastAPI control plane will be able to issue non-blocking API calls through the official library.

The SharedInformer pattern comes to Python with list-watch caching, automatic reconnection and on_add , on_update and on_delete handlers, which changes the load a controller puts on kube-apiserver.

Deserialisation is the performance item: listing pods or nodes in a large cluster could take 30+ seconds, recorded in issue #1921, and model initialisation is being reworked.

A platform team…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.