Hello all,
I'm pleased to announce the first release of txkube, a Twisted-based library for interacting with Kubernetes using the HTTP API.
This release supports several of the most commonly used basic Kubernetes objects, including Services, ConfigMaps, Deployments, ReplicaSets, and Pods. While Kubernetes has many, many more object kinds, this collection of kinds already supports a very useful set of interactions.
Here is an example of txkube usage, taken from the README:
from __future__ import print_function
from twisted.internet.task import react
from txkube import v1, network_kubernetes_from_context
@react
def main(reactor):
k8s = network_kubernetes_from_context(reactor, u"minikube")
client = k8s.client()
d = client.list(v1.Namespace)
d.addCallback(print)
return d
Jean-Paul Calderone