Matrix
The kubernetes
package supports different versions of Kubernetes. To understand which client versions support which Kubernetes versions, refer to the matrix below:
Client Version | Kubernetes Versions |
---|---|
17.0.0 | 1.22, 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30, 1.31 |
16.0.0 | 1.21, 1.22, 1.23, 1.24, 1.25, 1.26, 1.27, 1.28, 1.29, 1.30 |
15.0.0 | 1.20, 1.21, 1.22, 1.23, 1.24, 1.25, 1.26, 1.27, 1.28 |
14.0.0 | 1.19, 1.20, 1.21, 1.22, 1.23, 1.24, 1.25, 1.26 |
13.0.0 | 1.18, 1.19, 1.20, 1.21, 1.22, 1.23, 1.24 |
12.0.0 | 1.17, 1.18, 1.19, 1.20, 1.21, 1.22 |
11.0.0 | 1.16, 1.17, 1.18, 1.19, 1.20 |
10.0.0 | 1.15, 1.16, 1.17, 1.18, 1.19 |
9.0.0 | 1.14, 1.15, 1.16, 1.17, 1.18 |
8.0.0 | 1.13, 1.14, 1.15, 1.16, 1.17 |
7.0.0 | 1.12, 1.13, 1.14, 1.15, 1.16 |
6.0.0 | 1.11, 1.12, 1.13, 1.14, 1.15 |
5.0.0 | 1.10, 1.11, 1.12, 1.13, 1.14 |
4.0.0 | 1.9, 1.10, 1.11, 1.12, 1.13 |
3.0.0 | 1.8, 1.9, 1.10, 1.11, 1.12 |
The matrix above provides an overview of the supported versions. For detailed information on specific versions, refer to the documentation of the client version.
Example:
To use the client version 17.0.0 to interact with Kubernetes version 1.27, install the package:
pip install kubernetes==17.0.0
For more information on installing the package, refer to: https://packaging.python.org/distributing/
Note:
Kubernetes versions are supported by the client as long as the Kubernetes API specification remains backwards compatible. If you are using a client version that is older than the Kubernetes version you are connecting to, the client may not support all the features of the Kubernetes API. Refer to the documentation of the Kubernetes version you are connecting to for more information.
Top-Level Directory Explanations
doc/ - This directory contains documentation files for the project.
doc/source/ - This directory contains the source files for the documentation.
examples/ - This directory contains example usage of the Kubernetes client library.
examples/dynamic-client/ - This directory contains examples of using the dynamic client to interact with Kubernetes.
examples/notebooks/ - This directory contains Jupyter Notebook examples.
examples/notebooks/docker/ - This directory contains Dockerfiles and instructions for running the Notebooks in Docker containers.
examples/watch/ - This directory contains examples of using the watch function to monitor Kubernetes resources.
examples/yaml_dir/ - This directory contains YAML files used in the examples.
kubernetes/ - This directory contains the main Kubernetes client library.
kubernetes/base/ - This directory contains the base Kubernetes client library.
kubernetes/base/config/ - This directory contains configuration files for the base library.
kubernetes/base/dynamic/ - This directory contains the dynamic client implementation for the base library.
kubernetes/base/hack/ - This directory contains hack files for the base library.
kubernetes/base/leaderelection/ - This directory contains the leader election implementation for the base library.
kubernetes/base/stream/ - This directory contains the stream implementation for the base library.
kubernetes/base/watch/ - This directory contains the watch implementation for the base library.
kubernetes/client/ - This directory contains the top-level client for the Kubernetes client library.
kubernetes/client/api/ - This directory contains the API definitions for the client library.
kubernetes/client/apis/ - This directory contains the API implementations for the client library.
kubernetes/client/models/ - This directory contains the data models used by the client library.
kubernetes/e2e_test/ - This directory contains end-to-end tests for the Kubernetes client library.
kubernetes/e2e_test/test_yaml/ - This directory contains YAML files used in the end-to-end tests.
kubernetes/utils/ - This directory contains utility functions for the Kubernetes client library.
scripts/ - This directory contains scripts used in the development and build process.