navidshaikh / kubeshift

Kubernetes and OpenShift Python library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kubeshift

Build Status Coverage Status

Introduction

Kubeshift is a multi-provider Python library for container orchestrators. We connect and communicate with each container orchestator 100% through their TLS (if available) HTTP API.

Features:

  • 100% HTTP API
  • Auto-parsing of ~/.kube/config
  • TLS/Websocket authentication
  • High test coverage

Providers

At the moment we support:

  • Kubernetes
  • OpenShift
  • Mesos (soon!)

Installation

git clone https://github.com/cdrage/kubeshift && cd kubeshift
make install

Python requirements

anymarkup
jsonpointer
requests
websocket-client
pip install -r requirements.txt

Examples

import kubeshift

a = kubeshift.Client(kubeshift.Config.from_file("/home/user/.kube/config"), "kubernetes")
a.namespaces()

TODO

  • Better documentation
  • Additional providers other than Kubernetes and OpenShift
  • Simpler import-from-kube-config-file functionality
  • Certificate data fixes

About

Kubernetes and OpenShift Python library


Languages

Language:Python 99.3%Language:Makefile 0.7%