# kubernetes-client/python

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/kubernetes-client-python).**

7,605 stars · 3,504 forks · Python · Apache-2.0

## Links

- GitHub: https://github.com/kubernetes-client/python
- Homepage: http://kubernetes.io/
- awesome-repositories: https://awesome-repositories.com/repository/kubernetes-client-python.md

## Description

The Kubernetes Python Client is a programmatic interface for cluster automation and resource management. It provides a REST-based API client that maps method calls to HTTP verbs and JSON payloads to create, update, delete, and monitor workloads and infrastructure components.

The client features dynamic schema mapping and resource mapping, allowing it to control custom objects and unique resource definitions without requiring pre-defined classes or static schemas. It supports YAML manifest parsing to convert structured files into compatible objects for bulk resource deployment.

The toolset covers identity integration through OIDC, bearer tokens, and automated cloud credential refreshing. It includes networking and observability capabilities such as port forwarding, remote command execution, pod log streaming, and watch-based event streaming for real-time monitoring of cluster state changes. It also manages admission policies and webhooks to enforce operational standards.

## Tags

### DevOps & Infrastructure

- [Kubernetes Cluster Management](https://awesome-repositories.com/f/devops-infrastructure/kubernetes-cluster-management.md) — Provides a comprehensive programmatic interface for provisioning, configuring, and maintaining the lifecycle of Kubernetes clusters.
- [Cluster Resource Management](https://awesome-repositories.com/f/devops-infrastructure/kubernetes-cluster-management/cluster-resource-management.md) — Provides programmatic control over the creation, update, deletion, and monitoring of cluster workloads and infrastructure. ([source](https://github.com/kubernetes-client/python#readme))
- [Custom Resource Definitions](https://awesome-repositories.com/f/devops-infrastructure/custom-resource-definitions.md) — Enables management of custom application-specific resources and dynamic objects without requiring static schemas. ([source](https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md))
- [Manifest Parsers](https://awesome-repositories.com/f/devops-infrastructure/service-mesh-control-planes/manifest-generators/kubernetes-resource-manifests/manifest-parsers.md) — Provides utilities to parse YAML resource manifests into API-compatible objects for bulk deployment.
- [Configuration-Driven Authentication](https://awesome-repositories.com/f/devops-infrastructure/configuration-management/environment-management/environment-variable-management/environment-variable-configurations/environment-variable-configuration/authentication-plugin-configurations/configuration-driven-authentication.md) — Loads security credentials and connection parameters from external files or environment variables.
- [Interactive Stream Execution](https://awesome-repositories.com/f/devops-infrastructure/execution-environments/remote-workspace-command-execution/ssh-based-remote-execution/remote-data-streaming/interactive-stream-execution.md) — Handles interactive requests by streaming data between the client and the remote environment for real-time execution. ([source](https://github.com/kubernetes-client/python#readme))
- [Remote Command Execution](https://awesome-repositories.com/f/devops-infrastructure/remote-command-execution.md) — Enables the programmatic execution of shell commands and process attachment inside running containers. ([source](https://github.com/kubernetes-client/python#readme))

### Development Tools & Productivity

- [Dynamic Resource Mapping](https://awesome-repositories.com/f/development-tools-productivity/rest-apis/resource-mappings/dynamic-resource-mapping.md) — Interacts with arbitrary API endpoints via a generic interface to handle varied data types dynamically.
- [REST API Clients](https://awesome-repositories.com/f/development-tools-productivity/rest-apis/rest-api-clients.md) — Provides a client-side implementation for interacting with RESTful services using HTTP methods and JSON.

### Security & Cryptography

- [Kubernetes Identity Integration](https://awesome-repositories.com/f/security-cryptography/kubernetes-identity-integration.md) — Integrates cluster identity with external OIDC providers, bearer tokens, and cloud IAM roles.
- [Automatic Token Refreshes](https://awesome-repositories.com/f/security-cryptography/account-management/account-synchronization/credential-refreshers/oauth-token-refreshes/automatic-token-refreshes.md) — Automatically refreshes cloud provider authentication tokens to ensure continuous connectivity without manual intervention.
- [Client Credential Loading](https://awesome-repositories.com/f/security-cryptography/authentication-clients/credential-authentication/client-credential-loading.md) — Loads cluster access credentials and connection settings from local configuration files. ([source](https://github.com/kubernetes-client/python/blob/master/README.md))
- [Bearer Token Authentication](https://awesome-repositories.com/f/security-cryptography/bearer-token-authentication.md) — Uses bearer tokens in HTTP authorization headers to verify identity against remote services. ([source](https://github.com/kubernetes-client/python/tree/master/kubernetes))
- [OIDC Authentication Plugins](https://awesome-repositories.com/f/security-cryptography/oidc-authentication-plugins.md) — Integrates with OpenID Connect identity providers to verify user identities and validate requests. ([source](https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md))

### Software Engineering & Architecture

- [Runtime Schema Generation](https://awesome-repositories.com/f/software-engineering-architecture/dynamic-schema-mapping/runtime-schema-generation.md) — Generates request structures dynamically at runtime to interact with arbitrary API objects.

### Networking & Communication

- [Cluster Network Troubleshooting](https://awesome-repositories.com/f/networking-communication/network-port-forwarding/local-port-forwarding/cluster-network-troubleshooting.md) — Provides a toolkit for establishing port-forwarding tunnels and executing remote commands for live environment debugging.
- [Kubernetes Pod Port Forwarding](https://awesome-repositories.com/f/networking-communication/network-port-forwarding/local-port-forwarding/kubernetes-pod-port-forwarding.md) — Establishes network tunnels through the API server proxy to map local ports to pod containers. ([source](https://github.com/kubernetes-client/python/blob/master/CHANGELOG.md))
- [Stream Multiplexing](https://awesome-repositories.com/f/networking-communication/peer-to-peer-streaming/stream-multiplexing.md) — Establishes long-lived HTTP tunnels to multiplex multiple data streams for interactive terminal sessions.
- [Cluster Object Watches](https://awesome-repositories.com/f/networking-communication/real-time-event-streams/cluster-object-watches.md) — Monitors changes to Kubernetes API objects via persistent event streams and watch mechanisms.
- [Server-Side Event Subscriptions](https://awesome-repositories.com/f/networking-communication/real-time-event-streams/server-side-event-subscriptions.md) — Subscribes to server-side event streams to receive real-time updates on cluster resource state changes. ([source](https://github.com/kubernetes-client/python/blob/master/README.md))

### Programming Languages & Runtimes

- [Asynchronous Event Loops](https://awesome-repositories.com/f/programming-languages-runtimes/language-features-paradigms/concurrency-models/asynchronous-event-loops.md) — Executes non-blocking network operations within an event-driven execution model to maintain concurrency.
- [Asynchronous Request Execution](https://awesome-repositories.com/f/programming-languages-runtimes/language-features-paradigms/concurrency-models/asynchronous-processing/asynchronous-request-execution.md) — Implements non-blocking network requests using awaitable patterns to handle concurrent infrastructure interactions. ([source](https://github.com/kubernetes-client/python/blob/master/setup-asyncio.py))

### System Administration & Monitoring

- [Container Log Streaming](https://awesome-repositories.com/f/system-administration-monitoring/monitoring-and-observability/observability-platforms/metric-performance-monitors/infrastructure-monitoring/kubernetes-monitors/cluster-event-logging/container-log-streaming.md) — Retrieves and displays real-time stdout and stderr log output from containerized workloads. ([source](https://github.com/kubernetes-client/python/blob/master/examples))

### Web Development

- [Bidirectional Streams](https://awesome-repositories.com/f/web-development/real-time-data-streaming/bidirectional-streams.md) — Establishes full-duplex communication channels for interactive tasks like remote command execution and process attachment.

### Part of an Awesome List

- [DevOps and Infrastructure](https://awesome-repositories.com/f/awesome-lists/devops/devops-and-infrastructure.md) — Official Kubernetes client library.
