Skip to content
This repository has been archived by the owner on Oct 3, 2020. It is now read-only.

Latest commit

 

History

History
57 lines (37 loc) · 1.17 KB

index.rst

File metadata and controls

57 lines (37 loc) · 1.17 KB

Pykube

Pykube (pykube-ng) is a lightweight Python 3+ client library for Kubernetes.

Installation

To install pykube, use pip:

pip install pykube-ng

Usage

Query for all ready pods in a custom namespace:

import operator
import pykube

api = pykube.HTTPClient(pykube.KubeConfig.from_file())
pods = pykube.Pod.objects(api).filter(namespace="gondor-system")
ready_pods = filter(operator.attrgetter("ready"), pods)

Documentation

There is not much documentation yet, but you can check out the README on github and browse the :ref:`pykube-package`.

.. toctree::
   :maxdepth: 2
   :glob:

   howtos/index.rst
   readme
   changelog
   users



Indices and tables