kubernetes-cri

python bindings for the Kubernetes Container Runtime Interface (CRI) gRPC


License
MIT
Install
pip install kubernetes-cri==0.1.3

Documentation

python-k8s-cri

Python bindings for the kubernetes CRI (container runtime interface) gRPC

Note: This is an early trial and is subject to change

Install

pip install kubernetes-cri

Usage

The pydoc of these generated files is terrible, and really requires getting familiar with the transaction between server and client, and then sitting with the api.proto open for review of field names, funcations and returns.

See the gRPC python tutorial to get a bit more familiar on the approach.

See the examples/ for client usages.

rebuilding from .proto

Requires pip install grpcio-tools.

make rebuild

api.proto

The version of api.proto used intially is from kubernetes v1.7.12.

TODO: automate fetching multiple versions, and have them in independent python package paths

gogoprotobuf

The vendored protobuf from https://github.com/gogo/protobuf/gogoproto is commit c0656edd0d9eab7c66d1eb0c568f9039345796f7

TODO: use a tool to automate this vendoring